name rset argument
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Tue, 07 Jul 2009 11:38:58 +0200
changeset 2304 8381cc99daa8
parent 2303 ea86d250cca9
child 2316 234475d6ed7b
child 2318 17f7c3990f9b
name rset argument
sobjects/notification.py
--- a/sobjects/notification.py	Tue Jul 07 11:38:48 2009 +0200
+++ b/sobjects/notification.py	Tue Jul 07 11:38:58 2009 +0200
@@ -77,7 +77,7 @@
         rset = entity.related('wf_info_for')
         try:
             view = session.vreg.select('views', 'notif_status_change',
-                                            session, rset, row=0)
+                                       session, rset=rset, row=0)
         except RegistryException:
             return
         comment = entity.printable_value('comment', format='text/plain')
@@ -100,7 +100,7 @@
         rset = session.eid_rset(fromeid)
         vid = 'notif_%s_%s' % (self.event,  rtype)
         try:
-            view = session.vreg.select('views', vid, session, rset, row=0)
+            view = session.vreg.select('views', vid, session, rset=rset, row=0)
         except RegistryException:
             return
         RenderAndSendNotificationView(session, view=view)
@@ -117,7 +117,7 @@
         rset = entity.as_rset()
         vid = 'notif_%s' % self.event
         try:
-            view = session.vreg.select('views', vid, session, rset, row=0)
+            view = session.vreg.select('views', vid, session, rset=rset, row=0)
         except RegistryException:
             return
         RenderAndSendNotificationView(session, view=view)