# HG changeset patch # User Sylvain Thénault # Date 1287647367 -7200 # Node ID a7bbd69f1d1cd9932fee6ff7557294d5e3194283 # Parent 58f166d4142043f7db0eea306ab799dfff432fca# Parent df0b2de62cec10c84a2fff5233db05852cbffe93 backport stable diff -r 58f166d41420 -r a7bbd69f1d1c __pkginfo__.py diff -r 58f166d41420 -r a7bbd69f1d1c debian/changelog --- a/debian/changelog Thu Oct 21 09:48:38 2010 +0200 +++ b/debian/changelog Thu Oct 21 09:49:27 2010 +0200 @@ -22,6 +22,12 @@ -- Sylvain Thénault Wed, 13 Oct 2010 22:18:39 +0200 +cubicweb (3.9.9-1) unstable; urgency=low + + * new upstream release + + -- Sylvain Thénault Thu, 21 Oct 2010 09:33:46 +0200 + cubicweb (3.9.8-1) unstable; urgency=low * new upstream release diff -r 58f166d41420 -r a7bbd69f1d1c server/migractions.py --- a/server/migractions.py Thu Oct 21 09:48:38 2010 +0200 +++ b/server/migractions.py Thu Oct 21 09:49:27 2010 +0200 @@ -45,7 +45,6 @@ from logilab.common.deprecation import deprecated from logilab.common.decorators import cached, clear_cache -from logilab.common.testlib import mock_object from yams.constraints import SizeConstraint from yams.schema2sql import eschema2sql, rschema2sql @@ -68,6 +67,10 @@ except ImportError: # LAX pass + +def mock_object(**params): + return type('Mock', (), params)() + class ClearGroupMap(hook.Hook): __regid__ = 'cw.migration.clear_group_mapping' __select__ = hook.Hook.__select__ & is_instance('CWGroup')