equal
deleted
inserted
replaced
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() |