Commit dd17f9dd authored by Nicolas Delaby's avatar Nicolas Delaby

Use new location of VALID_IMAGE_FORMAT_LIST


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@35246 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 8e690dca
# -*- coding: utf-8 -*-
############################################################################## ##############################################################################
# #
# Copyright (c) 2007 Nexedi SA and Contributors. All Rights Reserved. # Copyright (c) 2007 Nexedi SA and Contributors. All Rights Reserved.
...@@ -33,7 +34,7 @@ from Products.Formulator.DummyField import fields ...@@ -33,7 +34,7 @@ from Products.Formulator.DummyField import fields
from Products.Formulator.Field import ZMIField from Products.Formulator.Field import ZMIField
from Selection import Selection from Selection import Selection
from Products.ERP5Type.Globals import get_request 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 from zLOG import LOG
...@@ -474,7 +475,7 @@ class OOoChartWidget(Widget.Widget): ...@@ -474,7 +475,7 @@ class OOoChartWidget(Widget.Widget):
# not editable (otherwise, REQUEST.form may contain listbox=()). # not editable (otherwise, REQUEST.form may contain listbox=()).
url = '%s/%s/%s?%s' % (here.absolute_url(), form.getId(), field.getId(), url = '%s/%s/%s?%s' % (here.absolute_url(), form.getId(), field.getId(),
make_query(query_dict)) make_query(query_dict))
if format in STANDARD_IMAGE_FORMAT_LIST: if format in VALID_IMAGE_FORMAT_LIST:
return '''<div class="OOoChartContent"> return '''<div class="OOoChartContent">
<img class="%s" src="%s" title="%s" alt="%s"/"> <img class="%s" src="%s" title="%s" alt="%s"/">
</div>''' % (css_class, </div>''' % (css_class,
......
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