devtools/testlib.py
branchstable
changeset 5268 b4bb59824d72
parent 5267 7bac6791bbc2
parent 5247 3c8f6e6014f4
child 5274 16461f675734
child 5377 84d14ddfae13
--- a/devtools/testlib.py	Thu Apr 15 10:59:49 2010 +0200
+++ b/devtools/testlib.py	Thu Apr 15 11:00:44 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()