# HG changeset patch # User Sylvain Thénault # Date 1347019319 -7200 # Node ID 268b6349baf3606ec83daa813dd4614d330765f8 # Parent c09feae040946b5b0f574ef20ca953f03c221645# Parent 6ed331fd4347635bc233ad45d7ba08003e4feada backport stable diff -r c09feae04094 -r 268b6349baf3 .hgtags --- a/.hgtags Fri Aug 03 13:29:37 2012 +0200 +++ b/.hgtags Fri Sep 07 14:01:59 2012 +0200 @@ -256,5 +256,11 @@ 20ee573bd2379a00f29ff27bb88a8a3344d4cdfe cubicweb-debian-version-3.14.7-1 15fe07ff687238f8cc09d8e563a72981484085b3 cubicweb-version-3.14.8 81394043ad226942ac0019b8e1d4f7058d67a49f cubicweb-debian-version-3.14.8-1 +9337812cef6b949eee89161190e0c3d68d7f32ea cubicweb-version-3.14.9 +68c762adf2d5a2c338910ef1091df554370586f0 cubicweb-debian-version-3.14.9-1 783a5df54dc742e63c8a720b1582ff08366733bd cubicweb-version-3.15.1 fe5e60862b64f1beed2ccdf3a9c96502dfcd811b cubicweb-debian-version-3.15.1-1 +2afc157ea9b2b92eccb0f2d704094e22ce8b5a05 cubicweb-version-3.15.2 +9aa5553b26520ceb68539e7a32721b5cd5393e16 cubicweb-debian-version-3.15.2-1 +0e012eb80990ca6f91aa9a8ad3324fbcf51435b1 cubicweb-version-3.15.3 +7ad423a5b6a883dbdf00e6c87a5f8ab121041640 cubicweb-debian-version-3.15.3-1 diff -r c09feae04094 -r 268b6349baf3 __init__.py --- a/__init__.py Fri Aug 03 13:29:37 2012 +0200 +++ b/__init__.py Fri Sep 07 14:01:59 2012 +0200 @@ -1,4 +1,4 @@ -# copyright 2003-2011 LOGILAB S.A. (Paris, FRANCE), all rights reserved. +# copyright 2003-2012 LOGILAB S.A. (Paris, FRANCE), all rights reserved. # contact http://www.logilab.fr/ -- mailto:contact@logilab.fr # # This file is part of CubicWeb. diff -r c09feae04094 -r 268b6349baf3 __pkginfo__.py --- a/__pkginfo__.py Fri Aug 03 13:29:37 2012 +0200 +++ b/__pkginfo__.py Fri Sep 07 14:01:59 2012 +0200 @@ -22,7 +22,7 @@ modname = distname = "cubicweb" -numversion = (3, 15, 1) +numversion = (3, 15, 4) version = '.'.join(str(num) for num in numversion) description = "a repository of entities / relations for knowledge management" diff -r c09feae04094 -r 268b6349baf3 cwconfig.py --- a/cwconfig.py Fri Aug 03 13:29:37 2012 +0200 +++ b/cwconfig.py Fri Sep 07 14:01:59 2012 +0200 @@ -171,6 +171,7 @@ import sys import os +import stat import logging import logging.config from smtplib import SMTP @@ -306,7 +307,10 @@ _forced_mode = os.environ.get('CW_MODE') assert _forced_mode in (None, 'system', 'user') -CWDEV = exists(join(CW_SOFTWARE_ROOT, '.hg')) +# CWDEV tells whether directories such as i18n/, web/data/, etc. (ie containing +# some other resources than python libraries) are located with the python code +# or as a 'shared' cube +CWDEV = exists(join(CW_SOFTWARE_ROOT, 'i18n')) try: _INSTALL_PREFIX = os.environ['CW_INSTALL_PREFIX'] @@ -1073,7 +1077,12 @@ If not, try to fix this, letting exception propagate when not possible. """ if not exists(path): - os.makedirs(path) + self.info('creating %s directory', path) + try: + os.makedirs(path) + except OSError, ex: + self.warning('error while creating %s directory: %s', path, ex) + return if self['uid']: try: uid = int(self['uid']) @@ -1087,10 +1096,20 @@ return fstat = os.stat(path) if fstat.st_uid != uid: - os.chown(path, uid, os.getgid()) - import stat + self.info('giving ownership of %s directory to %s', path, self['uid']) + try: + os.chown(path, uid, os.getgid()) + except OSError, ex: + self.warning('error while giving ownership of %s directory to %s: %s', + path, self['uid'], ex) if not (fstat.st_mode & stat.S_IWUSR): - os.chmod(path, fstat.st_mode | stat.S_IWUSR) + self.info('forcing write permission on directory %s', path) + try: + os.chmod(path, fstat.st_mode | stat.S_IWUSR) + except OSError, ex: + self.warning('error while forcing write permission on directory %s: %s', + path, ex) + return @cached def instance_md5_version(self): diff -r c09feae04094 -r 268b6349baf3 debian/changelog --- a/debian/changelog Fri Aug 03 13:29:37 2012 +0200 +++ b/debian/changelog Fri Sep 07 14:01:59 2012 +0200 @@ -1,6 +1,24 @@ +cubicweb (3.15.4-1) unstable; urgency=low + + * New upstream release + + -- Julien Cristau Fri, 31 Aug 2012 16:43:11 +0200 + +cubicweb (3.15.3-1) unstable; urgency=low + + * New upstream release + + -- Pierre-Yves David Tue, 21 Aug 2012 14:19:31 +0200 + +cubicweb (3.15.2-1) unstable; urgency=low + + * new upstream release + + -- Sylvain Thénault Fri, 20 Jul 2012 15:17:17 +0200 + cubicweb (3.15.1-1) quantal; urgency=low - * new upstream release + * new upstream release -- David Douard Mon, 11 Jun 2012 09:45:24 +0200 @@ -10,6 +28,12 @@ -- Sylvain Thénault Thu, 12 Apr 2012 13:52:05 +0200 +cubicweb (3.14.9-1) unstable; urgency=low + + * new upstream release + + -- Pierre-Yves David Tue, 31 Jul 2012 16:16:28 +0200 + cubicweb (3.14.8-1) unstable; urgency=low * new upstream release diff -r c09feae04094 -r 268b6349baf3 debian/control --- a/debian/control Fri Aug 03 13:29:37 2012 +0200 +++ b/debian/control Fri Sep 07 14:01:59 2012 +0200 @@ -7,18 +7,25 @@ Adrien Di Mascio , Aurélien Campéas , Nicolas Chauvat -Build-Depends: debhelper (>= 7), python (>= 2.5), python-central (>= 0.5), python-sphinx, python-logilab-common, python-unittest2 -# for the documentation: -# python-sphinx, python-logilab-common, python-unittest2, logilab-doctools, logilab-xml +Build-Depends: + debhelper (>= 7), + python (>= 2.5), + python-central (>= 0.5), + python-sphinx, + python-logilab-common, + python-unittest2, + python-logilab-mtconverter, + python-rql, + python-yams, + python-lxml, Standards-Version: 3.9.1 Homepage: http://www.cubicweb.org -XS-Python-Version: >= 2.5, << 3.0 +XS-Python-Version: >= 2.5 Package: cubicweb Architecture: all XB-Python-Version: ${python:Versions} Depends: ${misc:Depends}, ${python:Depends}, cubicweb-server (= ${source:Version}), cubicweb-twisted (= ${source:Version}) -XB-Recommends: (postgresql, postgresql-plpython) | mysql | sqlite3 Recommends: postgresql | mysql | sqlite3 Description: the complete CubicWeb framework CubicWeb is a semantic web application framework. diff -r c09feae04094 -r 268b6349baf3 debian/rules --- a/debian/rules Fri Aug 03 13:29:37 2012 +0200 +++ b/debian/rules Fri Sep 07 14:01:59 2012 +0200 @@ -11,10 +11,14 @@ build-stamp: dh_testdir NO_SETUPTOOLS=1 python setup.py build + # cubicweb.foo needs to be importable by sphinx, so create a cubicweb symlink to the source dir + mkdir -p debian/pythonpath + ln -sf $(CURDIR) debian/pythonpath/cubicweb # documentation build is now made optional since it can break for old # distributions and we don't want to block a new release of Cubicweb # because of documentation issues. - -PYTHONPATH=$(CURDIR)/.. $(MAKE) -C doc/book/en all + -PYTHONPATH=$${PYTHONPATH:+$${PYTHONPATH}:}$(CURDIR)/debian/pythonpath $(MAKE) -C doc/book/en all + rm -rf debian/pythonpath touch build-stamp clean: diff -r c09feae04094 -r 268b6349baf3 devtools/testlib.py --- a/devtools/testlib.py Fri Aug 03 13:29:37 2012 +0200 +++ b/devtools/testlib.py Fri Sep 07 14:01:59 2012 +0200 @@ -817,9 +817,8 @@ """ req = req or rset and rset.req or self.request() req.form['vid'] = vid - kwargs['rset'] = rset viewsreg = self.vreg['views'] - view = viewsreg.select(vid, req, **kwargs) + view = viewsreg.select(vid, req, rset=rset, **kwargs) # set explicit test description if rset is not None: self.set_description("testing vid=%s defined in %s with (%s)" % ( @@ -831,10 +830,8 @@ viewfunc = view.render else: kwargs['view'] = view - templateview = viewsreg.select(template, req, **kwargs) viewfunc = lambda **k: viewsreg.main_template(req, template, - **kwargs) - kwargs.pop('rset') + rset=rset, **kwargs) return self._test_view(viewfunc, view, template, kwargs) diff -r c09feae04094 -r 268b6349baf3 doc/book/en/admin/instance-config.rst --- a/doc/book/en/admin/instance-config.rst Fri Aug 03 13:29:37 2012 +0200 +++ b/doc/book/en/admin/instance-config.rst Fri Sep 07 14:01:59 2012 +0200 @@ -17,7 +17,7 @@ each option name is prefixed with its own section and followed by its default value if necessary, e.g. "`
.