backport stable
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Wed, 28 Jul 2010 16:31:32 +0200
changeset 6033 09db6f4619c9
parent 6032 52f9a43d8e08 (current diff)
parent 6031 4b721e739f53 (diff)
child 6039 6e84db1b3e44
backport stable
server/session.py
web/views/editcontroller.py
--- a/server/msplanner.py	Wed Jul 28 16:31:23 2010 +0200
+++ b/server/msplanner.py	Wed Jul 28 16:31:32 2010 +0200
@@ -1076,14 +1076,14 @@
 
         the rqlst should not be tagged at this point
         """
-        if server.DEBUG & server.DBG_MS:
-            print '-'*80
-            print 'PLANNING', rqlst
         # preprocess deals with security insertion and returns a new syntax tree
         # which have to be executed to fulfill the query: according
         # to permissions for variable's type, different rql queries may have to
         # be executed
         plan.preprocess(rqlst)
+        if server.DEBUG & server.DBG_MS:
+            print '-'*80
+            print 'PLANNING', rqlst
         ppis = [PartPlanInformation(plan, select, self.rqlhelper)
                 for select in rqlst.children]
         steps = self._union_plan(plan, ppis)
--- a/server/session.py	Wed Jul 28 16:31:23 2010 +0200
+++ b/server/session.py	Wed Jul 28 16:31:32 2010 +0200
@@ -783,7 +783,7 @@
                     except:
                         self.critical('error while %sing', trstate,
                                       exc_info=sys.exc_info())
-                self.info('%s session %s done', trstate, self.id)
+                self.debug('%s session %s done', trstate, self.id)
                 return self.transaction_uuid(set=False)
         finally:
             self._touch()
--- a/web/test/unittest_viewselector.py	Wed Jul 28 16:31:23 2010 +0200
+++ b/web/test/unittest_viewselector.py	Wed Jul 28 16:31:32 2010 +0200
@@ -41,7 +41,7 @@
 SITEACTIONS = [actions.SiteConfigurationAction,
                actions.ManageAction,
                schema.ViewSchemaAction,
-               actions.SiteInfoAction]
+               debug.SiteInfoAction]
 FOOTERACTIONS = [wdoc.HelpAction,
                  wdoc.ChangeLogAction,
                  wdoc.AboutAction,
--- a/web/views/editcontroller.py	Wed Jul 28 16:31:23 2010 +0200
+++ b/web/views/editcontroller.py	Wed Jul 28 16:31:32 2010 +0200
@@ -177,7 +177,7 @@
         """edit / create / copy an entity and return its eid"""
         etype = formparams['__type']
         entity = self._cw.vreg['etypes'].etype_class(etype)(self._cw)
-        entity.eid = formparams['eid']
+        entity.eid = valerror_eid(formparams['eid'])
         is_main_entity = self._cw.form.get('__maineid') == formparams['eid']
         # let a chance to do some entity specific stuff
         entity.cw_adapt_to('IEditControl').pre_web_edit()