devtools/fill.py
branchstable
changeset 3747 9165bd634f90
parent 3742 20f429eb5f46
child 3749 a84e798b99f6
equal deleted inserted replaced
3746:74192424b2c8 3747:9165bd634f90
   365         #   3/ analyze cardinality of relation
   365         #   3/ analyze cardinality of relation
   366         #      a/ if relation is mandatory, insert one relation
   366         #      a/ if relation is mandatory, insert one relation
   367         #      b/ else insert N relations where N is the mininum
   367         #      b/ else insert N relations where N is the mininum
   368         #         of 20 and the number of existing targetable entities
   368         #         of 20 and the number of existing targetable entities
   369         for rschema in rels:
   369         for rschema in rels:
   370             print rschema
       
   371             sym = set()
   370             sym = set()
   372             sedict = deepcopy(edict)
   371             sedict = deepcopy(edict)
   373             oedict = deepcopy(edict)
   372             oedict = deepcopy(edict)
   374             delayed = []
   373             delayed = []
   375             # for each couple (subjschema, objschema), insert relations
   374             # for each couple (subjschema, objschema), insert relations