server/migractions.py
branchtls-sprint
changeset 1414 448c9802d7df
parent 1409 f4dee84a618f
child 1477 b056a49c16dc
equal deleted inserted replaced
1412:f3361e29d91f 1414:448c9802d7df
   404             reporschema = self.repo.schema.rschema(rschema)
   404             reporschema = self.repo.schema.rschema(rschema)
   405             for subj in subjtypes:
   405             for subj in subjtypes:
   406                 for obj in objtypes:
   406                 for obj in objtypes:
   407                     if not reporschema.has_rdef(subj, obj):
   407                     if not reporschema.has_rdef(subj, obj):
   408                         continue
   408                         continue
   409                     self._synchronize_rdef_schema(subj, rschema, obj,
   409                     self._synchronize_rdef_schema(subj, rschema, obj)
   410                                                      commit=False)
       
   411         if syncperms:
   410         if syncperms:
   412             self._synchronize_permissions(etype)
   411             self._synchronize_permissions(etype)
   413 
   412 
   414     def _synchronize_rdef_schema(self, subjtype, rtype, objtype):
   413     def _synchronize_rdef_schema(self, subjtype, rtype, objtype):
   415         """synchronize properties of the persistent relation definition schema
   414         """synchronize properties of the persistent relation definition schema