Hi. I have upgraded Python 1.52 and Zope 2.2.2 to Python 2.1 and Zope 2.4.1. The Product Photo-0.4.3 and ZPhotoAlbum worked fine with python 1.52 and zope 2.2.2, but now the ZPhotoAlbum ojects appears broken: This object is broken because the unknown product that created it is no longer installed or is installed incorrectly. Please contact the product maintainer for assistance. Also, when I trie to add a ZPhotoAlbum in a folder, I get the following error Zope has encountered an error while publishing this resource. Error Type: TypeError Error Value: Catalog addIndex now requires the index type to be resolved prior to adding; create the proper index in the caller. and the error at the end of the message. Does anybody know if the Photo-0.4.3 works with Zope 2.4.1 or how I can fix the problem? I have seen that Photo-0.4.3 is no longer maintained and that there is a new Photo-0.9.2 product. It is possible to upgrade to Photo-0.9.2 with existing photos and zphotoalbums installed with Photo-0.4.3? Thanks. <!-- Traceback (innermost last): File /ma2/zope/lib/python/ZPublisher/Publish.py, line 223, in publish_module File /ma2/zope/lib/python/ZPublisher/Publish.py, line 187, in publish File /ma2/zope/lib/python/Zope/__init__.py, line 226, in zpublisher_exception_hook (Object: RoleManager) File /ma2/zope/lib/python/ZPublisher/Publish.py, line 171, in publish File /ma2/zope/lib/python/ZPublisher/mapply.py, line 160, in mapply (Object: ZPhotoAlbum_add) File /ma2/zope/lib/python/ZPublisher/Publish.py, line 112, in call_object (Object: ZPhotoAlbum_add) File /ma2/zope/lib/python/OFS/DTMLMethod.py, line 194, in __call__ (Object: ZPhotoAlbum_add) File /ma2/zope/lib/python/DocumentTemplate/DT_String.py, line 546, in __call__ (Object: ZPhotoAlbum_add) File /ma2/zope/lib/python/DocumentTemplate/DT_With.py, line 133, in render (Object: ZPhotoAlbum.createInObjectManager(REQUEST['id'], REQUEST)) File /ma2/zope/lib/python/DocumentTemplate/DT_Util.py, line 231, in eval (Object: ZPhotoAlbum.createInObjectManager(REQUEST['id'], REQUEST)) (Info: REQUEST) File <string>, line 2, in f (Object: guarded_getitem) File /ma2/zope/lib/python/ZClasses/ZClass.py, line 522, in createInObjectManager (Object: LockableItem) File /ma2/zope/lib/python/ZPublisher/mapply.py, line 161, in mapply (Object: ZPhotoAlbum) File /ma2/zope/lib/python/Products/Photo/Photo.py, line 595, in __init__ (Object: LockableItem) File /ma2/zope/lib/python/Products/ZCatalog/Catalog.py, line 348, in addIndex TypeError: (see above) -->
-----Original Message----- From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of Rafael Amer
Does anybody know if the Photo-0.4.3 works with Zope 2.4.1 or how I can fix the problem?
The Photo object of Photo-0.4.3 works in 2.4.1, but I never used the ZPhotoAlbum, so I'm not sure about that one. I guess not since you're getting errors.
I have seen that Photo-0.4.3 is no longer maintained and that there is a new Photo-0.9.2 product. It is possible to upgrade to Photo-0.9.2 with existing photos and zphotoalbums installed with Photo-0.4.3?
There is a documented upgrade process for converting the old Photo objects to the new ones, but nothing yet on converting ZPhotoAlbums to Photo Folders. If you only have one or a few photo albums, I would suggest creating new Photo Folders for each, then convert the Photos to the new Photos, and copy/paste them into the new Photo Folders. You'll need to copy the photos in your album to a regular folder outside of the album before upgrading the Photos, since I don't think you'll be able to get into the album with the new Photo product installed. Basically, something like this: 1) Using old Zope and old Photo product, create temporary folders for each album and copy photos out of the album. 2) Upgrade to new Zope and Photo product and upgrade Photo objects (see UPGRADE.txt) 3) Create new Photo Folders for each of your old ZPhotoAlbums 4) Cut/Paste your new Photos into the new Photo Folders. If you have a lot of ZPhotoAlbums, or you can't get anywhere with the above, send me a .zexp of your albums and I'll see if I can put together a better conversion process. _______________________ Ron Bickers Logic Etc, Inc.
participants (2)
-
Rafael Amer -
Ron Bickers