Author: jmorliaguet Date: Tue Oct 4 23:14:52 2005 New Revision: 27942 Modified: z3lab/cpsskins/branches/jmo-perspectives/elements/portlet.py Log:
- API update Modified: z3lab/cpsskins/branches/jmo-perspectives/elements/portlet.py ============================================================================== --- z3lab/cpsskins/branches/jmo-perspectives/elements/portlet.py (original) +++ z3lab/cpsskins/branches/jmo-perspectives/elements/portlet.py Tue Oct 4 23:14:52 2005 @@ -35,16 +35,16 @@ >>> portlet Portlet('Some portlet') - >>> portlet.getDisplayData(None, None, None) + >>> portlet.getDisplayData(None) Traceback (most recent call last): ... NotImplementedError: Portlet needs to override getDisplayData() - >>> def fake_getDisplayData(location, request, view): + >>> def fake_getDisplayData(info): ... return 'Some data' >>> portlet.getDisplayData = fake_getDisplayData - >>> portlet.getDisplayData(None, None, None) + >>> portlet.getDisplayData(None) 'Some data' """ @@ -58,7 +58,7 @@ def __repr__(self): return "Portlet('%s')" % self.title - def getDisplayData(self, location, request, view): + def getDisplayData(self, info): raise NotImplementedError( "Portlet needs to override getDisplayData()") -- http://lists.nuxeo.com/mailman/listinfo/z3lab-checkins