[Erp5-report] r41209 nicolas - /erp5/trunk/products/ERP5/Document/Document.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Wed Dec 8 11:24:16 CET 2010
Author: nicolas
Date: Wed Dec 8 11:24:15 2010
New Revision: 41209
URL: http://svn.erp5.org?rev=41209&view=rev
Log:
guessEncodingFromText is a function not a method of portal_contributions
Modified:
erp5/trunk/products/ERP5/Document/Document.py
Modified: erp5/trunk/products/ERP5/Document/Document.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/Document/Document.py?rev=41209&r1=41208&r2=41209&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Document/Document.py [utf8] (original)
+++ erp5/trunk/products/ERP5/Document/Document.py [utf8] Wed Dec 8 11:24:15 2010
@@ -41,7 +41,7 @@ from Products.ERP5Type.XMLObject import
from Products.ERP5Type.DateUtils import convertDateToHour,\
number_of_hours_in_day, number_of_hours_in_year
from Products.ERP5Type.Utils import convertToUpperCase, fill_args_from_request,\
- deprecated
+ deprecated, guessEncodingFromText
from Products.ERP5Type.TransactionalVariable import getTransactionalVariable
from Products.ERP5Type.Cache import getReadOnlyTransactionCache
from Products.ERP5.Tool.ContributionTool import MAX_REPEAT
@@ -709,8 +709,7 @@ class Document(DocumentExtensibleTravers
"""
Deprecated method
"""
- contribution_tool = self.getPortalObject().portal_contributions
- return contribution_tool.guessEncodingFromText(string, content_type=mime)
+ return guessEncodingFromText(string, content_type=mime)
def _stripHTML(self, html, charset=None):
"""
More information about the Erp5-report
mailing list