Commit e3d27735 authored by Nicolas Delaby's avatar Nicolas Delaby

add missing imports

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@26938 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 443edc62
# -*- coding: utf-8 -*-
import string import string
from DummyField import fields from DummyField import fields
from DocumentTemplate.DT_Util import html_quote from DocumentTemplate.DT_Util import html_quote
...@@ -6,6 +7,7 @@ from cgi import escape ...@@ -6,6 +7,7 @@ from cgi import escape
import types import types
from DocumentTemplate.ustr import ustr from DocumentTemplate.ustr import ustr
from urlparse import urljoin from urlparse import urljoin
from Globals import get_request
class Widget: class Widget:
"""A field widget that knows how to display itself as HTML. """A field widget that knows how to display itself as HTML.
...@@ -1000,6 +1002,7 @@ class DateTimeWidget(Widget): ...@@ -1000,6 +1002,7 @@ class DateTimeWidget(Widget):
use_timezone = field.get_value('timezone_style') use_timezone = field.get_value('timezone_style')
# FIXME: backwards compatibility hack: # FIXME: backwards compatibility hack:
if not hasattr(field, 'sub_form'): if not hasattr(field, 'sub_form'):
from StandardFields import create_datetime_text_sub_form
field.sub_form = create_datetime_text_sub_form() field.sub_form = create_datetime_text_sub_form()
# Is it still usefull to test the None value, # Is it still usefull to test the None value,
......
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