[tests] make sure controllers created by ctrl_publish() have a valid appli attribute stable
authorAdrien Di Mascio <Adrien.DiMascio@logilab.fr>
Thu, 08 Jul 2010 15:30:53 +0200
branchstable
changeset 5942 f7768f44b4ac
parent 5929 bd0b98a1086b
child 5948 4154bdc85fe4
child 5954 987086484876
[tests] make sure controllers created by ctrl_publish() have a valid appli attribute
devtools/testlib.py
--- a/devtools/testlib.py	Wed Jul 07 15:21:21 2010 +0200
+++ b/devtools/testlib.py	Thu Jul 08 15:30:53 2010 +0200
@@ -518,7 +518,7 @@
 
     def ctrl_publish(self, req, ctrl='edit'):
         """call the publish method of the edit controller"""
-        ctrl = self.vreg['controllers'].select(ctrl, req)
+        ctrl = self.vreg['controllers'].select(ctrl, req, appli=self.app)
         try:
             result = ctrl.publish()
             req.cnx.commit()