[Checkins] SVN: Products.GenericSetup/trunk/Products/GenericSetup/tool.py Revert r84468 because it breaks things (UnboundLocalError).

Stefan H. Holek stefan at epy.co.at
Wed Mar 5 02:06:29 EST 2008


Log message for revision 84476:
  Revert r84468 because it breaks things (UnboundLocalError).
  

Changed:
  U   Products.GenericSetup/trunk/Products/GenericSetup/tool.py

-=-
Modified: Products.GenericSetup/trunk/Products/GenericSetup/tool.py
===================================================================
--- Products.GenericSetup/trunk/Products/GenericSetup/tool.py	2008-03-05 05:31:30 UTC (rev 84475)
+++ Products.GenericSetup/trunk/Products/GenericSetup/tool.py	2008-03-05 07:06:28 UTC (rev 84476)
@@ -140,7 +140,7 @@
             unwrapped = aq_base(existing)
             if not isinstance(unwrapped, tool_class):
                 site._delObject(tool_id)
-                site._setObject(tool_id, new_tool)
+                site._setObject(tool_id, tool_class())
 
     logger.info('Toolset imported.')
 



More information about the Checkins mailing list