Commit fbdee479 authored by Rafael Monnerat's avatar Rafael Monnerat

Fix Plural and introduce deprecation warnning

installBusinessTemplatesFromRepositories uses plural, which is a code crime,
Keep it deprecated to preserve backward compatibility.
parent 04ac2b75
......@@ -1226,6 +1226,16 @@ class TemplateTool (BaseTool):
'installBusinessTemplatesFromRepositories')
def installBusinessTemplatesFromRepositories(self, template_list,
only_newer=True, update_catalog=_MARKER):
"""Deprecated.
"""
DeprecationWarning('getInstalledBusinessTemplatesList is deprecated; Use getInstalledBusinessTemplateList instead.', DeprecationWarning)
return self.installBusinessTemplateListFromRepository(template_list,
only_newer, update_catalog, activate=False)
security.declareProtected(Permissions.ManagePortal,
'installBusinessTemplateListFromRepository')
def installBusinessTemplateListFromRepository(self, template_list,
only_newer=True, update_catalog=_MARKER, activate=False):
"""Installs template_list from configured repositories by default only newest"""
# XXX-Luke: This method could replace
# TemplateTool_installRepositoryBusinessTemplateList while still being
......
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