sobjects/notification.py
changeset 2304 8381cc99daa8
parent 2144 51c84d585456
child 2565 df34d3720ff5
--- 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)