backport stable
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Mon, 08 Feb 2010 21:49:14 +0100
changeset 160 65c3bb0b8e0c
parent 159 b44f273f311f (current diff)
parent 156 1bcc5b5693c9 (diff)
child 161 4e7ee3b4a15b
backport stable
schema.py
--- a/schema.py	Mon Feb 08 21:47:54 2010 +0100
+++ b/schema.py	Mon Feb 08 21:49:14 2010 +0100
@@ -1,10 +1,5 @@
-from yams.buildobjs import EntityType, String, SubjectRelation
+from yams.buildobjs import EntityType, String, RichString, SubjectRelation
 from cubicweb.schema import WorkflowableEntityType, ERQLExpression
-try:
-    from yams.buildobjs import RichString
-except ImportError:
-    from cubicweb.schema import RichString
-
 
 class Blog(EntityType):
     title = String(maxsize=50, required=True)