# HG changeset patch
# User Sylvain Thénault <sylvain.thenault@logilab.fr>
# Date 1248950542 -7200
#      Thu Jul 30 12:42:22 2009 +0200
# Node ID 079c1fe3b1de6d50f7664d020a86c1c0d652b562
# Parent  e7905e8e5931df44e093bcf8cb5de4176f5289e8
bw compat import

diff --git a/schema.py b/schema.py
--- a/schema.py
+++ b/schema.py
@@ -3,8 +3,11 @@
 :copyright: 2003-2009 LOGILAB S.A. (Paris, FRANCE), all rights reserved.
 :contact: http://www.logilab.fr/ -- mailto:contact@logilab.fr
 """
-from yams.buildobjs import EntityType, RelationType, SubjectRelation, RichString
-
+from yams.buildobjs import EntityType, RelationType, SubjectRelation
+try:
+    from yams.buildobjs import RichString
+except:
+    from cubicweb.schema import RichString
 from cubicweb.schema import RRQLExpression
 
 class Comment(EntityType):