web/formfields.py
branchstable
changeset 5367 4176a50c81c9
parent 5220 42f854b6083d
child 5368 d321e4b62a10
--- a/web/formfields.py	Wed Apr 21 16:48:45 2010 +0200
+++ b/web/formfields.py	Wed Apr 21 16:53:25 2010 +0200
@@ -13,6 +13,7 @@
 from datetime import datetime
 
 from logilab.mtconverter import xml_escape
+from logilab.common import nullobject
 from logilab.common.date import ustrftime
 
 from yams.schema import KNOWN_METAATTRIBUTES, role_name
@@ -45,7 +46,7 @@
     result += sorted(partresult)
     return result
 
-_MARKER = object()
+_MARKER = nullobject()
 
 class Field(object):
     """This class is the abstract base class for all fields. It hold a bunch
@@ -601,6 +602,7 @@
         return value
 
 
+# XXX turn into a widget
 class EditableFileField(FileField):
     editable_formats = ('text/plain', 'text/html', 'text/rest')