Zope 2.7.4, CMF 1.4, Photo & Photo Folder (something) I can add photos through the ZMI, but through FTP I get this and it was working great in Zope 2.7b4. Exception Value _data Traceback (innermost last): * Module ZPublisher.Publish, line 101, in publish * Module ZPublisher.mapply, line 88, in mapply * Module ZPublisher.Publish, line 39, in call_object * Module webdav.NullResource, line 152, in PUT * Module OFS.ObjectManager, line 276, in _setObject * Module Products.Photo.Photo, line 623, in manage_afterAdd AttributeError: _data Jake -- http://www.ZopeZone.com
I am wondering if it is getting the correct mime type. I remember having some kind of trouble in the past with this or similar - it may have been WebDAV from a Mac, I can't recall exactly. In my situation, it was because it was not getting the type right as it was coming in. To solve it, I added a rule the Content Type Registry to catch the image extensions - since the images were otherwise coming in as application/octet-stream I believe. I believe the only content type allowed in a Photo Album is a Photo or another Photo Album - which leads me to think it may be type related. Something to check on anyway. Regards David On Tuesday, March 1, 2005, at 09:52 PM, Jake wrote:
Zope 2.7.4, CMF 1.4, Photo & Photo Folder (something)
I can add photos through the ZMI, but through FTP I get this and it was working great in Zope 2.7b4.
Exception Value _data
Traceback (innermost last):
* Module ZPublisher.Publish, line 101, in publish * Module ZPublisher.mapply, line 88, in mapply * Module ZPublisher.Publish, line 39, in call_object * Module webdav.NullResource, line 152, in PUT * Module OFS.ObjectManager, line 276, in _setObject * Module Products.Photo.Photo, line 623, in manage_afterAdd
AttributeError: _data
Jake
_______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
On Tuesday 01 March 2005 08:52 pm, Jake wrote:
Traceback (innermost last):
* Module ZPublisher.Publish, line 101, in publish * Module ZPublisher.mapply, line 88, in mapply * Module ZPublisher.Publish, line 39, in call_object * Module webdav.NullResource, line 152, in PUT * Module OFS.ObjectManager, line 276, in _setObject * Module Products.Photo.Photo, line 623, in manage_afterAdd
AttributeError: _data
Between Zope 2.7.3 and 2.7.4 the order of PUT() and _setObject() were changed in webdav.NullResource.PUT(). This caused Photo FTP support to break. I'll work on a fix and release Photo 1.2.4 along with a few other minor fixes. -- Ron
So much for calling it a day. :) Thanks for all your help and hard work Ron. Jake ____________________ http://www.ZopeZone.com "Zoping for the rest of us" On Mar 4, 2005, at 8:20 PM, Ron Bickers wrote:
On Tuesday 01 March 2005 08:52 pm, Jake wrote:
Traceback (innermost last):
* Module ZPublisher.Publish, line 101, in publish * Module ZPublisher.mapply, line 88, in mapply * Module ZPublisher.Publish, line 39, in call_object * Module webdav.NullResource, line 152, in PUT * Module OFS.ObjectManager, line 276, in _setObject * Module Products.Photo.Photo, line 623, in manage_afterAdd
AttributeError: _data
Between Zope 2.7.3 and 2.7.4 the order of PUT() and _setObject() were changed in webdav.NullResource.PUT(). This caused Photo FTP support to break.
I'll work on a fix and release Photo 1.2.4 along with a few other minor fixes.
-- Ron
On Sat, Mar 05, 2005 at 12:19:24PM -0500, Ron Bickers wrote:
On Saturday 05 March 2005 11:19 am, Jake wrote:
So much for calling it a day. :)
Yeah. Oh well. Photo 1.2.4 is out there now. Give it whirl and let me know how it goes.
On a related topic, I've long had Photo 1.2.something on my cruddy personal website which I'm in the process of converting to a CMF-based site. Any recommendations for a CMF-aware replacement for Photo? I found CMFPhotoAlbum & CMFPhoto ... is that the best-of-breed? anybody got a conversion script? Also I'd rather keep the image data on the filesystem. Anybody know of a variant that does so? If not, I might make a simple wrapper for CMFPhoto that uses Chris M's FileSystemMigration and see how that goes: http://www.plope.com/software/FilesystemMigration/ thanks... -- Paul Winkler http://www.slinkp.com
On Sat, 2005-03-05 at 13:09, Paul Winkler wrote:
Also I'd rather keep the image data on the filesystem. Anybody know of a variant that does so? If not, I might make a simple wrapper for CMFPhoto that uses Chris M's FileSystemMigration and see how that goes: http://www.plope.com/software/FilesystemMigration/
FWIW, I've sort of abandoned that product; the approach was too complicated. I would probably use the "blob" product instead. See http://www.plope.com/software/blob/ . It's equivalent and much simpler. - C
participants (5)
-
Chris McDonough -
David Pratt -
Jake -
Paul Winkler -
Ron Bickers