cleanups stable
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Mon, 28 Mar 2011 16:42:54 +0200
branchstable
changeset 7121 c2badb6de3fe
parent 7120 e8b6fc55df2d
child 7122 3b0f1c2af20f
cleanups
hooks/syncsession.py
req.py
server/serverctl.py
server/sources/ldapuser.py
server/test/unittest_ldapuser.py
--- a/hooks/syncsession.py	Mon Mar 28 16:42:46 2011 +0200
+++ b/hooks/syncsession.py	Mon Mar 28 16:42:54 2011 +0200
@@ -1,4 +1,4 @@
-# copyright 2003-2010 LOGILAB S.A. (Paris, FRANCE), all rights reserved.
+# copyright 2003-2011 LOGILAB S.A. (Paris, FRANCE), all rights reserved.
 # contact http://www.logilab.fr/ -- mailto:contact@logilab.fr
 #
 # This file is part of CubicWeb.
--- a/req.py	Mon Mar 28 16:42:46 2011 +0200
+++ b/req.py	Mon Mar 28 16:42:54 2011 +0200
@@ -1,4 +1,4 @@
-# copyright 2003-2010 LOGILAB S.A. (Paris, FRANCE), all rights reserved.
+# copyright 2003-2011 LOGILAB S.A. (Paris, FRANCE), all rights reserved.
 # contact http://www.logilab.fr/ -- mailto:contact@logilab.fr
 #
 # This file is part of CubicWeb.
@@ -154,7 +154,7 @@
 
     def find_one_entity(self, etype, **kwargs):
         """find one entity of the given type and attribute values.
-        raise FindEntityError if can not return one and only one entity.
+        raise :exc:`FindEntityError` if can not return one and only one entity.
 
         >>> users = find_one_entity('CWGroup', name=u'users')
         >>> groups = find_one_entity('CWGroup')
--- a/server/serverctl.py	Mon Mar 28 16:42:46 2011 +0200
+++ b/server/serverctl.py	Mon Mar 28 16:42:54 2011 +0200
@@ -1,4 +1,4 @@
-# copyright 2003-2010 LOGILAB S.A. (Paris, FRANCE), all rights reserved.
+# copyright 2003-2011 LOGILAB S.A. (Paris, FRANCE), all rights reserved.
 # contact http://www.logilab.fr/ -- mailto:contact@logilab.fr
 #
 # This file is part of CubicWeb.
--- a/server/sources/ldapuser.py	Mon Mar 28 16:42:46 2011 +0200
+++ b/server/sources/ldapuser.py	Mon Mar 28 16:42:54 2011 +0200
@@ -522,7 +522,8 @@
     def _search(self, session, base, scope,
                 searchstr='(objectClass=*)', attrs=()):
         """make an ldap query"""
-        self.debug('ldap search %s %s %s %s %s', self.uri, base, scope, searchstr, list(attrs))
+        self.debug('ldap search %s %s %s %s %s', self.uri, base, scope,
+                   searchstr, list(attrs))
         # XXX for now, we do not have connection pool support for LDAP, so
         # this is always self._conn
         cnx = session.pool.connection(self.uri).cnx
--- a/server/test/unittest_ldapuser.py	Mon Mar 28 16:42:46 2011 +0200
+++ b/server/test/unittest_ldapuser.py	Mon Mar 28 16:42:54 2011 +0200
@@ -1,4 +1,4 @@
-# copyright 2003-2010 LOGILAB S.A. (Paris, FRANCE), all rights reserved.
+# copyright 2003-2011 LOGILAB S.A. (Paris, FRANCE), all rights reserved.
 # contact http://www.logilab.fr/ -- mailto:contact@logilab.fr
 #
 # This file is part of CubicWeb.