Mon, 07 Apr 2014 18:04:56 +0200 Fix constraint sync during migration
Julien Cristau <julien.cristau@logilab.fr> [Mon, 07 Apr 2014 18:04:56 +0200] rev 9636
Fix constraint sync during migration - restore constraints lost during merge in test schema. - use constraint_by_eid in BeforeDeleteCWConstraintHook as done in 3.17.14 for BeforeDeleteConstrainedByHook. Fixes handling of multiple constraints of the same type. - make sync_schema_props_perms() delete the CWConstraint entity instead of the constrained_by relation. In 3.19, the latter doesn't automatically result in the former just because the relation is composite. Simplify the constraint migration to delete all removed constraints and recreate new ones even if they share the same type; that optimization made the code more complicated for (AFAICT) no significant reason.
Mon, 07 Apr 2014 17:02:04 +0200 merge 3.18.4 into default
Julien Cristau <julien.cristau@logilab.fr> [Mon, 07 Apr 2014 17:02:04 +0200] rev 9635
merge 3.18.4 into default server/test/unittest_migractions fails due to interaction between new constraint test (from 3.18) and composite deletion change (in 3.19).
Mon, 07 Apr 2014 15:57:47 +0200 Added tag cubicweb-version-3.18.4, cubicweb-debian-version-3.18.4-1, cubicweb-centos-version-3.18.4-1 for changeset 0176da9bc752 stable
Julien Cristau <julien.cristau@logilab.fr> [Mon, 07 Apr 2014 15:57:47 +0200] rev 9634
Added tag cubicweb-version-3.18.4, cubicweb-debian-version-3.18.4-1, cubicweb-centos-version-3.18.4-1 for changeset 0176da9bc752
Fri, 04 Apr 2014 12:37:39 +0200 [test/data] Add missing 'add' permission on attribute stable cubicweb-centos-version-3.18.4-1 cubicweb-debian-version-3.18.4-1 cubicweb-version-3.18.4
Sylvain Thénault <sylvain.thenault@logilab.fr> [Fri, 04 Apr 2014 12:37:39 +0200] rev 9633
[test/data] Add missing 'add' permission on attribute Silences a warning introduced in 3.18.
Mon, 07 Apr 2014 14:15:35 +0200 [hooks/notification] Fix indentation
Julien Cristau <julien.cristau@logilab.fr> [Mon, 07 Apr 2014 14:15:35 +0200] rev 9632
[hooks/notification] Fix indentation Follow-up for changeset 1b8552265f3b "[hooks/notification] use a cnx not a session"
Thu, 03 Apr 2014 18:16:10 +0200 [devtools] deprecate CWTC.user()
Sylvain Thénault <sylvain.thenault@logilab.fr> [Thu, 03 Apr 2014 18:16:10 +0200] rev 9631
[devtools] deprecate CWTC.user()
Thu, 03 Apr 2014 18:18:11 +0200 minor cleanups
Sylvain Thénault <sylvain.thenault@logilab.fr> [Thu, 03 Apr 2014 18:18:11 +0200] rev 9630
minor cleanups
Thu, 03 Apr 2014 18:16:28 +0200 some copyright updates
Sylvain Thénault <sylvain.thenault@logilab.fr> [Thu, 03 Apr 2014 18:16:28 +0200] rev 9629
some copyright updates
Thu, 03 Apr 2014 18:12:48 +0200 [devtools] properly close open access on tearDown
Sylvain Thénault <sylvain.thenault@logilab.fr> [Thu, 03 Apr 2014 18:12:48 +0200] rev 9628
[devtools] properly close open access on tearDown avoiding further warning about living sessions while the repo is turned off. The doc string says: The RepoAccess need to be closed to destroy the associated Session. TestCase usually take care of this aspect for the user. but that wasn't true until now.
Thu, 03 Apr 2014 19:10:40 +0200 [devtools] make comment (a bit) more readable
Sylvain Thénault <sylvain.thenault@logilab.fr> [Thu, 03 Apr 2014 19:10:40 +0200] rev 9627
[devtools] make comment (a bit) more readable
Wed, 02 Apr 2014 16:09:09 +0200 [devtools] avoid an internal deprecation warning
Julien Cristau <julien.cristau@logilab.fr> [Wed, 02 Apr 2014 16:09:09 +0200] rev 9626
[devtools] avoid an internal deprecation warning websession and session are now one and the same.
Wed, 02 Apr 2014 12:38:29 +0200 [server/session] undeprecate session.anonymous_session
Julien Cristau <julien.cristau@logilab.fr> [Wed, 02 Apr 2014 12:38:29 +0200] rev 9625
[server/session] undeprecate session.anonymous_session It's not connection-specific.
Wed, 02 Apr 2014 15:42:25 +0200 [web/sessions] use session.sessionid instead of deprecated session.id
Julien Cristau <julien.cristau@logilab.fr> [Wed, 02 Apr 2014 15:42:25 +0200] rev 9624
[web/sessions] use session.sessionid instead of deprecated session.id
Thu, 03 Apr 2014 18:09:57 +0200 [repo] don't set cnxset when getting the session to close it
Sylvain Thénault <sylvain.thenault@logilab.fr> [Thu, 03 Apr 2014 18:09:57 +0200] rev 9623
[repo] don't set cnxset when getting the session to close it and avoid warning about that. session._cnx.rollback won't do anything if it's not set and a newer connection is now created to run the session_close hook, so there is not need to set cnxset. Notice we have to take care about not trying to rollback the underlying cnx when the session is not 'session_handled' (i.e. bw compat mode). This case only occurs due to hackish things to keep bw compat in testlib.
Wed, 02 Apr 2014 12:38:02 +0200 [repo] handle connection explicitly when calling session open/close hooks
Julien Cristau <julien.cristau@logilab.fr> [Wed, 02 Apr 2014 12:38:02 +0200] rev 9622
[repo] handle connection explicitly when calling session open/close hooks
Tue, 01 Apr 2014 16:48:34 +0200 [hooks/syncschema] work with connections not sessions
Julien Cristau <julien.cristau@logilab.fr> [Tue, 01 Apr 2014 16:48:34 +0200] rev 9621
[hooks/syncschema] work with connections not sessions
Tue, 01 Apr 2014 16:48:14 +0200 [server/sources] {before,after}_entity_insertion wants a cnx not a session
Julien Cristau <julien.cristau@logilab.fr> [Tue, 01 Apr 2014 16:48:14 +0200] rev 9620
[server/sources] {before,after}_entity_insertion wants a cnx not a session
Tue, 01 Apr 2014 16:35:15 +0200 [hooks/syncsources] use a cnx not a session
Julien Cristau <julien.cristau@logilab.fr> [Tue, 01 Apr 2014 16:35:15 +0200] rev 9619
[hooks/syncsources] use a cnx not a session
Tue, 01 Apr 2014 16:34:38 +0200 [hooks/notification] use a cnx not a session
Julien Cristau <julien.cristau@logilab.fr> [Tue, 01 Apr 2014 16:34:38 +0200] rev 9618
[hooks/notification] use a cnx not a session
Tue, 01 Apr 2014 16:33:48 +0200 [hooks/metadata] use a cnx not a session
Julien Cristau <julien.cristau@logilab.fr> [Tue, 01 Apr 2014 16:33:48 +0200] rev 9617
[hooks/metadata] use a cnx not a session
Tue, 01 Apr 2014 16:32:49 +0200 [hooks/bookmark] use a cnx not a session
Julien Cristau <julien.cristau@logilab.fr> [Tue, 01 Apr 2014 16:32:49 +0200] rev 9616
[hooks/bookmark] use a cnx not a session
Tue, 01 Apr 2014 16:32:28 +0200 [hooks/workflow] use a cnx not a session
Julien Cristau <julien.cristau@logilab.fr> [Tue, 01 Apr 2014 16:32:28 +0200] rev 9615
[hooks/workflow] use a cnx not a session
Tue, 01 Apr 2014 16:30:35 +0200 [hooks/email] use a cnx not a session
Julien Cristau <julien.cristau@logilab.fr> [Tue, 01 Apr 2014 16:30:35 +0200] rev 9614
[hooks/email] use a cnx not a session
Tue, 01 Apr 2014 16:29:54 +0200 [hooks/integrity] use a cnx not a session
Julien Cristau <julien.cristau@logilab.fr> [Tue, 01 Apr 2014 16:29:54 +0200] rev 9613
[hooks/integrity] use a cnx not a session
Tue, 01 Apr 2014 16:28:12 +0200 [hooks/security] let's use a connection, not a session
Julien Cristau <julien.cristau@logilab.fr> [Tue, 01 Apr 2014 16:28:12 +0200] rev 9612
[hooks/security] let's use a connection, not a session
Tue, 01 Apr 2014 16:17:03 +0200 [server/sources/native] deal with connections, not sessions
Julien Cristau <julien.cristau@logilab.fr> [Tue, 01 Apr 2014 16:17:03 +0200] rev 9611
[server/sources/native] deal with connections, not sessions
Tue, 01 Apr 2014 16:12:50 +0200 [server] eschema_eid needs a connection, not a session
Julien Cristau <julien.cristau@logilab.fr> [Tue, 01 Apr 2014 16:12:50 +0200] rev 9610
[server] eschema_eid needs a connection, not a session
Tue, 01 Apr 2014 15:53:21 +0200 [repository] operations get a connection instead of a session
Julien Cristau <julien.cristau@logilab.fr> [Tue, 01 Apr 2014 15:53:21 +0200] rev 9609
[repository] operations get a connection instead of a session Left extid2eid unchanged because that function scares the shit out of me.
Tue, 01 Apr 2014 15:52:44 +0200 [server/hook] operations get a connection instead of a session
Julien Cristau <julien.cristau@logilab.fr> [Tue, 01 Apr 2014 15:52:44 +0200] rev 9608
[server/hook] operations get a connection instead of a session
Tue, 01 Apr 2014 15:46:17 +0200 [repository] Use an internal connection in register_user
Julien Cristau <julien.cristau@logilab.fr> [Tue, 01 Apr 2014 15:46:17 +0200] rev 9607
[repository] Use an internal connection in register_user
Tue, 01 Apr 2014 10:28:16 +0200 avoid to internally raise 3.19 warnings
Sylvain Thénault <sylvain.thenault@logilab.fr> [Tue, 01 Apr 2014 10:28:16 +0200] rev 9606
avoid to internally raise 3.19 warnings
Mon, 07 Apr 2014 12:28:25 +0200 [sources] ensure we have a cnxset in undoable_transactions
Julien Cristau <julien.cristau@logilab.fr> [Mon, 07 Apr 2014 12:28:25 +0200] rev 9605
[sources] ensure we have a cnxset in undoable_transactions
Fri, 04 Apr 2014 10:46:53 +0200 [server] move security/integrity hook management away from InternalSession.__init__
Julien Cristau <julien.cristau@logilab.fr> [Fri, 04 Apr 2014 10:46:53 +0200] rev 9604
[server] move security/integrity hook management away from InternalSession.__init__ and to Repository.internal_{session,cnx} instead. Lets internal_cnx avoid deprecation warnings.
Thu, 03 Apr 2014 17:25:53 +0200 [migration] make 'session' object be a server-side Connection, not ClientConnection
Julien Cristau <julien.cristau@logilab.fr> [Thu, 03 Apr 2014 17:25:53 +0200] rev 9603
[migration] make 'session' object be a server-side Connection, not ClientConnection I think this better corresponds to the previous behaviour. However, that Connection does not have a cnxset, which should probably be changed (for both interactive_shell and cmd_process_script).
Thu, 20 Mar 2014 08:45:52 +0100 [sources] Skip problematic sources when starting shell instead of crashing. Closes #3670208
Sylvain Thénault <sylvain.thenault@logilab.fr> [Thu, 20 Mar 2014 08:45:52 +0100] rev 9602
[sources] Skip problematic sources when starting shell instead of crashing. Closes #3670208 At least this gives an opportunity to fix the problem in using c-c shell, which is currently not possible because it crashes during initialization. Notice that since sources are copy based, it should not be a problem at all to have some disabled, beside for services such as authentication sources as ldapfeed.
Fri, 04 Apr 2014 17:32:12 +0200 [web] fix language negotiation
Julien Cristau <julien.cristau@logilab.fr> [Fri, 04 Apr 2014 17:32:12 +0200] rev 9601
[web] fix language negotiation Regression caused by commit 6fd0ac6506cb "[web-request] handle default language earlier". We would handle language negotiation at request init time, but overwrite the selected language with the site default when calling set_cnx.
Tue, 01 Apr 2014 18:09:46 +0200 [merge] bring the 3.17.14 fixes to 3.18 stable
Aurelien Campeas <aurelien.campeas@logilab.fr> [Tue, 01 Apr 2014 18:09:46 +0200] rev 9600
[merge] bring the 3.17.14 fixes to 3.18
Tue, 01 Apr 2014 14:46:55 +0200 [test/utils] repair concat-resources test stable
Aurelien Campeas <aurelien.campeas@logilab.fr> [Tue, 01 Apr 2014 14:46:55 +0200] rev 9599
[test/utils] repair concat-resources test That was forgotten in 240a620b9cd3. Related to #3670503.
Mon, 31 Mar 2014 19:00:49 +0200 [pkg] bump cubicweb.spec stable
Aurelien Campeas <aurelien.campeas@logilab.fr> [Mon, 31 Mar 2014 19:00:49 +0200] rev 9598
[pkg] bump cubicweb.spec
Mon, 31 Mar 2014 11:18:44 +0000 [dataimport] Correctly call rschema(rtype) in SqlGenObjectStore, closes #3694139 stable
Vincent Michel <vincent.michel@logilab.fr> [Mon, 31 Mar 2014 11:18:44 +0000] rev 9597
[dataimport] Correctly call rschema(rtype) in SqlGenObjectStore, closes #3694139
Fri, 28 Mar 2014 17:13:38 +0100 [pkg] prepare 3.18.4 stable
Aurelien Campeas <aurelien.campeas@logilab.fr> [Fri, 28 Mar 2014 17:13:38 +0100] rev 9596
[pkg] prepare 3.18.4
Thu, 20 Mar 2014 15:44:59 +0100 [web] Disable 'concat-resources' by default (closes #3670503) stable
Rémi Cardona <remi.cardona@logilab.fr> [Thu, 20 Mar 2014 15:44:59 +0100] rev 9595
[web] Disable 'concat-resources' by default (closes #3670503) It makes debugging harder and it can actually *break* working JS or CSS files. This is the first step towards complete removal.
Wed, 12 Mar 2014 08:56:31 +0100 [testlib] Drop override of assertItemsEqual method stable
Denis Laxalde <denis.laxalde@logilab.fr> [Wed, 12 Mar 2014 08:56:31 +0100] rev 9594
[testlib] Drop override of assertItemsEqual method The override is not compatible with underlying (standard) method because it builds sets and rely on eid. Closes #3641111.
Thu, 13 Mar 2014 17:32:40 +0100 [rewrite] Fix crash when the main variable doesn't appear in the snippet's vargraph stable
Sylvain Thénault <sylvain.thenault@logilab.fr> [Thu, 13 Mar 2014 17:32:40 +0100] rev 9593
[rewrite] Fix crash when the main variable doesn't appear in the snippet's vargraph Also, the added test discover another bug once the first has been fixed (erroneous argument given to .rewrite recursive call). Closes #3661918
Thu, 13 Mar 2014 15:33:22 +0100 [ext/rest] Catch SystemExit raised by docutils stable
Denis Laxalde <denis.laxalde@logilab.fr> [Thu, 13 Mar 2014 15:33:22 +0100] rev 9592
[ext/rest] Catch SystemExit raised by docutils docutils publisher may raise SystemExit which is not caught by Exception. Closes #3648763.
Fri, 14 Mar 2014 15:19:31 +0100 [entity] User-defined relation to skip for copy has precedence stable
Jérôme Roy <jerome.roy@logilab.fr> [Fri, 14 Mar 2014 15:19:31 +0100] rev 9591
[entity] User-defined relation to skip for copy has precedence Otherwise permission problems can occur on rtypes not yet skipped Closes #3653459
Wed, 26 Feb 2014 14:50:13 +0100 Make EditController edit_entity method always return an eid stable
Denis Laxalde <denis.laxalde@logilab.fr> [Wed, 26 Feb 2014 14:50:13 +0100] rev 9590
Make EditController edit_entity method always return an eid In cases the entity was to be created or copied, eid was None hence the method returned None despite the dosctring says the method should always return an eid. Now if the eid variable is None, it is assigned to the newly created entity eid. Closes #3593029.
Wed, 26 Mar 2014 11:08:09 +0100 [migration] Improve update of in-memory schema during 3.18 CWAttribute.defaultval change stable
Julien Cristau <julien.cristau@logilab.fr> [Wed, 26 Mar 2014 11:08:09 +0100] rev 9589
[migration] Improve update of in-memory schema during 3.18 CWAttribute.defaultval change We weren't updating the schema properly so a bunch of structures still had the old rdef with 'String' as object. That caused failures to add new attributes later in the migration as their default value would be a Binary object but the schema would expect a String. Closes #3683640
Thu, 27 Mar 2014 14:32:21 +0100 [migration] always rebuild infered relation stable
Sylvain Thénault <sylvain.thenault@logilab.fr> [Thu, 27 Mar 2014 14:32:21 +0100] rev 9588
[migration] always rebuild infered relation This was skipped for some bad reason (see 12ad88615a12 which introduced the change). Fix for #231956 in Yams is necessary to allow this cset: during a migration, we want to always reinfer relations while allowing explicit redefinition of an infered relation later. Else, we may run the migration with missing parts of the schema (the one that should have been infered). Closes #3685463.
Mon, 24 Mar 2014 16:29:18 +0100 Backout "[web/navigation] use add_onload instead of inline javascript href" stable
Julien Cristau <julien.cristau@logilab.fr> [Mon, 24 Mar 2014 16:29:18 +0100] rev 9587
Backout "[web/navigation] use add_onload instead of inline javascript href" This reverts changeset 170e1437948d, for at least two reasons: the PageNavigationSelect component was not updated for the new type of navigation links, and external cubes defining View.page_navigation_url exist in the wild and also got broken navigation links. This reopens #3501626 and closes #3677945.
Fri, 14 Mar 2014 10:51:05 +0100 [test] those are rql tests, not cubicweb (and they break with rql 0.31.5). Remove them. stable
Sylvain Thénault <sylvain.thenault@logilab.fr> [Fri, 14 Mar 2014 10:51:05 +0100] rev 9586
[test] those are rql tests, not cubicweb (and they break with rql 0.31.5). Remove them.
Mon, 24 Mar 2014 18:14:22 +0100 [source/native] allow many eid creation per .create_eid call (closes #3526594)
Aurelien Campeas <aurelien.campeas@logilab.fr> [Mon, 24 Mar 2014 18:14:22 +0100] rev 9585
[source/native] allow many eid creation per .create_eid call (closes #3526594) [jcr: move migration code to bootstrapmigration_repository.py to make sure we stop using the old sequence ASAP]
Thu, 06 Feb 2014 19:04:03 +0100 [pkg] bump the dependency on logilab.database
Aurelien Campeas <aurelien.campeas@logilab.fr> [Thu, 06 Feb 2014 19:04:03 +0100] rev 9584
[pkg] bump the dependency on logilab.database This will allow use of an extended API. Related to #3526594.
Mon, 10 Mar 2014 15:55:56 +0100 [source/native] refactor eid generation code
Aurelien Campeas <aurelien.campeas@logilab.fr> [Mon, 10 Mar 2014 15:55:56 +0100] rev 9583
[source/native] refactor eid generation code This set of related methods clutters the native source API. It will be better served with a dedicated eid genrator object. Related to #3526594. [jcr: allocate the eid generator in __init__]
Mon, 24 Mar 2014 11:57:23 +0100 Move entity cache from web.request.ConnectionCubicWebRequestBase to repoapi.ClientConnection
Julien Cristau <julien.cristau@logilab.fr> [Mon, 24 Mar 2014 11:57:23 +0100] rev 9582
Move entity cache from web.request.ConnectionCubicWebRequestBase to repoapi.ClientConnection ResultSet._build_entity relies on an entity cache to avoid going round in circles (stack overflow due to infinite recursion) e.g. in a postcreate script. Clear the cache at commit/rollback time to avoid unexpected side effects; and explicitly clear the cache in a few tests where we mix ORM and RQL using the same connection.
Mon, 24 Mar 2014 16:38:57 +0100 [server] Fix AttributeError in extid2eid
Laura Médioni <laura.medioni@logilab.fr> [Mon, 24 Mar 2014 16:38:57 +0100] rev 9581
[server] Fix AttributeError in extid2eid Session._tx was renamed in cb87e831c183, use _cnx instead.
Tue, 11 Mar 2014 15:56:05 +0100 [book] Update documentation for new repoapi
Julien Cristau <julien.cristau@logilab.fr> [Tue, 11 Mar 2014 15:56:05 +0100] rev 9580
[book] Update documentation for new repoapi Quite a few things change in 3.19: - repoapi instead of dbapi - ClientConnection / Connection / Session rework - web authentication process - test APIs Closes #3638793
Fri, 14 Mar 2014 11:18:15 +0100 [utils] the json module is always available
Julien Cristau <julien.cristau@logilab.fr> [Fri, 14 Mar 2014 11:18:15 +0100] rev 9579
[utils] the json module is always available It's included since python 2.6, and we don't support earlier versions.
Mon, 17 Mar 2014 12:15:20 +0100 [fti] properly close the ProgressBar
Julien Cristau <julien.cristau@logilab.fr> [Mon, 17 Mar 2014 12:15:20 +0100] rev 9578
[fti] properly close the ProgressBar Ensures cubicweb-ctl db-rebuild-fti ends its output with a newline.
Mon, 17 Mar 2014 12:13:14 +0100 [serverctl] use repoapi for db-check, add-source, rebuild-fti commands
Julien Cristau <julien.cristau@logilab.fr> [Mon, 17 Mar 2014 12:13:14 +0100] rev 9577
[serverctl] use repoapi for db-check, add-source, rebuild-fti commands One more step towards getting rid of dbapi.
(0) -3000 -1000 -300 -100 -60 +60 +100 +300 +1000 +3000 tip