author | Sylvain Thénault <sylvain.thenault@logilab.fr> |
Wed, 14 Apr 2010 16:26:02 +0200 | |
branch | stable |
changeset 5247 | 3c8f6e6014f4 |
parent 5245 | 385c2351153e |
child 5248 | 8f7843afb014 |
--- a/devtools/testlib.py Wed Apr 14 10:31:09 2010 +0200 +++ b/devtools/testlib.py Wed Apr 14 16:26:02 2010 +0200 @@ -492,9 +492,9 @@ def app_publish(self, req, path='view'): return self.app.publish(path, req) - def ctrl_publish(self, req): + def ctrl_publish(self, req, ctrl='edit'): """call the publish method of the edit controller""" - ctrl = self.vreg['controllers'].select('edit', req) + ctrl = self.vreg['controllers'].select(ctrl, req) try: result = ctrl.publish() req.cnx.commit()