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