- 15 May, 2019 3 commits
-
-
Laurent Peuch authored
--HG-- branch : 3.26
-
Denis Laxalde authored
--HG-- branch : 3.26
-
Denis Laxalde authored
--HG-- branch : 3.26
-
- 08 Apr, 2019 1 commit
-
-
Denis Laxalde authored
From psycopg2 >= 2.8, specific exceptions are raised corresponding to postgresql errors. E.g. a CheckViolation exception is raised instead of a generic IntegrityError previously when a constraint violation occurs. The way we intercept database errors, especially for constraint violation, is not compliant with that because we do not catch subclasses of IntegrityError in native source's doexec() method. We fix this by checking for the presence of IntegrityError error in exception class's mro. This is still overcomplicated and clumsy, because we still use string comparison, but this is the best we can do as far as I know. (A better fix would be 'isinstance(ex, IntegrityError)' but we have no engine-independent error classes, so this is not possible. Something like sqlalchemy's DBAPI Errors [1] might help: https://docs.sqlalchemy.org/en/latest/errors.html#dbapi-errors) --HG-- branch : 3.26
-
- 16 Apr, 2019 1 commit
-
-
Philippe Pepiot authored
commit() might raise a AttributeError too. Use getattr(req, 'cnx', req) instead, which is a form already used to get the real cnx in some code: cubicweb/rset.py:577: cnx = getattr(self.req, 'cnx', self.req) cubicweb/schema.py:353: with getattr(_cw, 'cnx', _cw).security_enabled(read=False): We could use if hasattr(req, 'commit') here too but it lead to 3 additionals lines. Maybe we should have commit() and rollback() on cubicweb.web.request.ConnectionCubicWebRequestBase too ? --HG-- branch : 3.26
-
- 05 Apr, 2019 3 commits
-
-
Denis Laxalde authored
--HG-- branch : 3.26
-
Denis Laxalde authored
--HG-- branch : 3.26
-
Denis Laxalde authored
--HG-- branch : 3.26
-
- 12 Feb, 2019 1 commit
-
-
Laurent Peuch authored
Based on django source code in case SystemRandom is not available. According to python documentation: https://docs.python.org/2/library/random.html > Warning > The pseudo-random generators of this module should not be used for security > purposes. Use os.urandom() or SystemRandom if you require a cryptographically > secure pseudo-random number generator. --HG-- branch : 3.26
-
- 14 Mar, 2019 3 commits
-
-
Laurent Peuch authored
--HG-- branch : 3.26
-
Laurent Peuch authored
--HG-- branch : 3.26
-
Laurent Peuch authored
Try to make it more accessible, when we first encountered these errors it it didn't made any sense to us. --HG-- branch : 3.26
-
- 13 Mar, 2019 1 commit
-
-
Denis Laxalde authored
Avoids the following warning: The psycopg2 wheel package will be renamed from release 2.8; in order to keep installing from binary please use "pip install psycopg2-binary" instead. For details see: <http://initd.org/psycopg/docs/install.html#binary-install-from-pypi --HG-- branch : 3.26
-
- 08 Mar, 2019 6 commits
-
-
Denis Laxalde authored
This includes changeset aa4a3a3d0c18 fixing import of os.errno. --HG-- branch : 3.26
-
Denis Laxalde authored
--HG-- branch : 3.26
-
Denis Laxalde authored
With Python3.7, this test fails as the error message returned by rest_publish() is: <p>an error occurred while interpreting this rql directive: ObjectNotFound('toto')</p> while we previously assumed a comma after 'toto'. Fixing this by only shortening the prefix used in out.startswith(). --HG-- branch : 3.26
-
Denis Laxalde authored
--HG-- branch : 3.26
-
Denis Laxalde authored
This gets rid of the deprecation warning from logilab.common.registry: DeprecationWarning: instantiate MyAFS with __module__=__name__ and solves a test error on Python 3.7. --HG-- branch : 3.26
-
Denis Laxalde authored
--HG-- branch : 3.26
-
- 07 Mar, 2019 1 commit
-
-
Denis Laxalde authored
--HG-- branch : 3.26
-
- 26 Feb, 2019 14 commits
-
-
Laurent Peuch authored
--HG-- branch : 3.26
-
Laurent Peuch authored
--HG-- branch : 3.26
-
Laurent Peuch authored
--HG-- branch : 3.26
-
Laurent Peuch authored
--HG-- branch : 3.26
-
Laurent Peuch authored
--HG-- branch : 3.26
-
Laurent Peuch authored
According to a discussion on XMPP we should recommend pip instead. --HG-- branch : 3.26
-
Laurent Peuch authored
--HG-- branch : 3.26
-
Laurent Peuch authored
--HG-- branch : 3.26
-
Laurent Peuch authored
--HG-- branch : 3.26
-
Laurent Peuch authored
--HG-- branch : 3.26
-
Laurent Peuch authored
--HG-- branch : 3.26
-
Laurent Peuch authored
--HG-- branch : 3.26
-
Laurent Peuch authored
--HG-- branch : 3.26
-
Laurent Peuch authored
--HG-- branch : 3.26
-
- 27 Feb, 2019 1 commit
-
-
Laurent Peuch authored
--HG-- branch : 3.26
-
- 21 Feb, 2019 5 commits
-
-
Laurent Peuch authored
--HG-- branch : 3.26
-
Laurent Peuch authored
I know we want to remove this command but in the meantime having this documentation working seems like something good. --HG-- branch : 3.26
-
Laurent Peuch authored
--HG-- branch : 3.26
-
Laurent Peuch authored
--HG-- branch : 3.26
-
Laurent Peuch authored
--HG-- branch : 3.26
-