Author: jmorliaguet
Date: Mon Oct 24 11:37:59 2005
New Revision: 28559

Modified:
   z3lab/z3ecm/trunk/src/ecm/cpsskins/example4/actions.py
Log:

- API updates



Modified: z3lab/z3ecm/trunk/src/ecm/cpsskins/example4/actions.py
==============================================================================
--- z3lab/z3ecm/trunk/src/ecm/cpsskins/example4/actions.py      (original)
+++ z3lab/z3ecm/trunk/src/ecm/cpsskins/example4/actions.py      Mon Oct 24 
11:37:59 2005
@@ -19,10 +19,12 @@
 
 from zope.app.publisher.browser.menu import getMenu
 from zope.component import adapts
+from zope.component.exceptions import ComponentLookupError
 from zope.interface import implements
 from zope.schema import TextLine
 
-from cpsskins import Portlet
+from cpsskins import Portlet, getContexts
+
 from cpsskins.interfaces import IPortlet, IContextInfo, IDisplayData
 from cpsskins.model import Items, Item
 
@@ -53,8 +55,13 @@
 
     def __init__(self, portlet, info):
 
+        request = info.request
+        contexts = getContexts(request)
+
+        location = contexts['location']
+
         try:
-           menu = getMenu(portlet.category, info.location, info.request)
+           menu = getMenu(portlet.category, location, request)
         except ComponentLookupError:
            items = []
         else:
-- 
http://lists.nuxeo.com/mailman/listinfo/z3lab-checkins

Reply via email to