[Checkins] SVN: CompositePage/trunk/Products/CompositePage/tool.py Just replace existing UI registrations so CompositePack doesn't have to hack.
Shane Hathaway
shane at hathawaymix.org
Sat Apr 30 23:53:34 EDT 2011
Log message for revision 121492:
Just replace existing UI registrations so CompositePack doesn't have to hack.
Changed:
U CompositePage/trunk/Products/CompositePage/tool.py
-=-
Modified: CompositePage/trunk/Products/CompositePage/tool.py
===================================================================
--- CompositePage/trunk/Products/CompositePage/tool.py 2011-04-30 19:48:02 UTC (rev 121491)
+++ CompositePage/trunk/Products/CompositePage/tool.py 2011-05-01 03:53:33 UTC (rev 121492)
@@ -36,9 +36,9 @@
def registerUI(name, obj):
"""Registers a page design UI for use with the composite tool.
+
+ Replaces any existing registration.
"""
- if _uis.has_key(name):
- raise RuntimeError("There is already a UI named %s" % name)
obj._setId(name)
_uis[name] = obj
More information about the checkins
mailing list