Commit f2359b7c authored by Rafael Monnerat's avatar Rafael Monnerat

Use filter for return only essential information.

parent 8a0d8442
...@@ -1210,9 +1210,10 @@ class TemplateTool (BaseTool): ...@@ -1210,9 +1210,10 @@ class TemplateTool (BaseTool):
return 0 return 0
def _getBusinessTemplateUrlDict(self): def _getBusinessTemplateUrlDict(self, newest_only=False):
business_template_url_dict = {} business_template_url_dict = {}
for bt in self.getRepositoryBusinessTemplateList(): for bt in self.getRepositoryBusinessTemplateList(\
newest_only=newest_only):
url, name = self.decodeRepositoryBusinessTemplateUid(bt.getUid()) url, name = self.decodeRepositoryBusinessTemplateUid(bt.getUid())
if name.endswith('.bt5'): if name.endswith('.bt5'):
name = name[:-4] name = name[:-4]
......
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