# HG changeset patch # User Julien Cristau # Date 1371032820 -7200 # Node ID a3594bf2b6bf7b5618134a01e2967ac558dc9efa # Parent dfd818290ffbd3ce09ea9b4d97785cb834a5f863 notification: fix session creation (closes #2934523) Session() takes a user and repo, not repo and user. diff -r dfd818290ffb -r a3594bf2b6bf 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