[Erp5-report] r16585 - /erp5/trunk/products/ERP5/Tool/TemplateTool.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Tue Sep 25 02:14:01 CEST 2007
Author: yo
Date: Tue Sep 25 02:14:00 2007
New Revision: 16585
URL: http://svn.erp5.org?rev=16585&view=rev
Log:
Deprecate wrong method names, and make appropriate ones.
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=16585&r1=16584&r2=16585&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Tool/TemplateTool.py (original)
+++ erp5/trunk/products/ERP5/Tool/TemplateTool.py Tue Sep 25 02:14:00 2007
@@ -45,6 +45,7 @@
from difflib import unified_diff
from cStringIO import StringIO
from zLOG import LOG
+from warning import warn
from urllib import pathname2url, urlopen, splittype, urlretrieve
import re
from xml.dom.minidom import parse
@@ -127,9 +128,14 @@
return bt
return None
- # Christophe Dumez <christophe at nexedi.com>
def getInstalledBusinessTemplatesList(self):
- """Get list of installed business templates
+ """Deprecated.
+ """
+ DeprecationWarning('getInstalledBusinessTemplatesList is deprecated; Use getInstalledBusinessTemplateList instead.', DeprecationWarning)
+ return self.getInstalledBusinessTemplateList()
+
+ def getInstalledBusinessTemplateList(self):
+ """Get the list of installed business templates.
"""
installed_bts = []
for bt in self.contentValues(filter={'portal_type':'Business Template'}):
@@ -137,9 +143,14 @@
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
+ """Deprecated.
+ """
+ DeprecationWarning('getBuiltBusinessTemplatesList is deprecated; Use getBuiltBusinessTemplateList instead.', DeprecationWarning)
+ return self.getBuiltBusinessTemplateList()
+
+ def getBuiltBusinessTemplateList(self):
+ """Get the list of built and not installed business templates.
"""
built_bts = []
for bt in self.contentValues(filter={'portal_type':'Business Template'}):
More information about the Erp5-report
mailing list