Skip to content. | Skip to navigation

Sections
Personal tools
What is this?
Hi, my name is Tom Lazar and I'm a Plone and Zope developer based in Berlin, Germany and this is my personal and professional (no big difference, really...) website.
 

CMFPhoto and Plone2.1

Filed Under:

What's the deal here?

As previously mentioned, the only real hiccup I had when migrating this site from Plone 2.0.5 to 2.1 was dealing with CMFPhoto. Since I couldn't find any information regarding this issue (and was too lazy to ask the respective authors...) I simply did what I always do in such cases: make guesses and apply the good ol' scientific approach known as Trial & Error...

So, what I've learned is this:

  1. CMFPhoto is broken under 2.1 in such a way, that you can still access the actual images (by entering the complete URL, or via WebDAV) but photos linked to using the <img src="..."/> won't show up and accessing scaled versions using the /variant/xxx scheme are also broken.
  2. The default Image type in 2.1 (ATImage from the ATCT Product, actually - three cheers for ATCT, everybody! Thank you...) is capable of scaling but uses a different naming convention. Digging in the source revealed the following sizes:
                   sizes= {'large'   : (768, 768),
                           'preview' : (400, 400),
                           'mini'    : (200, 200),
                           'thumb'   : (128, 128),
                           'tile'    :  (64, 64),
                           'icon'    :  (32, 32),
                           'listing' :  (16, 16),
                          },
  3. To access these sizes, append /image_XXX to the URL, where XXX is one of the above sizes.
  4. To migrate existing Albums and Photos you can download a folder via WebDAV, delete the Album on the server and re-upload the album (which is now a folder). You'll still have to adjust any old-style references to scaled versions, but hey... it's a start....
  5. Choosing 'photoalbum view' in the new 'display' menu when inside a folder containing images will result in the good ol' PhotoAlbum view from the CMFPhotoAlbum product.

CMFPhoto 0.5.0

Posted by Anonymous User at Sep 09, 2005 04:27 PM

CMFPhot/Plone21 CMFPhoto 0.5.0 Product Description This Product is broken

2005-09-09 18:19:20 failed: Traceback (most recent call last):

File "/usr/local/Zope-2.8.1-final/instances/hpc/Products/CMFQuickInstallerTool/QuickInstallerTool.py", line 311, in installProduct res=install(portal)

File "/usr/local/Zope-2.8.1-final/lib/python/Products/ExternalMethod/ExternalMethod.py", line 225, in __call__ try: return f(args, *kw)

File "/usr/local/Zope-2.8.1-final/instances/hpc/Products/CMFPhoto/Extensions/Install.py", line 43, in install nav=portal_prop.navigation_properties

AttributeError: navigation_properties

CMFPhoto Install Error

Posted by sean at Mar 21, 2006 08:24 PM

Did you manage to get around this error? I am trying to install CMFPhone on my Plone 2.1.2 and I am getting this error too.

CMFPhoto nav_properties broken

Posted by John Kitchin at Sep 23, 2007 05:05 PM

I fixed this problem by commenting that line out. It is at the end of the script, and doesn't appear to do anything. that allowed CMFPhoto to install, but it still does not work as desired. When you add a photo you get a page not found error.

this is in plone 2.5.3