[Erp5-report] r26938 - /erp5/trunk/products/Formulator/Widget.py

nobody at svn.erp5.org nobody at svn.erp5.org
Tue May 12 17:11:09 CEST 2009


Author: nicolas
Date: Tue May 12 17:11:06 2009
New Revision: 26938

URL: http://svn.erp5.org?rev=26938&view=rev
Log:
add missing imports

Modified:
    erp5/trunk/products/Formulator/Widget.py

Modified: erp5/trunk/products/Formulator/Widget.py
URL: http://svn.erp5.org/erp5/trunk/products/Formulator/Widget.py?rev=26938&r1=26937&r2=26938&view=diff
==============================================================================
--- erp5/trunk/products/Formulator/Widget.py [utf8] (original)
+++ erp5/trunk/products/Formulator/Widget.py [utf8] Tue May 12 17:11:06 2009
@@ -1,3 +1,4 @@
+# -*- coding: utf-8 -*-
 import string
 from DummyField import fields
 from DocumentTemplate.DT_Util import html_quote
@@ -6,6 +7,7 @@
 import types
 from DocumentTemplate.ustr import ustr
 from urlparse import urljoin
+from Globals import get_request
 
 class Widget:
   """A field widget that knows how to display itself as HTML.
@@ -1000,6 +1002,7 @@
     use_timezone = field.get_value('timezone_style')
     # FIXME: backwards compatibility hack:
     if not hasattr(field, 'sub_form'):
+      from StandardFields import create_datetime_text_sub_form
       field.sub_form = create_datetime_text_sub_form()
         
     # Is it still usefull to test the None value,




More information about the Erp5-report mailing list