# HG changeset patch # User Sylvain Thénault # Date 1250243059 -7200 # Node ID 3f5194ef620d60a7a3621a2ffebfd6d6bbb4231e # Parent 0477fff5f8979aec9015c35e814cbf1320229046 should be __call__ diff -r 0477fff5f897 -r 3f5194ef620d hooks/email.py --- 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,