hooks/email.py
changeset 2843 3f5194ef620d
parent 2841 107ba1c45227
child 2847 c2ee28f4d4b1
--- 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,