notification: fix session creation (closes #2934523)
authorJulien Cristau <julien.cristau@logilab.fr>
Wed, 12 Jun 2013 12:27:00 +0200
changeset 9004 a3594bf2b6bf
parent 9003 dfd818290ffb
child 9005 63cf580accfc
notification: fix session creation (closes #2934523) Session() takes a user and repo, not repo and user.
sobjects/notification.py
--- a/sobjects/notification.py	Fri Jun 07 16:48:20 2013 +0200
+++ b/sobjects/notification.py	Wed Jun 12 12:27:00 2013 +0200
@@ -119,7 +119,7 @@
         for something in recipients:
             if isinstance(something, Entity):
                 # hi-jack self._cw to get a session for the returned user
-                self._cw = Session(self._cw.repo, something)
+                self._cw = Session(something, self._cw.repo)
                 emailaddr = something.cw_adapt_to('IEmailable').get_email()
             else:
                 emailaddr, lang = something