Commit 9e74a4a1 authored by Sylvain Thénault's avatar Sylvain Thénault
Browse files

stop using deprecated base classes

parent 6a67ddab99eb
from yams.buildobjs import (MetaUserEntityType, MetaUserRelationType,
ObjectRelation, String)
from yams.buildobjs import EntityType, RelationType, ObjectRelation, String
try:
from yams.buildobjs import RichString
except ImportError:
......@@ -7,7 +6,7 @@ except ImportError:
from cubicweb.schema import ERQLExpression
class Basket(MetaUserEntityType):
class Basket(EntityType):
"""a basket contains a set of other entities"""
permissions = {
'read': ('managers', ERQLExpression('X owned_by U'),),
......@@ -23,5 +22,5 @@ class Basket(MetaUserEntityType):
in_basket = ObjectRelation('*')
class in_basket(MetaUserRelationType):
class in_basket(RelationType):
pass
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment