merge stable
authorAlexandre Fayolle <alexandre.fayolle@logilab.fr>
Fri, 12 Feb 2010 12:57:56 +0100
branchstable
changeset 4556 43c14e0e8972
parent 4555 8968c50818db (diff)
parent 4553 23201259ffeb (current diff)
child 4560 23e0632df615
merge
common/appobject.py
common/entity.py
common/i18n.py
common/migration.py
common/schema.py
common/selectors.py
common/test/data/bootstrap_cubes
common/test/data/migration/0.0.3_Any.py
common/test/data/migration/0.0.4_Any.py
common/test/data/migration/0.1.0_Any.py
common/test/data/migration/0.1.0_common.py
common/test/data/migration/0.1.0_repository.py
common/test/data/migration/0.1.0_web.py
common/test/data/migration/0.1.2_Any.py
common/test/data/migration/depends.map
common/test/data/server_migration/2.10.2_Any.sql
common/test/data/server_migration/2.5.0_Any.sql
common/test/data/server_migration/2.6.0_Any.sql
common/test/data/server_migration/bootstrapmigration_repository.py
common/test/unittest_mail.py
common/test/unittest_migration.py
common/test/unittest_uilib.py
common/utils.py
common/view.py
debian/cubicweb-client.install.in
devtools/_apptest.py
devtools/apptest.py
devtools/migrtest.py
devtools/test/data/views/__init__.py
devtools/test/data/views/bug.py
doc/book/en/development/datamodel/inheritance.rst
hercule.py
misc/migration/2.99.0_Any.py
misc/migration/3.1.5_Any.py
misc/migration/3.2.0_Any.py
server/hooks.py
server/schemahooks.py
server/securityhooks.py
server/sources/ldapuser.py
server/test/unittest_hookhelper.py
server/test/unittest_hooks.py
server/test/unittest_hooksmanager.py
sobjects/email.py
sobjects/hooks.py
sobjects/test/unittest_hooks.py
toolsutils.py
web/views/baseforms.py
web/widgets.py
--- a/server/sources/ldapuser.py	Fri Feb 12 12:13:07 2010 +0100
+++ b/server/sources/ldapuser.py	Fri Feb 12 12:57:56 2010 +0100
@@ -78,7 +78,7 @@
         ('auth-realm',
          {'type' : 'string',
           'default': None,
-          'help': 'realm to use when using gssapp/kerberos authentication.',
+          'help': 'realm to use when using gssapi/kerberos authentication.',
           'group': 'ldap-source', 'inputlevel': 1,
           }),
 
--- a/toolsutils.py	Fri Feb 12 12:13:07 2010 +0100
+++ b/toolsutils.py	Fri Feb 12 12:57:56 2010 +0100
@@ -10,6 +10,7 @@
 # XXX move most of this in logilab.common (shellutils ?)
 
 import os, sys
+import subprocess
 from os import listdir, makedirs, environ, chmod, walk, remove
 from os.path import exists, join, abspath, normpath
 
@@ -75,8 +76,8 @@
     user decision
     """
     import shutil
-    p_output = os.popen('diff -u %s %s' % (appl_file, ref_file), 'r')
-    diffs = p_output.read()
+    pipe = subprocess.Popen(['diff', '-u', appl_file, ref_file], stdout=subprocess.PIPE)
+    diffs = pipe.stdout.read()
     if diffs:
         if askconfirm:
             print