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