Author: jmorliaguet Date: Tue Oct 25 00:55:43 2005 New Revision: 28591 Modified: z3lab/cpsskins/branches/jmo-perspectives/browser/rendering/engine.py z3lab/cpsskins/branches/jmo-perspectives/portlets/actions/__init__.py z3lab/cpsskins/branches/jmo-perspectives/portlets/breadcrumbs/__init__.py z3lab/cpsskins/branches/jmo-perspectives/portlets/custom/__init__.py z3lab/cpsskins/branches/jmo-perspectives/portlets/image/__init__.py z3lab/cpsskins/branches/jmo-perspectives/portlets/macroslot/__init__.py Log:
- we don't pass **kw to portlets' __call__() Modified: z3lab/cpsskins/branches/jmo-perspectives/browser/rendering/engine.py ============================================================================== --- z3lab/cpsskins/branches/jmo-perspectives/browser/rendering/engine.py (original) +++ z3lab/cpsskins/branches/jmo-perspectives/browser/rendering/engine.py Tue Oct 25 00:55:43 2005 @@ -216,7 +216,7 @@ rendered = [] if ILeaf.providedBy(element): # do the actual rendering - portlet_markup = element(info, **kw) or '' + portlet_markup = element(info) or '' rendered.append(portlet_markup) else: for node in element_info['children']: Modified: z3lab/cpsskins/branches/jmo-perspectives/portlets/actions/__init__.py ============================================================================== --- z3lab/cpsskins/branches/jmo-perspectives/portlets/actions/__init__.py (original) +++ z3lab/cpsskins/branches/jmo-perspectives/portlets/actions/__init__.py Tue Oct 25 00:55:43 2005 @@ -47,7 +47,8 @@ self.title = title self.category = category - def __call__(self, info, **kw): + def __call__(self, info): + request = info.request contexts = getContexts(request) Modified: z3lab/cpsskins/branches/jmo-perspectives/portlets/breadcrumbs/__init__.py ============================================================================== --- z3lab/cpsskins/branches/jmo-perspectives/portlets/breadcrumbs/__init__.py (original) +++ z3lab/cpsskins/branches/jmo-perspectives/portlets/breadcrumbs/__init__.py Tue Oct 25 00:55:43 2005 @@ -39,7 +39,7 @@ def __init__(self, title=''): self.title = title - def __call__(self, info, **kw): + def __call__(self, info): request = info.request contexts = request.annotations['cpsskins.contexts'] Modified: z3lab/cpsskins/branches/jmo-perspectives/portlets/custom/__init__.py ============================================================================== --- z3lab/cpsskins/branches/jmo-perspectives/portlets/custom/__init__.py (original) +++ z3lab/cpsskins/branches/jmo-perspectives/portlets/custom/__init__.py Tue Oct 25 00:55:43 2005 @@ -68,7 +68,7 @@ self.format = format self.source = source - def __call__(self, info, **kw): + def __call__(self, info): request = info.request contexts = getContexts(request) Modified: z3lab/cpsskins/branches/jmo-perspectives/portlets/image/__init__.py ============================================================================== --- z3lab/cpsskins/branches/jmo-perspectives/portlets/image/__init__.py (original) +++ z3lab/cpsskins/branches/jmo-perspectives/portlets/image/__init__.py Tue Oct 25 00:55:43 2005 @@ -64,7 +64,7 @@ self.link = '' ImageFile.__init__(self, **kw) - def __call__(self, info, **kw): + def __call__(self, info): path = '' if self.data: path = zapi.getPath(self) Modified: z3lab/cpsskins/branches/jmo-perspectives/portlets/macroslot/__init__.py ============================================================================== --- z3lab/cpsskins/branches/jmo-perspectives/portlets/macroslot/__init__.py (original) +++ z3lab/cpsskins/branches/jmo-perspectives/portlets/macroslot/__init__.py Tue Oct 25 00:55:43 2005 @@ -48,7 +48,7 @@ def __init__(self, title=''): self.title = title - def __call__(self, info, **kw): + def __call__(self, info): request = info.request contexts = getContexts(request) -- http://lists.nuxeo.com/mailman/listinfo/z3lab-checkins