[Erp5-report] r26148 - /erp5/trunk/products/ERP5/Tool/IntrospectionTool.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Tue Mar 24 21:31:45 CET 2009
Author: rafael
Date: Tue Mar 24 21:31:44 2009
New Revision: 26148
URL: http://svn.erp5.org?rev=26148&view=rev
Log:
Revert my previous change. Activities and Business Templates should be directly handled by portal_activities and portal_templates.
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=26148&r1=26147&r2=26148&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Tool/IntrospectionTool.py [utf8] (original)
+++ erp5/trunk/products/ERP5/Tool/IntrospectionTool.py [utf8] Tue Mar 24 21:31:44 2009
@@ -104,36 +104,4 @@
return erp5_module_list
- security.declareProtected(Permissions.AccessContentsInformation,
- 'getActivityMessageList')
- def getActivityMessageList(self, processing_node=None):
- """
- Returns the activity messages (as dict) list
- """
- portal_activities = self.getPortalObject().portal_activities
- m_list = portal_activities.getMessageList()
-
- def getPropertyDict(message):
- return message.__dict__
- #return dict(object_path = message.object_path,
- # method_id = message.method_id,
- # processing_node = message.processing_node)
-
-
- return [ getPropertyDict(m) for m in m_list ]
-
- security.declareProtected(Permissions.AccessContentsInformation,
- 'installBusinessTemplate')
- def installBusinesstemplate(self, url="", activate_kw={} ):
- """
- install one business template
- """
- portal_templates = self.getPortalObject().portal_templates
-
- bt = portal_templates.download(url)
- bt.activate(**activate_kw).install(force=True)
- return [ bt.getId() , bt.getTitle() ]
-
-
-
InitializeClass(IntrospectionTool)
More information about the Erp5-report
mailing list