optional rset
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Wed, 22 Jul 2009 18:34:00 +0200
changeset 2418 8f06e4f02733
parent 2417 18a14c23413c
child 2422 96da7dc42eb5
optional rset
view.py
--- a/view.py	Wed Jul 22 18:33:35 2009 +0200
+++ b/view.py	Wed Jul 22 18:34:00 2009 +0200
@@ -334,7 +334,7 @@
 
     default_rql = None
 
-    def __init__(self, req, rset, **kwargs):
+    def __init__(self, req, rset=None, **kwargs):
         super(EntityStartupView, self).__init__(req, rset, **kwargs)
         if rset is None:
             # this instance is not in the "entityview" category