Commit ccd851c0 authored by Rafael Monnerat's avatar Rafael Monnerat

Added method to collect few informations about installed business templates

Only name and revision.
parent 58dd3a51
......@@ -356,6 +356,17 @@ class IntrospectionTool(LogMixin, BaseTool):
return get_system_version_dict()
security.declareProtected(Permissions.ManagePortal,
security.declareProtected(Permissions.ManagePortal,
'_getBusinessTemplateRevisionDict')
def _getBusinessTemplateRevisionDict(self):
""" Return a Dictionary of installed business templates and their revisions
"""
business_template_dict = {}
for installed in self.portal_templates.getInstalledBusinessTemplateList():
business_template_dict[installed.getTitle()] = installed.getRevision()
return business_template_dict
security.declareProtected(Permissions.ManagePortal,
'_getActivityDict')
def _getActivityDict(self):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment