[Erp5-report] r35246 nicolas - /erp5/trunk/products/ERP5Form/OOoChart.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Wed May 12 18:42:32 CEST 2010
Author: nicolas
Date: Wed May 12 18:42:31 2010
New Revision: 35246
URL: http://svn.erp5.org?rev=35246&view=rev
Log:
Use new location of VALID_IMAGE_FORMAT_LIST
Modified:
erp5/trunk/products/ERP5Form/OOoChart.py
Modified: erp5/trunk/products/ERP5Form/OOoChart.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Form/OOoChart.py?rev=35246&r1=35245&r2=35246&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Form/OOoChart.py [utf8] (original)
+++ erp5/trunk/products/ERP5Form/OOoChart.py [utf8] Wed May 12 18:42:31 2010
@@ -1,3 +1,4 @@
+# -*- coding: utf-8 -*-
##############################################################################
#
# Copyright (c) 2007 Nexedi SA and Contributors. All Rights Reserved.
@@ -33,7 +34,7 @@
from Products.Formulator.Field import ZMIField
from Selection import Selection
from Products.ERP5Type.Globals import get_request
-from Products.ERP5OOo.Document.OOoDocument import STANDARD_IMAGE_FORMAT_LIST
+from Products.ERP5.Document.Document import VALID_IMAGE_FORMAT_LIST
from zLOG import LOG
@@ -474,7 +475,7 @@
# not editable (otherwise, REQUEST.form may contain listbox=()).
url = '%s/%s/%s?%s' % (here.absolute_url(), form.getId(), field.getId(),
make_query(query_dict))
- if format in STANDARD_IMAGE_FORMAT_LIST:
+ if format in VALID_IMAGE_FORMAT_LIST:
return '''<div class="OOoChartContent">
<img class="%s" src="%s" title="%s" alt="%s"/">
</div>''' % (css_class,
More information about the Erp5-report
mailing list