Commit 5dffe232 authored by Christophe Dumez's avatar Christophe Dumez

- 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
parent f8b8874d
......@@ -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
"""
......@@ -112,6 +113,16 @@ class TemplateTool (BaseTool):
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):
"""
Call the update method on the configuration, create if it doesn't
......
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