cleanups stable
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Mon, 05 Jul 2010 17:06:11 +0200
branchstable
changeset 5886 00a78298d30d
parent 5885 5d908f1a7659
child 5887 3f55f0f10a22
cleanups
cwvreg.py
selectors.py
server/querier.py
server/test/unittest_hook.py
server/test/unittest_rql2sql.py
server/test/unittest_security.py
web/controller.py
web/test/unittest_viewselector.py
web/views/embedding.py
--- a/cwvreg.py	Mon Jul 05 17:02:39 2010 +0200
+++ b/cwvreg.py	Mon Jul 05 17:06:11 2010 +0200
@@ -190,6 +190,7 @@
 
 .. automethod:: cubicweb.vregistry.Registry.object_by_id
 """
+
 __docformat__ = "restructuredtext en"
 _ = unicode
 
--- a/selectors.py	Mon Jul 05 17:02:39 2010 +0200
+++ b/selectors.py	Mon Jul 05 17:06:11 2010 +0200
@@ -191,6 +191,7 @@
 
 .. |cubicweb| replace:: *CubicWeb*
 """
+
 __docformat__ = "restructuredtext en"
 
 import logging
--- a/server/querier.py	Mon Jul 05 17:02:39 2010 +0200
+++ b/server/querier.py	Mon Jul 05 17:06:11 2010 +0200
@@ -17,8 +17,8 @@
 # with CubicWeb.  If not, see <http://www.gnu.org/licenses/>.
 """Helper classes to execute RQL queries on a set of sources, performing
 security checking and data aggregation.
+"""
 
-"""
 from __future__ import with_statement
 
 __docformat__ = "restructuredtext en"
--- a/server/test/unittest_hook.py	Mon Jul 05 17:02:39 2010 +0200
+++ b/server/test/unittest_hook.py	Mon Jul 05 17:06:11 2010 +0200
@@ -16,9 +16,7 @@
 #
 # You should have received a copy of the GNU Lesser General Public License along
 # with CubicWeb.  If not, see <http://www.gnu.org/licenses/>.
-"""unit/functional tests for cubicweb.server.hook
-
-"""
+"""unit/functional tests for cubicweb.server.hook"""
 
 from logilab.common.testlib import TestCase, unittest_main, mock_object
 
--- a/server/test/unittest_rql2sql.py	Mon Jul 05 17:02:39 2010 +0200
+++ b/server/test/unittest_rql2sql.py	Mon Jul 05 17:06:11 2010 +0200
@@ -178,9 +178,8 @@
 FROM cw_Personne AS _X
 WHERE _X.cw_prenom=lulu AND NOT (EXISTS(SELECT 1 FROM owned_by_relation AS rel_owned_by0, in_group_relation AS rel_in_group1, cw_CWGroup AS _G WHERE rel_owned_by0.eid_from=_X.cw_eid AND rel_in_group1.eid_from=rel_owned_by0.eid_to AND rel_in_group1.eid_to=_G.cw_eid AND ((_G.cw_name=lulufanclub) OR (_G.cw_name=managers))))'''),
 
-
+]
 
-]
 
 ADVANCED= [
     ("Societe S WHERE S nom 'Logilab' OR S nom 'Caesium'",
@@ -581,6 +580,7 @@
 
     ]
 
+
 MULTIPLE_SEL = [
     ("DISTINCT Any X,Y where P is Personne, P nom X , P prenom Y;",
      '''SELECT DISTINCT _P.cw_nom, _P.cw_prenom
@@ -595,7 +595,9 @@
 WHERE _Y.cw_nom=_X.cw_nom AND NOT (_Y.cw_eid=_X.cw_eid)''')
     ]
 
+
 NEGATIONS = [
+
     ("Personne X WHERE NOT X evaluee Y;",
      '''SELECT _X.cw_eid
 FROM cw_Personne AS _X
--- a/server/test/unittest_security.py	Mon Jul 05 17:02:39 2010 +0200
+++ b/server/test/unittest_security.py	Mon Jul 05 17:06:11 2010 +0200
@@ -15,8 +15,8 @@
 #
 # You should have received a copy of the GNU Lesser General Public License along
 # with CubicWeb.  If not, see <http://www.gnu.org/licenses/>.
-"""functional tests for server'security
-"""
+"""functional tests for server'security"""
+
 import sys
 
 from logilab.common.testlib import unittest_main, TestCase
@@ -421,7 +421,6 @@
         self.failUnless(x.creation_date)
         cnx.rollback()
 
-
 class BaseSchemaSecurityTC(BaseSecurityTC):
     """tests related to the base schema permission configuration"""
 
--- a/web/controller.py	Mon Jul 05 17:02:39 2010 +0200
+++ b/web/controller.py	Mon Jul 05 17:06:11 2010 +0200
@@ -15,10 +15,8 @@
 #
 # You should have received a copy of the GNU Lesser General Public License along
 # with CubicWeb.  If not, see <http://www.gnu.org/licenses/>.
-"""abstract controller classe for CubicWeb web client
+"""abstract controller classe for CubicWeb web client"""
 
-
-"""
 __docformat__ = "restructuredtext en"
 
 from logilab.mtconverter import xml_escape
--- a/web/test/unittest_viewselector.py	Mon Jul 05 17:02:39 2010 +0200
+++ b/web/test/unittest_viewselector.py	Mon Jul 05 17:06:11 2010 +0200
@@ -16,8 +16,8 @@
 #
 # You should have received a copy of the GNU Lesser General Public License along
 # with CubicWeb.  If not, see <http://www.gnu.org/licenses/>.
-"""XXX rename, split, reorganize this
-"""
+"""XXX rename, split, reorganize this"""
+
 from logilab.common.testlib import unittest_main
 
 from cubicweb.devtools.testlib import CubicWebTC
--- a/web/views/embedding.py	Mon Jul 05 17:02:39 2010 +0200
+++ b/web/views/embedding.py	Mon Jul 05 17:06:11 2010 +0200
@@ -17,9 +17,8 @@
 # with CubicWeb.  If not, see <http://www.gnu.org/licenses/>.
 """Objects interacting together to provides the external page embeding
 functionality.
-
+"""
 
-"""
 __docformat__ = "restructuredtext en"
 
 import re