[controller] should catch and set appli argument here now that the old AppObject class is gone
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Mon, 03 Aug 2009 16:33:27 +0200
changeset 2663 2bb628e0cc3b
parent 2662 87aed8cb7ff6
child 2664 1578e1a57828
[controller] should catch and set appli argument here now that the old AppObject class is gone
web/controller.py
--- a/web/controller.py	Mon Aug 03 16:32:30 2009 +0200
+++ b/web/controller.py	Mon Aug 03 16:33:27 2009 +0200
@@ -71,6 +71,7 @@
     registered = require_group_compat(AppObject.registered)
 
     def __init__(self, *args, **kwargs):
+        self.appli = kwargs.pop('appli', None)
         super(Controller, self).__init__(*args, **kwargs)
         # attributes use to control after edition redirection
         self._after_deletion_path = None