web/formfields.py
changeset 2459 d088d0ff48a1
parent 2362 f2409d5f2b75
child 2520 8c5cf48ae9ea
--- a/web/formfields.py	Thu Jul 23 15:33:03 2009 +0200
+++ b/web/formfields.py	Thu Jul 23 15:57:15 2009 +0200
@@ -11,9 +11,9 @@
 from datetime import datetime
 
 from logilab.mtconverter import xml_escape
-from yams.constraints import SizeConstraint, StaticVocabularyConstraint
+from yams.constraints import (SizeConstraint, StaticVocabularyConstraint,
+                              FormatConstraint)
 
-from cubicweb.schema import FormatConstraint
 from cubicweb.utils import ustrftime, compute_cardinality
 from cubicweb.common import tags, uilib
 from cubicweb.web import INTERNAL_FIELD_VALUE