server/migractions.py
changeset 9964 f4a3ee05cf9d
parent 9963 5531f5577b50
child 10014 74b793086067
equal deleted inserted replaced
9963:5531f5577b50 9964:f4a3ee05cf9d
   577         * order and other properties
   577         * order and other properties
   578         * constraints
   578         * constraints
   579         """
   579         """
   580         subjtype, objtype = str(subjtype), str(objtype)
   580         subjtype, objtype = str(subjtype), str(objtype)
   581         rschema = self.fs_schema.rschema(rtype)
   581         rschema = self.fs_schema.rschema(rtype)
       
   582         if rschema.rule:
       
   583             raise ExecutionError('Cannot synchronize a relation definition for a '
       
   584                                  'computed relation (%s)' % rschema)
   582         reporschema = self.repo.schema.rschema(rschema)
   585         reporschema = self.repo.schema.rschema(rschema)
   583         if (subjtype, rschema, objtype) in self._synchronized:
   586         if (subjtype, rschema, objtype) in self._synchronized:
   584             return
   587             return
   585         self._synchronized.add((subjtype, rschema, objtype))
   588         self._synchronized.add((subjtype, rschema, objtype))
   586         if rschema.symmetric:
   589         if rschema.symmetric: