backport stable
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Thu, 08 Jul 2010 18:48:44 +0200
changeset 5948 4154bdc85fe4
parent 5947 e13e7833a57a (current diff)
parent 5942 f7768f44b4ac (diff)
child 5949 2a273c896a38
backport stable
devtools/testlib.py
--- a/devtools/testlib.py	Thu Jul 08 18:10:47 2010 +0200
+++ b/devtools/testlib.py	Thu Jul 08 18:48:44 2010 +0200
@@ -519,7 +519,7 @@
 
     def ctrl_publish(self, req, ctrl='edit'):
         """call the publish method of the edit controller"""
-        ctrl = self.vreg['controllers'].select(ctrl, req)
+        ctrl = self.vreg['controllers'].select(ctrl, req, appli=self.app)
         try:
             result = ctrl.publish()
             req.cnx.commit()
--- a/skeleton/setup.py	Thu Jul 08 18:10:47 2010 +0200
+++ b/skeleton/setup.py	Thu Jul 08 18:48:44 2010 +0200
@@ -142,12 +142,9 @@
     # install-layout option was introduced in 2.5.3-1~exp1
     elif sys.version_info < (2, 5, 4) and '--install-layout=deb' in sys.argv:
         sys.argv.remove('--install-layout=deb')
-    kwargs['package_dir'] = {modname : '.'}
-    packages = [modname] + get_packages(os.getcwd(), modname)
     if USE_SETUPTOOLS and install_requires:
         kwargs['install_requires'] = install_requires
         kwargs['dependency_links'] = dependency_links
-    kwargs['packages'] = packages
     return setup(name = distname,
                  version = version,
                  license = license,