devtools/testlib.py
branchstable
changeset 5942 f7768f44b4ac
parent 5813 0b250d72fcfa
child 5948 4154bdc85fe4
equal deleted inserted replaced
5929:bd0b98a1086b 5942:f7768f44b4ac
   516     def app_publish(self, req, path='view'):
   516     def app_publish(self, req, path='view'):
   517         return self.app.publish(path, req)
   517         return self.app.publish(path, req)
   518 
   518 
   519     def ctrl_publish(self, req, ctrl='edit'):
   519     def ctrl_publish(self, req, ctrl='edit'):
   520         """call the publish method of the edit controller"""
   520         """call the publish method of the edit controller"""
   521         ctrl = self.vreg['controllers'].select(ctrl, req)
   521         ctrl = self.vreg['controllers'].select(ctrl, req, appli=self.app)
   522         try:
   522         try:
   523             result = ctrl.publish()
   523             result = ctrl.publish()
   524             req.cnx.commit()
   524             req.cnx.commit()
   525         except web.Redirect:
   525         except web.Redirect:
   526             req.cnx.commit()
   526             req.cnx.commit()