From ccd851c024e484c391cec876ad2013692175ff8d Mon Sep 17 00:00:00 2001
From: Rafael Monnerat <rafael@nexedi.com>
Date: Tue, 21 Jun 2011 00:53:38 -0300
Subject: [PATCH] Added method to collect few informations about installed
 business templates

Only name and revision.
---
 product/ERP5/Tool/IntrospectionTool.py | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/product/ERP5/Tool/IntrospectionTool.py b/product/ERP5/Tool/IntrospectionTool.py
index 5b3578b07d..3bbbbdcd0b 100644
--- a/product/ERP5/Tool/IntrospectionTool.py
+++ b/product/ERP5/Tool/IntrospectionTool.py
@@ -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):
-- 
2.30.9