server/migractions.py
changeset 10301 729f36a1bcfa
parent 10200 cceb2c7c02f4
parent 10284 fb113f9fa7d8
child 10346 b926ff4ef4a8
equal deleted inserted replaced
10276:ffb269e60348 10301:729f36a1bcfa
   522                     if not rschema in repoeschema.object_relations():
   522                     if not rschema in repoeschema.object_relations():
   523                         continue
   523                         continue
   524                     subjtypes, objtypes = targettypes, [etype]
   524                     subjtypes, objtypes = targettypes, [etype]
   525                 self._synchronize_rschema(rschema, syncrdefs=False,
   525                 self._synchronize_rschema(rschema, syncrdefs=False,
   526                                           syncprops=syncprops, syncperms=syncperms)
   526                                           syncprops=syncprops, syncperms=syncperms)
       
   527                 if rschema.rule: # rdef for computed rtype are infered hence should not be
       
   528                                  # synchronized
       
   529                     continue
   527                 reporschema = self.repo.schema.rschema(rschema)
   530                 reporschema = self.repo.schema.rschema(rschema)
   528                 for subj in subjtypes:
   531                 for subj in subjtypes:
   529                     for obj in objtypes:
   532                     for obj in objtypes:
   530                         if (subj, obj) not in reporschema.rdefs:
   533                         if (subj, obj) not in reporschema.rdefs:
   531                             continue
   534                             continue