Author: jmorliaguet Date: Tue Oct 4 00:36:33 2005 New Revision: 27897 Modified: z3lab/cpsskins/branches/jmo-perspectives/elements/formats/__init__.py Log:
- added some comments to the format's traverse() method Modified: z3lab/cpsskins/branches/jmo-perspectives/elements/formats/__init__.py ============================================================================== --- z3lab/cpsskins/branches/jmo-perspectives/elements/formats/__init__.py (original) +++ z3lab/cpsskins/branches/jmo-perspectives/elements/formats/__init__.py Tue Oct 4 00:36:33 2005 @@ -97,12 +97,15 @@ def traverse(self, name, remaining): context = self.context + # get a format by name if name in format_registry: return self.getFormat(name) + # get an attribute of the format if hasattr(context, 'get'): value = context.get(name) if value is not None: return value + # return a method of the adapter return getattr(self, name) def storeFormat(self, format=None): -- http://lists.nuxeo.com/mailman/listinfo/z3lab-checkins