merge stable
authorAurelien Campeas <aurelien.campeas@logilab.fr>
Thu, 15 Apr 2010 11:00:44 +0200
branchstable
changeset 5268 b4bb59824d72
parent 5267 7bac6791bbc2 (current diff)
parent 5252 9c765b1d8250 (diff)
child 5269 2e5bc78d05f3
merge
devtools/testlib.py
--- 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()
--- a/etwist/server.py	Thu Apr 15 10:59:49 2010 +0200
+++ b/etwist/server.py	Thu Apr 15 11:00:44 2010 +0200
@@ -283,11 +283,11 @@
 from twisted.internet import defer
 from twisted.web2 import fileupload
 
-# XXX set max file size to 100Mo: put max upload size in the configuration
+# XXX set max file size to 200Mo: put max upload size in the configuration
 # line below for twisted >= 8.0, default param value for earlier version
-resource.PostableResource.maxSize = 100*1024*1024
+resource.PostableResource.maxSize = 200*1024*1024
 def parsePOSTData(request, maxMem=100*1024, maxFields=1024,
-                  maxSize=100*1024*1024):
+                  maxSize=200*1024*1024):
     if request.stream.length == 0:
         return defer.succeed(None)
 
--- a/web/views/debug.py	Thu Apr 15 10:59:49 2010 +0200
+++ b/web/views/debug.py	Thu Apr 15 11:00:44 2010 +0200
@@ -165,5 +165,5 @@
         self.wview('pyvaltable', pyvalue=values[:self._cw.form.get('nb', 20)])
         if garbage:
             self.w(u'<h3>%s</h3>' % _('Unreachable objects'))
-            values = sorted(xml_escape(repr(o) for o in garbage))
+            values = sorted(xml_escape(repr(o)) for o in garbage)
             self.wview('pyvallist', pyvalue=values)