schemas/base.py
branchstable
changeset 7826 65b7ea00bab8
parent 7782 40a49f4350a5
child 7845 2172978be237
child 7921 a93e2ed5877a
equal deleted inserted replaced
7825:7e8c6a7e013e 7826:65b7ea00bab8
   329     cardinality = '1*'
   329     cardinality = '1*'
   330     composite = 'object'
   330     composite = 'object'
   331 
   331 
   332 class CWSourceSchemaConfig(EntityType):
   332 class CWSourceSchemaConfig(EntityType):
   333     __permissions__ = ENTITY_MANAGERS_PERMISSIONS
   333     __permissions__ = ENTITY_MANAGERS_PERMISSIONS
   334     __unique_together__ = [('cw_for_source', 'cw_schema')]
       
   335     cw_for_source = SubjectRelation(
   334     cw_for_source = SubjectRelation(
   336         'CWSource', inlined=True, cardinality='1*', composite='object',
   335         'CWSource', inlined=True, cardinality='1*', composite='object',
   337         __permissions__=RELATION_MANAGERS_PERMISSIONS)
   336         __permissions__=RELATION_MANAGERS_PERMISSIONS)
   338     options = String(description=_('allowed options depends on the source type'))
   337     options = String(description=_('allowed options depends on the source type'))
   339 
   338