Aurelien Campeas <aurelien.campeas@logilab.fr> [Thu, 27 Feb 2014 18:10:29 +0100] rev 9559
[hooks/syncschema] do not crash on double removal of a constraint
Some complicated migrations may entail a double constraint removal.
It is not yet known whether this is a genuine cw bug or the result
of a complicated migration story, but we should nevertheless
not crash.
Rather, emit a CRITICAL warning and proceed.
Closes #3595309.
Rémi Cardona <remi.cardona@logilab.fr> [Wed, 19 Feb 2014 11:01:19 +0100] rev 9558
[doc/book] Fix typo in import
Julien Cristau <julien.cristau@logilab.fr> [Tue, 18 Feb 2014 13:54:08 +0100] rev 9557
[server/session] fix a couple typos in doc strings
Julien Cristau <julien.cristau@logilab.fr> [Tue, 18 Feb 2014 17:58:45 +0100] rev 9556
[server/migractions] finish migration to repoapi objects
Changeset 241b1232ed7f (Use repoapi instead of dbapi for cwctl shell,
upgrade and db-init) only did half of the job. It left the migration
handler with both a session (cubicweb.server.session.Session) and a cnx
(cubicweb.repoapi.ClientConnection) attribute with different ideas of
what Connection they were talking to.
With this change, we:
- make the caller responsible of disabling security on the Connection if
it wants to
- turn mih.session into an actual attribute, set on __init__
- same for cnx (the client connection)
- drop the "lazy connection" logic, and establish the connection
up-front
- always go through the connection instead of the session when we need
to talk to the db
Julien Cristau <julien.cristau@logilab.fr> [Wed, 05 Mar 2014 10:44:45 +0100] rev 9555
[server] use the ClientConnection directly now that it has more methods available
Gets rid of ugly self.cnx._cnx.
Julien Cristau <julien.cristau@logilab.fr> [Tue, 18 Feb 2014 17:29:34 +0100] rev 9554
[repoapi] add security/hook control and system_sql
Just redirect these methods to the repo-side Connection.
Julien Cristau <julien.cristau@logilab.fr> [Mon, 17 Feb 2014 15:22:21 +0100] rev 9553
[predicates] fix thinko in doc strings
Replace "e.g." with more appropriate "i.e.". These are not examples.
Julien Cristau <julien.cristau@logilab.fr> [Mon, 17 Feb 2014 14:10:53 +0100] rev 9552
[web/basecomponents] remove EtypeRestrictionComponent
Closes #3119951
Dimitri Papadopoulos <dimitri.papadopoulos@cea.fr> [Fri, 14 Feb 2014 12:03:20 +0100] rev 9551
[ldapparser, book] document additional error causes
Julien Cristau <julien.cristau@logilab.fr> [Fri, 14 Feb 2014 14:39:55 +0100] rev 9550
[js] remove leftover dead code in loadxhtml
form.callback support was removed in changeset 68cde7431c2c, but some
signs of it remained.
Damien Garaud <damien.garaud@logilab.fr> [Tue, 04 Mar 2014 18:28:46 +0100] rev 9549
[web] Avoid using an empty dict as default parameter of 'CubicWebRequestBase'.
Also update the related docstring of the __init__ method.
Aurelien Campeas <aurelien.campeas@logilab.fr> [Tue, 21 Jan 2014 18:30:16 +0100] rev 9548
[schema] fix composite deletion handling
Do not delete component entities if the composite is not deleted in
the same transaction.
Deletion semantics are thus: if the composite is deleted, the
components are deleted.
Closes #3463112.
Aurelien Campeas <aurelien.campeas@logilab.fr> [Fri, 24 Jan 2014 13:08:53 +0100] rev 9547
[schema] add composite handling helpers on EntitySchema (related to #3463112)
These will help write predicates, hooks, etc.
Julien Cristau <julien.cristau@logilab.fr> [Mon, 17 Feb 2014 15:01:23 +0100] rev 9546
[server] Handle unique constraint violations under recent sqlite
The error message changed from "columns foo, bar, baz are not unique" to
"UNIQUE constraint failed: table.foo, table.bar, table.baz".
Closes #3564510
Julien Cristau <julien.cristau@logilab.fr> [Tue, 04 Mar 2014 12:02:11 +0100] rev 9545
[i18n] update
de: 1065 translated messages, 1 fuzzy translation, 259 untranslated messages.
en: 656 translated messages, 669 untranslated messages.
es: 1325 translated messages.
fr: 1314 translated messages, 11 untranslated messages.
Celso FLORES <celso.flores@crealibre.com> [Tue, 04 Mar 2014 12:04:04 +0100] rev 9544
[i18n] es.po updated
Julien Cristau <julien.cristau@logilab.fr> [Mon, 17 Feb 2014 15:32:50 +0100] rev 9543
merge 3.18.x in 3.19 branch
Julien Cristau <julien.cristau@logilab.fr> [Mon, 17 Feb 2014 11:13:27 +0100] rev 9542
3.18 is stable
Julien Cristau <julien.cristau@logilab.fr> [Mon, 17 Feb 2014 11:07:38 +0100] rev 9541
[schema] explicitly declare 'add' permissions for a couple attributes
Aurelien Campeas <aurelien.campeas@logilab.fr> [Fri, 14 Feb 2014 17:52:49 +0100] rev 9540
Added tag cubicweb-version-3.17.13, cubicweb-debian-version-3.17.13-1, cubicweb-centos-version-3.17.13-1 for changeset 09b4ebb9b0f1
Julien Cristau <julien.cristau@logilab.fr> [Fri, 14 Feb 2014 17:07:25 +0100] rev 9539
Added tag cubicweb-version-3.18.3, cubicweb-debian-version-3.18.3-1, cubicweb-centos-version-3.18.3-1 for changeset afd21fea201a
Julien Cristau <julien.cristau@logilab.fr> [Fri, 14 Feb 2014 17:06:59 +0100] rev 9538
Update translations
Julien Cristau <julien.cristau@logilab.fr> [Fri, 14 Feb 2014 16:23:46 +0100] rev 9537
[pkg] prepare 3.18.3
Julien Cristau <julien.cristau@logilab.fr> [Fri, 14 Feb 2014 16:10:36 +0100] rev 9536
merge 3.17.13
Dimitri Papadopoulos <dimitri.papadopoulos@cea.fr> [Fri, 14 Feb 2014 15:42:25 +0100] rev 9535
[ldapfeed] fix encode error during initial user import
Closes #3539196.
Rémi Cardona <remi.cardona@logilab.fr> [Wed, 12 Feb 2014 17:32:49 +0100] rev 9534
[web/data] Ignore disabled widgets in cw.utils.formContents() (closes #3544492)
17.12.1 Disabled controls : http://www.w3.org/TR/REC-html40/interact/forms.html#h-17.12.1
When set, the disabled attribute has the following effects on an element:
* Disabled controls do not receive focus.
* Disabled controls are skipped in tabbing navigation.
* Disabled controls cannot be successful.
The third one is the important one.
17.13.2 Successful controls : http://www.w3.org/TR/REC-html40/interact/forms.html#successful-controls
A successful control is "valid" for submission. Every successful control has
its control name paired with its current value as part of the submitted form
data set.
Bottom line, disable widgets should not be part of the names and values lists returned by formContents().
Damien Garaud <damien.garaud@logilab.fr> [Fri, 14 Feb 2014 15:22:56 +0100] rev 9533
[etwist] Fix an empty request content after a Twisted processing (closes #3546795).
The content of a POST request could be empty when the Twisted server is used.
Julien Cristau <julien.cristau@logilab.fr> [Thu, 13 Feb 2014 16:50:55 +0100] rev 9532
[web/data] remove images that aren't used anywhere
Julien Cristau <julien.cristau@logilab.fr> [Thu, 13 Feb 2014 16:51:22 +0100] rev 9531
[web/data] Add missing images from jquery-ui 1.10.3
Closes #3175933
Julien Cristau <julien.cristau@logilab.fr> [Fri, 14 Feb 2014 14:06:56 +0100] rev 9530
[web/navigation] use add_onload instead of inline javascript href
This way our javascript code isn't thrown out by the html cleaner e.g. when
using the rql rest directive and a table view.
To make things simpler, we now always use ajax URLs for navigation,
even when we would previously have used regular links.
Closes #3501626
Julien Cristau <julien.cristau@logilab.fr> [Fri, 14 Feb 2014 14:46:25 +0100] rev 9529
[web/data] fix treeview regression (closes #3526466)
Changeset 68cde7431c2c "[js] remove 3.9 bw compat (where apparently
unused)" removed the use of form.callback from loadxhtml, which treeview
relied on. Update to add a callback on the loadxhtml return value
instead.
Aurelien Campeas <aurelien.campeas@logilab.fr> [Fri, 14 Feb 2014 10:39:16 +0100] rev 9528
backout 8f3e963501e2, which is not ready yet
Aurelien Campeas <aurelien.campeas@logilab.fr> [Thu, 13 Feb 2014 19:29:20 +0100] rev 9527
[pkg] also bump it there
Aurelien Campeas <aurelien.campeas@logilab.fr> [Mon, 10 Feb 2014 18:00:26 +0100] rev 9526
[pkg] prepare 3.17.13
Julien Cristau <julien.cristau@logilab.fr> [Tue, 11 Feb 2014 13:50:29 +0100] rev 9525
[navigation] use add_onload instead of inline javascript href
This way our javascript code isn't thrown out by the html cleaner e.g. when
using the rql rest directive and a table view.
Closes #3501626
Julien Cristau <julien.cristau@logilab.fr> [Wed, 05 Feb 2014 15:50:36 +0100] rev 9524
[uilib] allow canvas tags in the html cleaner
Used by the iprogress cube. Closes #3524254.
Julien Cristau <julien.cristau@logilab.fr> [Wed, 05 Feb 2014 16:34:21 +0100] rev 9523
[ajax] use a custom tag to handle dynamically loaded js
Using <pre class="script"> makes it trivial for a malicious user to
inject arbitrary javascript into a html or rest text element (because it
looks innocent to the html sanitizer). Using a custom tag we can be
sure that it actually comes from our code and not from untrusted user
data. IE ignores custom tags, though, so we put it in its own namespace.
https://extranet.logilab.fr/1530578
Aurelien Campeas <aurelien.campeas@logilab.fr> [Mon, 03 Feb 2014 19:07:58 +0100] rev 9522
[dataimport] fix comment
Aurelien Campeas <aurelien.campeas@logilab.fr> [Wed, 12 Feb 2014 18:15:32 +0100] rev 9521
[hooks/security, devtools/fill] silence yams 0.38.0 warnings
Florent Cayré <florent.cayre@logilab.fr> [Mon, 03 Feb 2014 16:30:07 +0100] rev 9520
Drop 3.13 incomplete backward compat in edit controller.
It is very old and broken (there is another non-backward-copmpatible
usage of `_cw_entity_fields`), better to remove it instead of fixing.
Closes #3515223.
Julien Cristau <julien.cristau@logilab.fr> [Mon, 10 Feb 2014 16:06:16 +0100] rev 9519
[devtools] force locale to C for postgresql test clusters
Avoids initdb failure with e.g. iso8859-X locale and utf-8 encoding.
Sylvain Thénault <sylvain.thenault@logilab.fr> [Fri, 20 Dec 2013 08:39:03 +0100] rev 9518
[rql2sql] remove special behaviour of symmetric relation vs DISTINCT
0542a85fe667 replacing SQL OR by hooks for symmetric relations allows that.
This involve a single test value change for a border case: when querying a
symmetric relation without specifying the subject nor the object, you may get
some duplicated result. IMO this is fine to let the user explicitly use DISTINCT
or not and to remove the dedicated handling we had which didn't let any choice.
Related to #3259713
Dimitri Papadopoulos <dimitri.papadopoulos@cea.fr> [Tue, 11 Feb 2014 11:03:01 +0100] rev 9517
Typo in comments and error messages
Dimitri Papadopoulos <dimitri.papadopoulos@cea.fr> [Thu, 13 Feb 2014 15:11:07 +0100] rev 9516
Fix typo in a setup.py comment
Dimitri Papadopoulos <dimitri.papadopoulos@cea.fr> [Thu, 13 Feb 2014 15:09:30 +0100] rev 9515
[dataimport, migration] more fixes in the spirit of a6c32edabc8d:
[entity, metadata] huuum, use resolvable url as cwuri... And fix existing ones.
Closes #3390388
Denis Laxalde <denis.laxalde@logilab.fr> [Thu, 06 Feb 2014 15:04:57 +0100] rev 9514
[doc] Fix typo in devrepo/fti
Denis Laxalde <denis.laxalde@logilab.fr> [Tue, 04 Feb 2014 11:23:58 +0100] rev 9513
[doc/3.19] Clarify repoapi.get_repository usage
Followup for 9a62c52d167e.
Julien Cristau <julien.cristau@logilab.fr> [Wed, 29 Jan 2014 13:43:42 +0100] rev 9512
[server] use a connection instead of a session for user authentication
Julien Cristau <julien.cristau@logilab.fr> [Tue, 11 Feb 2014 17:29:58 +0100] rev 9511
Use repoapi instead of dbapi for cwctl shell, upgrade and db-init
Hopefully nobody uses dbapi-specific API in their migration scripts. I
guess we'll find out.
Julien Cristau <julien.cristau@logilab.fr> [Tue, 28 Jan 2014 16:07:06 +0100] rev 9510
[server/repo] use internal_cnx in init_sources_from_database
Julien Cristau <julien.cristau@logilab.fr> [Wed, 29 Jan 2014 15:25:05 +0100] rev 9509
[server/session] avoid spurious warnings from Session.close
Add internal non-noisy _rollback method.
Julien Cristau <julien.cristau@logilab.fr> [Wed, 29 Jan 2014 15:29:49 +0100] rev 9508
[server] rename session to cnx in querier and plan
They don't actually need a session, so let's make that clear.
Julien Cristau <julien.cristau@logilab.fr> [Wed, 29 Jan 2014 15:55:21 +0100] rev 9507
[repo] Use a connection instead of a session for repo.stats()
Julien Cristau <julien.cristau@logilab.fr> [Wed, 29 Jan 2014 15:55:48 +0100] rev 9506
[repo] Use a connection instead of a session for repo.gc_stats()
Julien Cristau <julien.cristau@logilab.fr> [Wed, 29 Jan 2014 15:56:44 +0100] rev 9505
[repo] Use a connection instead of a session for repo.get_versions()
Julien Cristau <julien.cristau@logilab.fr> [Thu, 30 Jan 2014 15:52:22 +0100] rev 9504
[webconfig] get_repository moved to repoapi
Julien Cristau <julien.cristau@logilab.fr> [Thu, 30 Jan 2014 16:48:39 +0100] rev 9503
[schemaserial] Replace 'cursor' with 'cnx'
We don't have cursors in rql, since execute is synchronous.
Dimitri Papadopoulos <dimitri.papadopoulos@cea.fr> [Mon, 03 Feb 2014 09:38:39 +0100] rev 9502
[book] basic documentation for LDAPfeed
Julien Cristau <julien.cristau@logilab.fr> [Wed, 29 Jan 2014 16:03:42 +0100] rev 9501
[testlib] Use session.sessionid instead of deprecated session.id
Julien Cristau <julien.cristau@logilab.fr> [Fri, 07 Feb 2014 17:03:11 +0100] rev 9500
Add data/pgdb to hgignore patterns
PostgresTestDataBaseHandler uses it as datadir.
Julien Cristau <julien.cristau@logilab.fr> [Mon, 27 Jan 2014 14:01:03 +0100] rev 9499
[test] make unittest_postgres pass
Use PostgresApptestConfiguration which starts a postgresql cluster
locally for the duration of the test.
Julien Cristau <julien.cristau@logilab.fr> [Tue, 28 Jan 2014 15:03:53 +0100] rev 9498
[devtools] make PostgresTestDataBaseHandler start its own postgresql
Don't depend on postgresql already running on the system, or on a static
config.
To use this, set the configcls attribute of your CubicWebTC-derived test
class to PostgresApptestConfiguration.
Caveats:
- this won't work with several tests running concurrently from the
same directory, since each would start its own cluster with a shared
data directory and stomp on each other's toes
- you need initdb/pg_ctl in $PATH, e.g /usr/lib/postgresql/$version/bin
on Debian/Ubuntu systems.
Closes #3489631
Julien Cristau <julien.cristau@logilab.fr> [Wed, 05 Feb 2014 09:23:36 +0100] rev 9497
[web/staticcontrollers] create a unique temporary file for concat handling
Predictable names means different processes can race against each other.
Let's avoid that and use mkstemp to get a real unique temporary file,
and atomically rename it when we're done.
Closes #3524182
Julien Cristau <julien.cristau@logilab.fr> [Wed, 29 Jan 2014 15:50:19 +0100] rev 9496
[server/repo] Use session.sessionid instead of session.id
Silences deprecation warning.
Julien Cristau <julien.cristau@logilab.fr> [Wed, 29 Jan 2014 16:19:13 +0100] rev 9495
[server/session] use _free_cnxset instead of free_cnxset to avoid warnings
No need to make DeprecationWarning noise for something the user doesn't
have any control over.
Julien Cristau <julien.cristau@logilab.fr> [Tue, 28 Jan 2014 15:29:23 +0100] rev 9494
[server] Use internal_cnx instead of internal_session in init_repository
Julien Cristau <julien.cristau@logilab.fr> [Thu, 30 Jan 2014 16:33:32 +0100] rev 9493
[server/session] session.id → session.sessionid
The former causes deprecation warnings.
Dimitri Papadopoulos <dimitri.papadopoulos@cea.fr> [Tue, 04 Feb 2014 15:29:29 +0100] rev 9492
English typography
Get rid of extra space before `!' and `?'
Julien Cristau <julien.cristau@logilab.fr> [Mon, 03 Feb 2014 19:00:52 +0100] rev 9491
[repo] restore python 2.6 compatibility
Broken in 12dfce15c8ea.
Julien Cristau <julien.cristau@logilab.fr> [Tue, 28 Jan 2014 18:24:29 +0100] rev 9490
[server] use internal_cnx instead of internal_session in deserialize_schema
Julien Cristau <julien.cristau@logilab.fr> [Tue, 28 Jan 2014 18:40:19 +0100] rev 9489
[server/schemaserial] rename cursor argument to cnx
cursor is a sql concept it has no meaning for rql.
Julien Cristau <julien.cristau@logilab.fr> [Wed, 29 Jan 2014 15:57:48 +0100] rev 9488
[repo] Use a connection instead of a session in Repository.properties()
Julien Cristau <julien.cristau@logilab.fr> [Thu, 30 Jan 2014 16:00:29 +0100] rev 9487
[server/sources] replace references to dbapi with repoapi
Julien Cristau <julien.cristau@logilab.fr> [Thu, 30 Jan 2014 16:45:05 +0100] rev 9486
[doc/3.19] Make repoapi description match code
Julien Cristau <julien.cristau@logilab.fr> [Mon, 03 Feb 2014 18:19:26 +0100] rev 9485
[serverctl] remove broken schema-sync command
As far as I can tell the migration handler hasn't had a
cmd_synchronize_schema method since cubicweb 3.2.0.
Julien Cristau <julien.cristau@logilab.fr> [Thu, 30 Jan 2014 18:04:59 +0100] rev 9484
[server/session] Fix docstring typo for InternalSession
Dimitri Papadopoulos <dimitri.papadopoulos@cea.fr> [Fri, 24 Jan 2014 15:32:53 +0100] rev 9483
[book] typo
Julien Cristau <julien.cristau@logilab.fr> [Wed, 29 Jan 2014 13:45:03 +0100] rev 9482
[server] fix TypeErrors
With multisource gone, cnxset.reconnect() doesn't take a source
argument. Broken since d62e13eba033.
Julien Cristau <julien.cristau@logilab.fr> [Tue, 17 Dec 2013 11:50:46 +0100] rev 9481
[notification] use an InternalManager object for notifications if we have an (email, lang) tuple
The non-uniform handling of CWUser vs (email, lang) tuple has caused too
many bugs; this change mostly unifies the two code paths. Closes #3381521
Julien Cristau <julien.cristau@logilab.fr> [Tue, 17 Dec 2013 11:50:31 +0100] rev 9480
[req] if a user has a None property, fall back to the default
This can happen for InternalManager; the normal CWUser implementation of
property_value already has a similar fallback. Related to #3381521
Julien Cristau <julien.cristau@logilab.fr> [Tue, 17 Dec 2013 11:50:12 +0100] rev 9479
[server] Allow setting an InternalManager's preferred language
Related to #3381521
Julien Cristau <julien.cristau@logilab.fr> [Mon, 27 Jan 2014 16:19:49 +0100] rev 9478
merge 3.18.2 into 3.19 branch
Julien Cristau <julien.cristau@logilab.fr> [Thu, 23 Jan 2014 10:53:24 +0100] rev 9477
[migration/3.18] protect against attributes in db missing from fsschema
Happens if a previous migration forgot a drop_attribute.
Closes #3471609
Arthur Lutz <arthur.lutz@logilab.fr> [Tue, 21 Jan 2014 18:39:32 +0100] rev 9476
[doc] Update copyright date to 2014 (closes #3463136)
Julien Cristau <julien.cristau@logilab.fr> [Fri, 24 Jan 2014 10:04:56 +0100] rev 9475
[repoapi] Fix typos in doc strings and comments
Sylvain Thénault <sylvain.thenault@logilab.fr> [Tue, 17 Dec 2013 13:43:56 +0100] rev 9474
[cwxml parser] minor pylint fixes
Julien Cristau <julien.cristau@logilab.fr> [Tue, 14 Jan 2014 17:30:02 +0100] rev 9473
[devtools] make CubicWebTC.login as admin undo previous logins
Fixes things when login is not used as a context manager.
Julien Cristau <julien.cristau@logilab.fr> [Tue, 14 Jan 2014 17:30:13 +0100] rev 9472
[devtools] fix self.session._cnx vs self.cnx._cnx confusion after self.login
Make sure the client connection and the session refer to the same server
connection.
Aurelien Campeas <aurelien.campeas@logilab.fr> [Thu, 23 Jan 2014 18:26:16 +0100] rev 9471
[devtools] _orig_cnx does not exist any more (missing change)
Aurelien Campeas <aurelien.campeas@logilab.fr> [Mon, 06 Jan 2014 17:25:55 +0100] rev 9470
[c-c schema] option to show single etype (closes #3404831)
Sylvain Thénault <sylvain.thenault@logilab.fr> [Thu, 23 Jan 2014 13:47:28 +0100] rev 9469
[multi-sources-removal] Drop entities.source column
Since we remove federated multi-sources support, the same value ('system')
is always stored in this column and so could be removed. Also, cleanup
repository caches and a few api where the very same useless information could
be removed.
Closes #2919300, at last
[jcr: restore sanity check of etype against schema in checkintegrity.has_eid]
Julien Cristau <julien.cristau@logilab.fr> [Thu, 23 Jan 2014 12:32:16 +0100] rev 9468
[repo] pylint cleanup, mainly of imports, with a bit of style
Sylvain Thénault <sylvain.thenault@logilab.fr> [Mon, 01 Jul 2013 16:13:17 +0200] rev 9467
[multi-sources-removal] Drop no more used federated ('true') multi-sources related code
Related to #2919300 (almost done!)
Sylvain Thénault <sylvain.thenault@logilab.fr> [Wed, 22 Jan 2014 15:50:03 +0100] rev 9466
[multi-sources-removal] Turn ConnectionsSet into simpler ConnectionWrapper
also, SqliteConnectionWrapper becomes a subclass. This is allowed since
now ConnectionsSet responsability has been reduced to handling the system
source only.
This changeset also:
* drops useless cnxset_set / check_connection api
* deprecates former .source / .connection / container api
but it renames neither the session's cnxset attribute, nor the related
repository method.
Related to #2919300
Sylvain Thénault <sylvain.thenault@logilab.fr> [Thu, 27 Jun 2013 09:18:39 +0200] rev 9465
[multi-sources-removal] Drop cnxset_freed from source interface
Though a hack is still needed when using sqlite
Related to #2919300
Julien Cristau <julien.cristau@logilab.fr> [Wed, 22 Jan 2014 15:35:13 +0100] rev 9464
[cnxset] add backwards compat for cnxset.source_cnxs
It's used at least in a vcsfile migration script.