From 5dffe23228efc50e01f1396ba17ee95f43d10a7d Mon Sep 17 00:00:00 2001
From: Christophe Dumez <christophe@nexedi.com>
Date: Wed, 17 May 2006 11:25:22 +0000
Subject: [PATCH] - added a function needed by orphan files search engine

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@7310 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 product/ERP5/Tool/TemplateTool.py | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/product/ERP5/Tool/TemplateTool.py b/product/ERP5/Tool/TemplateTool.py
index 9bd78d9d6d..6a61923162 100644
--- a/product/ERP5/Tool/TemplateTool.py
+++ b/product/ERP5/Tool/TemplateTool.py
@@ -103,6 +103,7 @@ class TemplateTool (BaseTool):
           return bt
       return None
         
+    # Christophe Dumez <christophe@nexedi.com>
     def getInstalledBusinessTemplatesList(self):
       """Get list of installed business templates
       """
@@ -111,6 +112,16 @@ class TemplateTool (BaseTool):
         if bt.getInstallationState() == 'installed':
           installed_bts.append(bt)
       return installed_bts
+        
+    # Christophe Dumez <christophe@nexedi.com>
+    def getBuiltBusinessTemplatesList(self):
+      """Get list of built and not_installed business templates
+      """
+      built_bts = []
+      for bt in self.contentValues(filter={'portal_type':'Business Template'}):
+        if bt.getInstallationState() == 'not_installed' and bt.getBuildingState() == 'built':
+          built_bts.append(bt)
+      return built_bts
 
     def updateLocalConfiguration(self, template, **kw):
       """
-- 
2.30.9