notification: fix session creation (closes #2934523)
Session() takes a user and repo, not repo and user.
--- 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