[Erp5-report] r25717 - /erp5/trunk/products/ERP5/Tool/IntrospectionTool.py

nobody at svn.erp5.org nobody at svn.erp5.org
Wed Feb 25 18:02:58 CET 2009


Author: jp
Date: Wed Feb 25 18:02:58 2009
New Revision: 25717

URL: http://svn.erp5.org?rev=25717&view=rev
Log:
Marshall actions

Modified:
    erp5/trunk/products/ERP5/Tool/IntrospectionTool.py

Modified: erp5/trunk/products/ERP5/Tool/IntrospectionTool.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/Tool/IntrospectionTool.py?rev=25717&r1=25716&r2=25717&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Tool/IntrospectionTool.py [utf8] (original)
+++ erp5/trunk/products/ERP5/Tool/IntrospectionTool.py [utf8] Wed Feb 25 18:02:58 2009
@@ -74,7 +74,12 @@
       # restore original Security Manager
       setSecurityManager(original_security_manager)
 
-    return erp5_menu_dict
+    # Unlazyfy URLs and other lazy values so that it can be marshalled
+    result = {}
+    for key, action_list in erp5_menu_dict.items():
+      result[key] = map(lambda action:dict(action), action_list)
+
+    return result
 
   security.declareProtected('getModuleItemList', Permissions.AccessContentsInformation)
   def getModuleItemList(self, user_name=_MARKER):




More information about the Erp5-report mailing list