Commit 0f5ecc0b authored by Jérome Perrin's avatar Jérome Perrin

cleanup unused imports


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@35518 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 4cdd39eb
...@@ -29,8 +29,7 @@ ...@@ -29,8 +29,7 @@
from copy import deepcopy from copy import deepcopy
from Products.Formulator.Form import Form, BasicForm, ZMIForm from Products.Formulator.Form import BasicForm, ZMIForm
from Products.Formulator.Form import manage_addForm, manage_add, initializeForm
from Products.Formulator.Errors import FormValidationError, ValidationError from Products.Formulator.Errors import FormValidationError, ValidationError
from Products.Formulator.DummyField import fields from Products.Formulator.DummyField import fields
from Products.Formulator.XMLToForm import XMLToForm from Products.Formulator.XMLToForm import XMLToForm
...@@ -40,16 +39,14 @@ from Products.CMFCore.exceptions import AccessControl_Unauthorized ...@@ -40,16 +39,14 @@ from Products.CMFCore.exceptions import AccessControl_Unauthorized
from Products.ERP5Type import PropertySheet, Permissions from Products.ERP5Type import PropertySheet, Permissions
from urllib import quote from urllib import quote
from Products.ERP5Type.Globals import InitializeClass, PersistentMapping, DTMLFile, get_request from Products.ERP5Type.Globals import DTMLFile, get_request
from AccessControl import Unauthorized, getSecurityManager, ClassSecurityInfo from AccessControl import Unauthorized, ClassSecurityInfo
from ZODB.POSException import ConflictError from ZODB.POSException import ConflictError
from Acquisition import aq_base from Acquisition import aq_base
from Products.PageTemplates.Expressions import SecureModuleImporter from Products.PageTemplates.Expressions import SecureModuleImporter
from Products.ERP5Type.Utils import UpperCase
from Products.ERP5Type.PsycoWrapper import psyco from Products.ERP5Type.PsycoWrapper import psyco
import sys import sys
import re
_field_value_cache = {} _field_value_cache = {}
def purgeFieldValueCache(): def purgeFieldValueCache():
...@@ -699,11 +696,9 @@ class ERP5Form(ZMIForm, ZopePageTemplate): ...@@ -699,11 +696,9 @@ class ERP5Form(ZMIForm, ZopePageTemplate):
if alternate_name: if alternate_name:
result[alternate_name] = value result[alternate_name] = value
except FormValidationError, e: # XXX JPS Patch for listbox except FormValidationError, e: # XXX JPS Patch for listbox
#LOG('validate_all', 0, 'FormValidationError: field = %s, errors=%s' % (repr(field), repr(errors)))
errors.extend(e.errors) errors.extend(e.errors)
result.update(e.result) result.update(e.result)
except ValidationError, err: except ValidationError, err:
#LOG('validate_all', 0, 'ValidationError: field.id = %s, err=%s' % (repr(field.id), repr(err)))
errors.append(err) errors.append(err)
except KeyError, err: except KeyError, err:
LOG('ERP5Form/Form.py:validate_all', 0, 'KeyError : %s' % (err, )) LOG('ERP5Form/Form.py:validate_all', 0, 'KeyError : %s' % (err, ))
...@@ -991,8 +986,6 @@ class ERP5Form(ZMIForm, ZopePageTemplate): ...@@ -991,8 +986,6 @@ class ERP5Form(ZMIForm, ZopePageTemplate):
are different. And if you specify keep_empty_value, then empty values are different. And if you specify keep_empty_value, then empty values
will not be delegated(force_delegate option is high priority). will not be delegated(force_delegate option is high priority).
""" """
from Products.ERP5Form.ProxyField import ProxyWidget
def copy(field, value_type): def copy(field, value_type):
new_dict = {} new_dict = {}
for key, value in getFieldDict(field, value_type).iteritems(): for key, value in getFieldDict(field, value_type).iteritems():
......
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