schema.py 397 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
from yams.buildobjs import EntityType, String, SubjectRelation


class CWDataSet(EntityType):
    name = String(required=True)
    description = String()
    ckan_dataset_id = String(
        __permissions__={'read': ('managers', 'users', 'guests'),
                         'add': (),
                         'update': ()},
        )
    maintainer = SubjectRelation('CWUser', cardinality='?*')