# HG changeset patch # User Sylvain Thénault # Date 1347288628 -7200 # Node ID b7c9443d86259dae3eb74cd6c723a3f017d49adc # Parent 7e264ce34cd44e24328fa84792a7371c53b46034 minor cleanups/typos diff -r 7e264ce34cd4 -r b7c9443d8625 devtools/__init__.py --- a/devtools/__init__.py Mon Sep 10 17:36:22 2012 +0200 +++ b/devtools/__init__.py Mon Sep 10 16:50:28 2012 +0200 @@ -355,7 +355,7 @@ def _restore_database(self, backup_coordinates, config): """Actual restore of the current database. - Use the value tostored in db_cache as input """ + Use the value stored in db_cache as input """ raise NotImplementedError() def get_repo(self, startup=False): @@ -466,7 +466,6 @@ ``pre_setup_func`` to setup the database. This function backup any database it build""" - if self.has_cache(test_db_id): return #test_db_id, 'already in cache' if test_db_id is DEFAULT_EMPTY_DB_ID: @@ -723,7 +722,7 @@ dbfile = self.absolute_dbfile() self._cleanup_database(dbfile) shutil.copy(backup_coordinates, dbfile) - repo = self.get_repo() + self.get_repo() def init_test_database(self): """initialize a fresh sqlite databse used for testing purpose""" diff -r 7e264ce34cd4 -r b7c9443d8625 devtools/testlib.py --- a/devtools/testlib.py Mon Sep 10 17:36:22 2012 +0200 +++ b/devtools/testlib.py Mon Sep 10 16:50:28 2012 +0200 @@ -445,7 +445,7 @@ finally: self.session.set_cnxset() # ensure cnxset still set after commit - # # server side db api ####################################################### + # server side db api ####################################################### def sexecute(self, rql, args=None, eid_key=None): if eid_key is not None: diff -r 7e264ce34cd4 -r b7c9443d8625 hooks/email.py --- a/hooks/email.py Mon Sep 10 17:36:22 2012 +0200 +++ b/hooks/email.py Mon Sep 10 16:50:28 2012 +0200 @@ -15,9 +15,8 @@ # # You should have received a copy of the GNU Lesser General Public License along # with CubicWeb. If not, see . -"""hooks to ensure use_email / primary_email relations consistency +"""hooks to ensure use_email / primary_email relations consistency""" -""" __docformat__ = "restructuredtext en" from cubicweb.server import hook