author | Sylvain Thénault <sylvain.thenault@logilab.fr> |
Fri, 14 Aug 2009 11:44:19 +0200 | |
changeset 2843 | 3f5194ef620d |
parent 2842 | 0477fff5f897 |
child 2844 | 4657d6e16e0c |
hooks/email.py | file | annotate | diff | comparison | revisions |
--- a/hooks/email.py Fri Aug 14 11:14:26 2009 +0200 +++ b/hooks/email.py Fri Aug 14 11:44:19 2009 +0200 @@ -42,7 +42,7 @@ category = 'email' events = ('after_add_relation',) - def call(self, session, eidfrom, rtype, eidto): + def __call__(self): entity = self.cw_req.entity_from_eid(self.eidfrom) if 'primary_email' in entity.e_schema.subject_relations(): SetPrimaryEmailRelationOp(self.cw_req, entity=entity,