server/test/data/schema/custom.py
author sylvain.thenault@logilab.fr
Mon, 06 Apr 2009 16:11:38 +0200
changeset 1250 5c20a7f13c84
parent 393 45a675515427
child 1398 5fe84a5f7035
permissions -rw-r--r--
new recreate argument to extid2eid when an external source want to recreate entities previously imported with a predictable ext id



class test(AttributeRelationType):
    permissions = {'read': ('managers', 'users', 'guests'),
                   'delete': ('managers',),
                   'add': ('managers',)}

class fiche(RelationType):
    inlined = True
    subject = 'Personne'
    object = 'Card'
    cardinality = '??'

class multisource_rel(RelationDefinition):
    subject = ('Card', 'Note')
    object = 'Note'

class multisource_crossed_rel(RelationDefinition):
    subject = ('Card', 'Note')
    object = 'Note'

class multisource_inlined_rel(RelationType):
    inlined = True
    cardinality = '?*'
    subject = ('Card', 'Note')
    object = ('Affaire', 'Note')


class see_also(RelationDefinition):
    subject = ('Bookmark', 'Note')
    object = ('Bookmark', 'Note')

_euser = import_schema('base').EUser
_euser.__relations__[0].fulltextindexed = True