diff --git a/schema.py b/schema.py index e6f82bd08bc02ae4a4b5f865d674a9ab014985ea_c2NoZW1hLnB5..0120dccac13d34a4367c54edff6e0558a20d902a_c2NoZW1hLnB5 100644 --- a/schema.py +++ b/schema.py @@ -1,10 +1,4 @@ -from yams.buildobjs import EntityType, RelationType, String, Boolean - -try: - from yams.buildobjs import RichString -except ImportError: - from cubicweb.schema import RichString - +from yams.buildobjs import EntityType, RelationType, String, Boolean, RichString _ = unicode class Link(EntityType): @@ -17,7 +11,6 @@ description = RichString(fulltextindexed=True, description=_("description of the linked page's content")) - class embed(RelationType): __permissions__ = {'read': ('managers', 'users', 'guests'), 'delete': ('managers',),