[CMF-checkins] CVS: CMF/CMFSetup - registry.py:1.3
Tres Seaver
tseaver at zope.com
Wed May 12 14:12:43 EDT 2004
Update of /cvs-repository/CMF/CMFSetup
In directory cvs.zope.org:/tmp/cvs-serv17778
Modified Files:
registry.py
Log Message:
- Finish merging title / description extraction into SSR.
=== CMF/CMFSetup/registry.py 1.2 => 1.3 ===
--- CMF/CMFSetup/registry.py:1.2 Tue May 11 23:09:22 2004
+++ CMF/CMFSetup/registry.py Wed May 12 14:12:12 2004
@@ -188,6 +188,13 @@
raise KeyError( 'Existing registration for step %s, version %s'
% ( id, already[ 'version' ] ) )
+ if title is None or description is None:
+
+ t, d = _extractDocstring( callable, id, '' )
+
+ title = title or t
+ description = description or d
+
info = { 'id' : id
, 'version' : version
, 'callable' : callable
More information about the CMF-checkins
mailing list