Commit 627c0fd5 authored by Sylvain Thénault's avatar Sylvain Thénault
Browse files

stop using ObjectRelation

branch : stable
parent 6ce95a79a2fd
from yams.buildobjs import EntityType, RelationType, ObjectRelation, String
from yams.buildobjs import RichString
except ImportError:
from cubicweb.schema import RichString
from yams.buildobjs import EntityType, RelationDefinition, String
from cubicweb.schema import RichString
from cubicweb.schema import ERQLExpression
class Basket(EntityType):
......@@ -19,8 +16,6 @@ class Basket(EntityType):
description = RichString(fulltextindexed=True)
in_basket = ObjectRelation('*')
class in_basket(RelationType):
class in_basket(RelationDefinition):
subject = '*'
object = 'Basket'
Markdown is supported
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