schemas/bootstrap.py
changeset 2459 d088d0ff48a1
parent 2438 576f4d51f826
child 2476 1294a6bdf3bf
equal deleted inserted replaced
2458:4d114865098f 2459:d088d0ff48a1
     7 """
     7 """
     8 __docformat__ = "restructuredtext en"
     8 __docformat__ = "restructuredtext en"
     9 _ = unicode
     9 _ = unicode
    10 
    10 
    11 from yams.buildobjs import (EntityType, RelationType, SubjectRelation,
    11 from yams.buildobjs import (EntityType, RelationType, SubjectRelation,
    12                             ObjectRelation, String, Boolean, Int)
    12                             ObjectRelation, RichString, String, Boolean, Int)
    13 from cubicweb.schema import RichString, RQLConstraint
    13 from cubicweb.schema import RQLConstraint
    14 from cubicweb.schemas import META_ETYPE_PERMS, META_RTYPE_PERMS
    14 from cubicweb.schemas import META_ETYPE_PERMS, META_RTYPE_PERMS
    15 
    15 
    16 # not restricted since as "is" is handled as other relations, guests need
    16 # not restricted since as "is" is handled as other relations, guests need
    17 # access to this
    17 # access to this
    18 class CWEType(EntityType):
    18 class CWEType(EntityType):