Author: jmorliaguet Date: Sun Nov 6 23:20:36 2005 New Revision: 29028 Modified: z3lab/cpsskins/branches/jmo-perspectives/thememanager.py Log:
- simplification: no need to materialize the list since we iterate through it Modified: z3lab/cpsskins/branches/jmo-perspectives/thememanager.py ============================================================================== --- z3lab/cpsskins/branches/jmo-perspectives/thememanager.py (original) +++ z3lab/cpsskins/branches/jmo-perspectives/thememanager.py Sun Nov 6 23:20:36 2005 @@ -93,7 +93,7 @@ >>> thememanager.getThemes() == [theme] True """ - return [theme for name, theme in list(getUtilitiesFor(ITheme, self))] + return [theme for name, theme in getUtilitiesFor(ITheme, self)] def isDefault(self, object=None): """Return True if the element is used by default -- http://lists.nuxeo.com/mailman/listinfo/z3lab-checkins