[Zope3-checkins] CVS: zopeproducts/photoslide/browser - photoslide.py:1.2

Bjorn Tillenius bjoti777 at student.liu.se
Sun Sep 21 18:18:47 EDT 2003


Update of /cvs-repository/zopeproducts/photoslide/browser
In directory cvs.zope.org:/tmp/cvs-serv27288/browser

Modified Files:
	photoslide.py 
Log Message:
Updated code to work after ParentGeddon and ReplaceSetObjectWithSetitem.


=== zopeproducts/photoslide/browser/photoslide.py 1.1 => 1.2 ===
--- zopeproducts/photoslide/browser/photoslide.py:1.1	Fri Aug 15 08:15:17 2003
+++ zopeproducts/photoslide/browser/photoslide.py	Sun Sep 21 18:18:16 2003
@@ -33,7 +33,7 @@
 
 class PhotoSlideFolderAdding(Adding):
     """Custom adding view for PhotoSlideFolder objects."""
-    menu_id = "add_photoslides"
+    menu_id = "add_photoslidefolder"
 
 
 class PhotoSlideViewBase(BrowserView):
@@ -64,7 +64,7 @@
                 setattr(self, 'rq_' + attr, request[attr])
 
     def _getPhotoName(self, photo):
-        return self.context.keys()[self.context.values().index(photo)]
+        return zapi.getName(photo)
 
     def _createUrl(self, pageName, **kw):
         """Returns the page name concatenated with it's needed parameters.




More information about the Zope3-Checkins mailing list