author | Stephanie Marcu <stephanie.marcu@logilab.fr> |
Tue, 19 Jan 2010 12:34:52 +0100 | |
changeset 4264 | 273307c54b4d |
parent 4263 | c541602a309d |
child 4265 | 0912f111b028 |
selectors.py | file | annotate | diff | comparison | revisions |
--- a/selectors.py Tue Jan 19 12:27:55 2010 +0100 +++ b/selectors.py Tue Jan 19 12:34:52 2010 +0100 @@ -726,7 +726,7 @@ self.target_etype = target_etype def score_entity(self, entity): - rschema = entity.schema.rschema(self.rtype) + rschema = entity._cw.vreg.schema.rschema(self.rtype) if self.target_etype is not None: rschema = rschema.role_rdef(entity.e_schema, self.target_etype, self.role) if self.role == 'subject':