Commit bb42dd0a authored by Yoshinori Okuji's avatar Yoshinori Okuji

Override __init__ to set the default stored_encoding to UTF-8.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@1489 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 1fb2a4d8
......@@ -320,6 +320,18 @@ class ERP5Form(ZMIForm, ZopePageTemplate):
# Special Settings
settings_form = create_settings_form()
def __init__(self, id, title, unicode_mode=0, encoding='UTF-8', stored_encoding='UTF-8'):
"""Initialize form.
id -- id of form
title -- the title of the form
"""
ZMIForm.inheritedAttribute('__init__')(self, "", "POST", "", id,
encoding, stored_encoding,
unicode_mode)
self.id = id
self.title = title
self.row_length = 4
# Proxy method to PageTemplate
def __call__(self, *args, **kwargs):
if not kwargs.has_key('args'):
......
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