# HG changeset patch # User Sylvain Thénault # Date 1278342371 -7200 # Node ID 00a78298d30d987c6a795b699e20d9d082309859 # Parent 5d908f1a7659062e425e8b7b6893aef0f88ca07d cleanups diff -r 5d908f1a7659 -r 00a78298d30d cwvreg.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 diff -r 5d908f1a7659 -r 00a78298d30d selectors.py --- 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 diff -r 5d908f1a7659 -r 00a78298d30d server/querier.py --- 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 . """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" diff -r 5d908f1a7659 -r 00a78298d30d server/test/unittest_hook.py --- 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 . -"""unit/functional tests for cubicweb.server.hook - -""" +"""unit/functional tests for cubicweb.server.hook""" from logilab.common.testlib import TestCase, unittest_main, mock_object diff -r 5d908f1a7659 -r 00a78298d30d server/test/unittest_rql2sql.py --- 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 diff -r 5d908f1a7659 -r 00a78298d30d server/test/unittest_security.py --- 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 . -"""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""" diff -r 5d908f1a7659 -r 00a78298d30d web/controller.py --- 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 . -"""abstract controller classe for CubicWeb web client +"""abstract controller classe for CubicWeb web client""" - -""" __docformat__ = "restructuredtext en" from logilab.mtconverter import xml_escape diff -r 5d908f1a7659 -r 00a78298d30d web/test/unittest_viewselector.py --- 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 . -"""XXX rename, split, reorganize this -""" +"""XXX rename, split, reorganize this""" + from logilab.common.testlib import unittest_main from cubicweb.devtools.testlib import CubicWebTC diff -r 5d908f1a7659 -r 00a78298d30d web/views/embedding.py --- 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 . """Objects interacting together to provides the external page embeding functionality. - +""" -""" __docformat__ = "restructuredtext en" import re