[CMF-checkins] SVN: CMF/trunk/GenericSetup/registry.py - fixed
behavior for 'None' value (profiles registered without 'for_'
argument did raise errors)
Yvo Schubbe
y.2005- at wcm-solutions.de
Wed Nov 23 06:43:32 EST 2005
Log message for revision 40339:
- fixed behavior for 'None' value (profiles registered without 'for_' argument did raise errors)
Changed:
U CMF/trunk/GenericSetup/registry.py
-=-
Modified: CMF/trunk/GenericSetup/registry.py
===================================================================
--- CMF/trunk/GenericSetup/registry.py 2005-11-23 02:18:55 UTC (rev 40338)
+++ CMF/trunk/GenericSetup/registry.py 2005-11-23 11:43:31 UTC (rev 40339)
@@ -560,8 +560,8 @@
"""
candidates = [ self.getProfileInfo( id )
for id in self.listProfiles() ]
- return [ x for x in candidates
- if for_ is None or issubclass( for_, x['for'] ) ]
+ return [ x for x in candidates if for_ is None or x['for'] is None or
+ issubclass( for_, x['for'] ) ]
security.declareProtected( ManagePortal, 'registerProfile' )
def registerProfile( self
More information about the CMF-checkins
mailing list