[Erp5-report] r7310 - /erp5/trunk/products/ERP5/Tool/TemplateTool.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Wed May 17 13:25:24 CEST 2006
Author: chris
Date: Wed May 17 13:25:22 2006
New Revision: 7310
URL: http://svn.erp5.org?rev=7310&view=rev
Log:
- added a function needed by orphan files search engine
Modified:
erp5/trunk/products/ERP5/Tool/TemplateTool.py
Modified: erp5/trunk/products/ERP5/Tool/TemplateTool.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/Tool/TemplateTool.py?rev=7310&r1=7309&r2=7310&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Tool/TemplateTool.py (original)
+++ erp5/trunk/products/ERP5/Tool/TemplateTool.py Wed May 17 13:25:22 2006
@@ -103,6 +103,7 @@
return bt
return None
+ # Christophe Dumez <christophe at nexedi.com>
def getInstalledBusinessTemplatesList(self):
"""Get list of installed business templates
"""
@@ -111,6 +112,16 @@
if bt.getInstallationState() == 'installed':
installed_bts.append(bt)
return installed_bts
+
+ # Christophe Dumez <christophe at 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):
"""
More information about the Erp5-report
mailing list