- 24 Oct, 2017 1 commit
-
-
Philippe Pepiot authored
See https://docs.pylonsproject.org/projects/waitress/en/latest/#using-behind-a-reverse-proxy Since we do not configure trusted_proxy waitress ignore X-Forwarded-Proto header and may generate http urls (pyramid request.url) when the instance is behind a https reverse proxy. This cause cubicweb-signredrequest to not work with since it rely on the url (including scheme). Set url_scheme to 'https' when CubicWeb base-url scheme is https as a workaround. --HG-- branch : 3.25
-
- 17 Oct, 2017 2 commits
-
-
Philippe Pepiot authored
--HG-- branch : 3.25
-
Philippe Pepiot authored
--HG-- branch : 3.25
-
- 06 Oct, 2017 6 commits
-
-
Sylvain Thénault authored
cw 3.25 introduced the 'derived rtags' feature, but missed that `autoform_section` implementation was overriding several methods where this was implemented in the base class. The following problems are tested and fixed: * during init, we should not attempt to call `_initfunc_step2` if there is some parent, * but we should handle expansion of wildcard ('*' used as subject or object of a tag) since this is handled during init step for this class, unlike others which handle this in `get` method (i.e. at lookup time), * fix overrided `get` method to consider parent rtag if any. Closes #17107020 --HG-- branch : 3.25
-
Sylvain Thénault authored
* we don't care of the class, the registry id is enough (never seen a case of sub-classing) * add the module from which the rtag is coming as well as parent rtag if any. --HG-- branch : 3.25
-
Sylvain Thénault authored
--HG-- branch : 3.25
-
Sylvain Thénault authored
and drop upper bound of copyright along the way. autoform module is not added to flake8-ok-files since there are some remaining errors to be handled, but that's still a start. --HG-- branch : 3.25
-
Adrien Di Mascio authored
--HG-- branch : 3.25
-
Sylvain Thénault authored
We currently have CI failures because cubes used as test dependencies have been updated to new-style cube layout. To avoid this, pin them to previous released. Those dependencies should be removed but in the mean time this should be enough (and backported in all active branches). --HG-- branch : 3.25
-
- 05 Oct, 2017 1 commit
-
-
Sylvain Thénault authored
we should test true condition instead of None, so if one raise a ValidationError using an empty string as 'no-field' marker instead of None, we don't get the PO file header that gettext likes to return when one attempt to translate an empty string. --HG-- branch : 3.25
-
- 26 Sep, 2017 1 commit
-
-
Denis Laxalde authored
In 8de62610cea2, a __getattr__ proxy was introduced to handle compatibility with dc_* methods being called on entity instances instead of through the IDublinCore adapter. Unfortunately, __getattr__ does not play well with super() and since the latter is often used by, we here restore all dc_ methods with an explicit proxy to the adapter. More verbose but should work. Closes #17103999. --HG-- branch : 3.25
-
- 13 Sep, 2017 1 commit
-
-
Samuel Trégouët authored
--HG-- branch : 3.25
-
- 12 Sep, 2017 1 commit
-
-
Sylvain Thénault authored
--HG-- branch : 3.25
-
- 11 Sep, 2017 1 commit
-
-
Sylvain Thénault authored
--HG-- branch : 3.25
-
- 22 Jun, 2017 1 commit
-
-
Arthur Lutz authored
--HG-- branch : 3.25
-
- 04 Apr, 2017 1 commit
-
-
David Douard authored
--HG-- branch : 3.25
-
- 28 Jul, 2017 1 commit
-
-
Jérôme Roy authored
The function signature in the doc is not the same as in the code. Also option_removed should probably be removed from the doc since the function in migration.py is empty --HG-- branch : 3.25
-
- 03 May, 2017 2 commits
-
-
David Douard authored
This may be necessary if a previous import did badly crached, leaving the cwmassive_initialized behind. --HG-- branch : 3.25
-
David Douard authored
Postgres behaviour is to look first for a table in the configured schema then fall back to 'public' if no table is found. This must be implemented in deserialize_schema when listing existing tables to check for computed relations (cw_cwcomputedrtype) otherwise computed relations may not work when using non-default pg schema. --HG-- branch : 3.25
-
- 10 May, 2017 1 commit
-
-
David Douard authored
while keeping bw-compat with 1.6 - 2.7 is not available for all distributions, e.g. jessie. The dependancy has been bumped in 6186cd15a46d because of a change in bc9d901cb9e6. We may easily use the appropriate method depending on the version installed. --HG-- branch : 3.25
-
- 10 Jul, 2017 2 commits
-
-
Denis Laxalde authored
--HG-- branch : 3.25
-
Denis Laxalde authored
--HG-- branch : 3.25
-
- 06 Jun, 2017 1 commit
-
-
Denis Laxalde authored
The "pyramid" instance configuration does not work with "cubiwceb.bwcompat" mode (on purpose). Yet, having the setting exposed in development.ini file (generate by `cubicweb-ctl create --config pyramid <cube> <instance>` command) is misleading and we want to remove it. Thus, we only query this setting when cubicweb configuration is "all-in-one" and drop the setting line from templated development.ini file. If the option is found and True for any other configuration type, we issue a user warning (and ignore the option). --HG-- branch : 3.25
-
- 27 Apr, 2017 1 commit
-
-
Yann Voté authored
For very old instances (namely docaster), this table has never been created. --HG-- branch : 3.25
-
- 05 May, 2017 1 commit
-
-
Philippe Pepiot authored
Iterate over relations type in alphabetical order, so the order is predictible dans does not depend on PYTHONHASHSEED. --HG-- branch : 3.25
-
- 19 Apr, 2017 1 commit
-
-
Denis Laxalde authored
--HG-- branch : 3.25
-
- 14 Apr, 2017 3 commits
-
-
Philippe Pepiot authored
This is a regression appeared in 3.25.0. Appobjects (entities, views etc) subpackages should be loaded recursively, this is the historical behavior, relevant code is in logilab.common.registry._toload_info(). To keep historical behavior schema subpackages should not be loaded, relevant code is in yams.reader.get_schema_files(). We may want to have a consistent behavior later on... Closes #17073706. --HG-- branch : 3.25
-
Denis Laxalde authored
--HG-- branch : 3.25
-
Denis Laxalde authored
--HG-- branch : 3.25
-
- 13 Apr, 2017 3 commits
-
-
Sylvain Thénault authored
`entity.dc_long_title()` used to fallback to `dc_title()`, and most entity types were relying on this, thus only implementing the later. Since introduction of the IDublinCore adapter, if one call `entity.dc_long_title()` on an entity that only implements `dc_title()`, it will retrieve the adapter which will then call its own `title()` method instead of the `dc_title()` method of the entity as expected. Fix this by calling instead `entity.dc_title()` which will eventually kick in the backward compat layer if necessary. --HG-- branch : 3.25
-
Denis Laxalde authored
There is a symlink in data directory (created by generate_static_dir() method) and trying to rmtree() it will fail with an OSError. So we unlink() it instead. --HG-- branch : 3.25
-
Denis Laxalde authored
--HG-- branch : 3.25
-
- 12 Apr, 2017 8 commits
-
-
Sylvain Thénault authored
--HG-- branch : 3.25
-
Sylvain Thénault authored
--HG-- branch : 3.25
-
Sylvain Thénault authored
No need for a class method and easier to get proper logger including source's name. --HG-- branch : 3.25
-
Sylvain Thénault authored
for parts which are not located in some source's check_config / check_urls method. --HG-- branch : 3.25
-
Sylvain Thénault authored
Similarly as for config. Now, ldap source validation is properly done there instead of at initialization time. --HG-- branch : 3.25
-
Sylvain Thénault authored
Reintroduce usage of 'source.check_config' which had almost disappeared, as well as tests for the currently detected errors. Part of the system source specific checking done in syncsources reimplemented in a specific check_config implementation. Tests are dispatched among ldap / datafeed and syncsources tests but are not strictly correctly located (notably syncsources tests behaviour of the native source's check_config). The system source url checking part which disappears from syncsources will be reintroduced in a follow-up. --HG-- branch : 3.25
-
Sylvain Thénault authored
which wasn't actually testing what it expected (and nothing guarantee it does now, but that's another story). Fixing this will avoid failure once we properly check the configuration. --HG-- branch : 3.25
-
Sylvain Thénault authored
* mark it private * explicit name * update docstring Private function is still called from syncsources but this will be updated in a follow-up. --HG-- branch : 3.25
-