diff -r 715d691280ad -r 9cb6b0cc2a7c hooks/syncschema.py --- a/hooks/syncschema.py Wed Sep 23 11:03:38 2009 +0200 +++ b/hooks/syncschema.py Wed Sep 23 11:03:57 2009 +0200 @@ -1121,7 +1121,7 @@ events = ('after_add_relation',) def __call__(self): - MemSchemaSpecializesAdd(session, etypeeid=self.eidfrom, + MemSchemaSpecializesAdd(self._cw, etypeeid=self.eidfrom, parentetypeeid=self.eidto) @@ -1131,5 +1131,5 @@ events = ('after_delete_relation',) def __call__(self): - MemSchemaSpecializesDel(session, etypeeid=self.eidfrom, + MemSchemaSpecializesDel(self._cw, etypeeid=self.eidfrom, parentetypeeid=self.eidto)