[Checkins] SVN: Products.GenericSetup/trunk/Products/GenericSetup/registry.py no need for a marker, let's be coherent with getStepMetadata
Godefroid Chapelle
gotcha at bubblenet.be
Thu Mar 3 07:52:48 EST 2011
Log message for revision 120730:
no need for a marker, let's be coherent with getStepMetadata
Changed:
U Products.GenericSetup/trunk/Products/GenericSetup/registry.py
-=-
Modified: Products.GenericSetup/trunk/Products/GenericSetup/registry.py
===================================================================
--- Products.GenericSetup/trunk/Products/GenericSetup/registry.py 2011-03-03 11:11:40 UTC (rev 120729)
+++ Products.GenericSetup/trunk/Products/GenericSetup/registry.py 2011-03-03 12:52:47 UTC (rev 120730)
@@ -285,10 +285,9 @@
o Return 'default' if no such step is registered.
"""
- marker = object()
- info = self._registered.get( key, marker )
+ info = self._registered.get( key )
- if info is marker:
+ if info is None:
return default
return _resolveDottedName( info[ 'handler' ] )
More information about the checkins
mailing list