Julien Cristau <julien.cristau@logilab.fr> [Tue, 12 Nov 2013 17:10:16 +0100] rev 9355
Fix use of vreg.config.anonymous_user()
If no anonymous user is declared, anonymous_user() returns 'None, None',
not 'None'.
Julien Cristau <julien.cristau@logilab.fr> [Wed, 04 Dec 2013 19:11:04 +0100] rev 9354
[server] avoid race-condition in timer events
With a granularity of one second, there's a good chance calling
localtime twice will return the same value. We should consider the
event ready immediately if that happens, not wait one second.
Julien Cristau <julien.cristau@logilab.fr> [Wed, 04 Dec 2013 19:14:43 +0100] rev 9353
[server/pyro] try to shutdown the repository properly
If RepositoryServer.trigger_events is not called we might miss a
QuitEvent and thus never shutdown the repository and its looping tasks.
Julien Cristau <julien.cristau@logilab.fr> [Wed, 11 Dec 2013 16:56:18 +0100] rev 9352
[book] remove broken links to web.views.wdoc.ChangeLog{View,Action}
ChangeLogView and ChangeLogAction were removed in 3.16.0 (changeset
fa044b9157d7, https://www.cubicweb.org/2423532)
Closes #3369687
Julien Cristau <julien.cristau@logilab.fr> [Wed, 11 Dec 2013 17:36:59 +0100] rev 9351
[book] fix Session.{set,free}_cnxset autodoc
They're Session methods, not bare functions.
Without this building the docs says:
reading sources... [ 39%] devrepo/repo/sessions
Traceback (most recent call last):
File "/usr/lib/pymodules/python2.7/sphinx/ext/autodoc.py", line 326, in import_object
obj = self.get_attr(obj, part)
File "/usr/lib/pymodules/python2.7/sphinx/ext/autodoc.py", line 232, in get_attr
return safe_getattr(obj, name, *defargs)
File "/usr/lib/pymodules/python2.7/sphinx/util/inspect.py", line 70, in safe_getattr
raise AttributeError(name)
AttributeError: set_cnxset
Traceback (most recent call last):
File "/usr/lib/pymodules/python2.7/sphinx/ext/autodoc.py", line 326, in import_object
obj = self.get_attr(obj, part)
File "/usr/lib/pymodules/python2.7/sphinx/ext/autodoc.py", line 232, in get_attr
return safe_getattr(obj, name, *defargs)
File "/usr/lib/pymodules/python2.7/sphinx/util/inspect.py", line 70, in safe_getattr
raise AttributeError(name)
AttributeError: free_cnxset
Sylvain Thénault <sylvain.thenault@logilab.fr> [Wed, 27 Nov 2013 22:16:26 +0100] rev 9350
cwetype is a *class* property, rename its argument accordingly
Sylvain Thénault <sylvain.thenault@logilab.fr> [Wed, 27 Nov 2013 22:15:58 +0100] rev 9349
typo
Christophe de Vienne <cdevienne@gmail.com> [Wed, 11 Dec 2013 12:22:52 +0100] rev 9348
[req] New method: RequestSessionBase.find().
This method does what find_entities and find_one_entity did, except it
returns the resultset itself.
In addition, it accepts 'reverse_' arguments and check that the relations
actually exists on the entity before executing the query.
Also, reimplement find_one_entity and find_entity based on the new function
so they benefit from the more complete implementation, and deprecate them.
Note: List of values in kwargs are NOT supported in this initial
implementation.
Closes #3361290
Christophe de Vienne <cdevienne@gmail.com> [Wed, 11 Dec 2013 17:52:54 +0100] rev 9347
[rset] New method: ResultSet.one()
This method will return exactly one entity while enforcing its existence and unicity.
The idea is shamelessly borowed from SQLAlchemy Query.one().
Closes #3352314
[jcr: use len(self) instead of len(self.rows)]
Julien Cristau <julien.cristau@logilab.fr> [Wed, 11 Dec 2013 16:45:49 +0100] rev 9346
Added tag cubicweb-debian-version-3.17.11-2 for changeset b02e2912cad5
Julien Cristau <julien.cristau@logilab.fr> [Wed, 11 Dec 2013 16:01:15 +0100] rev 9345
[debian] add lintian override for a false positive
Julien Cristau <julien.cristau@logilab.fr> [Tue, 10 Dec 2013 12:36:50 +0100] rev 9344
[predicates] allow multiple transition names in on_fire_transition (closes #3013720)
Also add a warning about the unimplemented from_state_name argument.
David Douard <david.douard@logilab.fr> [Tue, 19 Nov 2013 09:42:48 +0100] rev 9343
[css] add the entypo font as available ressource (closes #2930356)
This provides a standard set of pictograms for use in CubicWeb and cubes.
To use a pictogram, the "cubicweb.pictograms.css"
must be explicitly loaded (using, e.g. view.add_css(...)).
Nicolas Chauvat <nicolas.chauvat@logilab.fr> [Tue, 10 Dec 2013 11:36:04 +0100] rev 9342
[skeleton i18n] Add PO-Revision-Date header to make emacs po-mode happy
Closes #3276389
Aurelien Campeas <aurelien.campeas@logilab.fr> [Mon, 21 Oct 2013 09:58:26 +0200] rev 9341
[uicfg] give a set_fields_order method to the primary view display control
Hence it is nicely symmetrical with the fields kwargs.
Closes #2741963.
Julien Cristau <julien.cristau@logilab.fr> [Mon, 09 Dec 2013 16:13:10 +0100] rev 9340
merge 3.17.11
Aurelien Campeas <aurelien.campeas@logilab.fr> [Fri, 06 Dec 2013 17:20:59 +0100] rev 9339
Added tag cubicweb-centos-version-3.17.11-1, cubicweb-version-3.17.11, cubicweb-debian-version-3.17.11-1 for changeset 7f67db7c848e
Aurelien Campeas <aurelien.campeas@logilab.fr> [Fri, 06 Dec 2013 15:56:54 +0100] rev 9338
prepare 3.17.11
Julien Cristau <julien.cristau@logilab.fr> [Fri, 18 Oct 2013 17:53:11 +0200] rev 9337
[devtools] write db config through a temporary file
Avoids other test processes reading partially written config and
exploding in pickle.loads. There are still concurrency issues,
presumably with the database itself. Something for another friday.
Julien Cristau <julien.cristau@logilab.fr> [Wed, 13 Nov 2013 12:39:30 +0100] rev 9336
[server] Add missing indices for undo support (closes #3259691)
The tables used by the 'undo' feature were missing some indices, which
among other things triggered repeated sequential scans when deleting old
transactions.
Aurelien Campeas <aurelien.campeas@logilab.fr> [Fri, 06 Dec 2013 15:02:31 +0100] rev 9335
[sqlutils] fix sqlite group_concat harder (related to #3331906)
Aurelien Campeas <aurelien.campeas@logilab.fr> [Thu, 28 Nov 2013 18:55:24 +0100] rev 9334
[sqlutils] avoid a crash with sqlite when using group_concat (closes #3331906)
Aurelien Campeas <aurelien.campeas@logilab.fr> [Thu, 24 Oct 2013 18:28:18 +0200] rev 9333
[server/initrepo] show failed sql statements and abort if necessary (closes #3308564)
Aurelien Campeas <aurelien.campeas@logilab.fr> [Wed, 27 Nov 2013 16:18:54 +0100] rev 9332
[views/table] use cubicweb.ajax.js for pagination
Else we fail in js-land on a "AJAX_PREFIX_URL is not defined".
Closes #3329072.
Julien Cristau <julien.cristau@logilab.fr> [Tue, 03 Dec 2013 13:23:59 +0100] rev 9331
[rset] Fix regression with rset copying (closes #3344410)
Don't override passed-in descriptions in ResultSet.__init__, even if
they're empty.
Christophe de Vienne <cdevienne@gmail.com> [Wed, 04 Dec 2013 14:26:35 +0100] rev 9330
[doc] Fix a sample request
Julien Cristau <julien.cristau@logilab.fr> [Fri, 06 Dec 2013 11:26:57 +0100] rev 9329
[tableview] Don't share column renderers between all instances of a table (closes #3351872)
Julien Cristau <julien.cristau@logilab.fr> [Fri, 06 Dec 2013 11:26:20 +0100] rev 9328
[tableview] Add some unique element to AbstractColumnRenderer.__str__ (related to #3351872)
Otherwise different instances look the same which is confusing.
Sylvain Thénault <sylvain.thenault@logilab.fr> [Thu, 18 Jul 2013 10:22:18 +0200] rev 9327
add failing test case related to #3013554
Sylvain Thénault <sylvain.thenault@logilab.fr> [Tue, 12 Nov 2013 15:24:57 +0100] rev 9326
[web] make sign_text unicode aware, avoid crash with non-ascii chars. Closes #3289774
Denis Laxalde <denis.laxalde@logilab.fr> [Thu, 07 Nov 2013 11:20:59 +0100] rev 9325
[doc] Use string debug mode in debugged docstring
Sylvain Thénault <sylvain.thenault@logilab.fr> [Fri, 25 Oct 2013 12:23:06 +0200] rev 9324
[rql2sql] fix relation table scope when some variable from subquery is used. Closes #3252270
While it feels weird to drop this explicit ColumnAlias handling, hg history has
no clue on its introduction (prior to rev 0) and no older test case fails
without it, so let's drop it.
Aurelien Campeas <aurelien.campeas@logilab.fr> [Wed, 30 Oct 2013 13:05:00 +0100] rev 9323
[cwctl] backout 5d5b3a865eb1, which breaks interactive shell usage
Denis Laxalde <denis.laxalde@logilab.fr> [Mon, 09 Sep 2013 12:43:25 +0200] rev 9322
[ReST] Implement a rql-table reST directive. Closes #3252856
allowing to call table or derivated view specify headers / cellvids. Also, rql
may be split accross several lines which greatly improve readability.
Julien Cristau <julien.cristau@logilab.fr> [Wed, 16 Oct 2013 11:57:47 +0200] rev 9321
[server] drop support for antediluvian lgdb versions
That API was changed in 2010, before logilab-database was moved out of
logilab-common.
Aurelien Campeas <aurelien.campeas@logilab.fr> [Tue, 08 Oct 2013 16:56:45 +0200] rev 9320
[doc/book/security] update description of entity update (Related to #2932033)
Julien Cristau <julien.cristau@logilab.fr> [Fri, 04 Oct 2013 15:29:20 +0200] rev 9319
[test] test can_use_rest_path directly
No need to go through the Entity.rest_path if what we want is to
unittest that one function.
Dimitri Papadopoulos <dimitri.papadopoulos@cea.fr> [Thu, 26 Sep 2013 10:46:37 +0200] rev 9318
[ctl] set proper encoding for sys.stdout/sys.stderr. Closes #1669144
Dimitri Papadopoulos <dimitri.papadopoulos@cea.fr> [Thu, 19 Sep 2013 22:33:52 +0200] rev 9317
[web] typo in config file comment
Denis Laxalde <denis.laxalde@logilab.fr> [Thu, 17 Oct 2013 10:10:25 +0200] rev 9316
[book] Typo and formatting fixes in devrepo/entityclasses/application-logic
Denis Laxalde <denis.laxalde@logilab.fr> [Thu, 10 Oct 2013 16:56:16 +0200] rev 9315
[cwctl] Only start the instance after upgrade if it was running before
Closes #3207676.
Denis Laxalde <denis.laxalde@logilab.fr> [Thu, 24 Oct 2013 09:20:45 +0200] rev 9314
[book] Improve match_rtype selector docstring and "Relation modification related events" section
Dimitri Papadopoulos <dimitri.papadopoulos@cea.fr> [Thu, 24 Oct 2013 11:48:13 +0200] rev 9313
[book] properly escape backslash
Julien Cristau <julien.cristau@logilab.fr> [Thu, 24 Oct 2013 12:56:20 +0200] rev 9312
[test] use assertIn / assertIsInstance
Sylvain Thénault <sylvain.thenault@logilab.fr> [Fri, 25 Oct 2013 11:58:06 +0200] rev 9311
update pylint extension to astroid API
Denis Laxalde <denis.laxalde@logilab.fr> [Thu, 17 Oct 2013 15:09:48 +0200] rev 9310
Fix example in cw_set method
Aurelien Campeas <aurelien.campeas@logilab.fr> [Thu, 24 Oct 2013 12:36:12 +0200] rev 9309
[merge] incorporate cw 3.17.10 fixes
Julien Cristau <julien.cristau@logilab.fr> [Thu, 24 Oct 2013 11:07:57 +0200] rev 9308
Added tag cubicweb-centos-version-3.17.10-1, cubicweb-version-3.17.10, cubicweb-debian-version-3.17.10-1 for changeset fe0e1863a137
Julien Cristau <julien.cristau@logilab.fr> [Wed, 23 Oct 2013 17:24:19 +0200] rev 9307
[pkg] prepare 3.17.10
Julien Cristau <julien.cristau@logilab.fr> [Thu, 10 Oct 2013 10:02:29 +0200] rev 9306
[web] don't rename resources in gen-static-datadir
We should use the result from WebConfiguration.locate_resource to know
which file to copy, not what name to copy it to. The destination file
should be the name of the resource, as the client will request it.
This matters in the case of cubicweb.css which locate_resource might
rewrite to cubicweb.old.css.
Closes #3206129
Julien Cristau <julien.cristau@logilab.fr> [Wed, 23 Oct 2013 14:18:58 +0200] rev 9305
[notification] avoid leaking cnxsets (closes #3243810)
When sending notifications, we get each recipient as either an email
address or a CWUser. In the latter case, we create a temporary session
for that user and use it to send the mail. However, if we later decided
to not send the mail after all, we'd leak the session and its cnxset.
Add a try block inside the loop to make sure the temporary sessions are
closed properly.
Dimitri Papadopoulos <dimitri.papadopoulos@cea.fr> [Tue, 22 Oct 2013 11:59:39 +0200] rev 9304
[book] English fix
Aurelien Campeas <aurelien.campeas@logilab.fr> [Tue, 08 Oct 2013 14:25:05 +0200] rev 9303
[serverctl] complete the schema-diff command with options that will fix & enhance it.
Notably:
- filter out eids (doesn't make sense for the filesystem schema)
- handle permissions, trying to detect the default ones
Needs yams #174042.
Closes #2996547.
Aurelien Campeas <aurelien.campeas@logilab.fr> [Fri, 18 Oct 2013 16:58:48 +0200] rev 9302
[server] deprecate the old multi-source system
It is removed in 3.19.
Closes #2919299
Julien Cristau <julien.cristau@logilab.fr> [Fri, 18 Oct 2013 16:04:23 +0200] rev 9301
[doc] document changed attribute default value storage
Julien Cristau <julien.cristau@logilab.fr> [Mon, 16 Sep 2013 11:58:40 +0200] rev 9300
defaultval migration for sqlite
Aurélien Campeas <aurelien.campeas@logilab.fr> [Fri, 23 Aug 2013 15:06:27 +0200] rev 9299
[schema] store default attribute values in a Bytes field, allowing python objects as default values
Notes:
* Binary objects grow two methods
* we depend on a newer yams version
* the code is quite simplified as a result of the whole change
* a very old and nasty bug where bool(default values) evaluating to
False not being properly migrated is killed
Closes #2414591.
Aurelien Campeas <aurelien.campeas@logilab.fr> [Thu, 17 Oct 2013 16:30:53 +0200] rev 9298
[source/native] fix sqlserver pattern matcher for unique constraints (closes #3227593)
The matcher is used to parse the low-level error message and extract
meaningful information for the end users.
If broken, the users see an alarming and bewildering message.
A full & definitive fix is scheduled for CubicWeb 3.18.
Rémi Cardona <remi.cardona@logilab.fr> [Thu, 17 Oct 2013 10:30:35 +0200] rev 9297
[dbapi] Fix broken inmemory:// URLs parsing (closes #3225832)
ParseResult.path is what comes after the "domain name" in standard URLs.
So in the case of 'inmemory://<instance' URLs, it is always empty.
ParseResult.netloc contains the "domain name" part that we really want.
Sylvain Thénault <sylvain.thenault@logilab.fr> [Thu, 17 Oct 2013 11:34:03 +0200] rev 9296
[metadata hook] rename an operation for the sake of readability
Denis Laxalde <denis.laxalde@logilab.fr> [Wed, 16 Oct 2013 15:50:04 +0200] rev 9295
[book] Typo fix and rephrasing in devrepo/migration
Nicolas Chauvat <nicolas.chauvat@logilab.fr> [Wed, 16 Oct 2013 11:38:06 +0200] rev 9294
[cwshell] rename history file to .cwshell_history (erudi is dead, long live cw)
Aurelien Campeas [Thu, 11 Jul 2013 13:32:27 +0200] rev 9293
[entity] Entity.related(): add a targettypes argument (closes #2957313)
This allows to restrict the entity types returned by the method
(passed to cw_related_rql).
When such an argument is given, no caching happens.
Sylvain Thénault <sylvain.thenault@logilab.fr> [Wed, 28 Aug 2013 12:14:20 +0200] rev 9292
[source configuration] silent lgc 0.60 deprecation warning
Nicolas Chauvat <nicolas.chauvat@logilab.fr> [Tue, 15 Oct 2013 14:02:22 +0200] rev 9291
[web] remove action "Got Rhythm" (closes #3093362)
Julien Cristau <julien.cristau@logilab.fr> [Mon, 07 Oct 2013 10:22:21 +0200] rev 9290
[debian] Break old geocoding
It wants cubicweb.interfaces.
Aurelien Campeas <aurelien.campeas@logilab.fr> [Fri, 11 Oct 2013 18:02:48 +0200] rev 9289
[wsgi] remove ages old hack to set base_url
Its meaning has been lost in the mist of time.
Aurelien Campeas <aurelien.campeas@logilab.fr> [Fri, 11 Oct 2013 18:00:34 +0200] rev 9288
[wsgi] also provide an example using werkzeug (if available)
Related to #3005509.
Aurelien Campeas [Tue, 01 Oct 2013 16:45:58 +0200] rev 9287
[wsgi] add the simplest possible wsgi (debug) server
This server is able to:
* serve on a given port using the stdlib SimpleHTTPServer
* run looping tasks
Closes #3005509.
Aurelien Campeas <aurelien.campeas@logilab.fr> [Thu, 10 Oct 2013 13:46:44 +0200] rev 9286
[querier/security] instrument a bit the querier read security checks
Related to #2920304
Denis Laxalde <denis.laxalde@logilab.fr> [Mon, 30 Sep 2013 14:48:59 +0200] rev 9285
[book] Improve PostgreSQL configuration section
* Do not advice for specific PostgreSQL version (point to meta-packages if
available in Linux distros);
* First mention packages from Linux distros, put the link to official postgres
documentation at the end;
Closes #2725302.
Aurelien Campeas <aurelien.campeas@logilab.fr> [Tue, 08 Oct 2013 14:02:28 +0200] rev 9284
[js] add a selector string escaping function
will help use id strings in jquery selector expressions, e.g:
"foo.[subject]:42" -> "foo\.\[subject\]\:42"
Related to #3154531.
Aurelien Campeas <aurelien.campeas@logilab.fr> [Thu, 10 Oct 2013 13:26:11 +0200] rev 9283
[merge] backport stable fixes
Aurelien Campeas <aurelien.campeas@logilab.fr> [Thu, 10 Oct 2013 13:16:54 +0200] rev 9282
[test/ldapsource] backout 192a748550c7 which broke RQL2LDAPFilterTC
Julien Cristau <julien.cristau@logilab.fr> [Wed, 09 Oct 2013 14:45:36 +0200] rev 9281
[rset] make sure rset.description is always a list
It's more consistent, and avoids pylint warning
"Instance of 'tuple' has no 'append' member"
Julien Cristau <julien.cristau@logilab.fr> [Wed, 09 Oct 2013 16:30:27 +0200] rev 9280
[schema] edit syntax tree instead of playing with strings for RQLExpressions
Lets us support more complex expressions involving e.g. "HAVING" clauses.
Closes #3202855
Aurelien Campeas <aurelien.campeas@logilab.fr> [Thu, 10 Oct 2013 12:40:23 +0200] rev 9279
[py3k] note about future warning on __eq__ vs __hash__
Closes #3179561.
Aurelien Campeas <aurelien.campeas@logilab.fr> [Tue, 01 Oct 2013 12:11:00 +0200] rev 9278
[formfields] py3k kill future compat warning
Related to #3179561.
Aurelien Campeas <aurelien.campeas@logilab.fr> [Thu, 10 Oct 2013 12:42:10 +0200] rev 9277
[entity] do not raise an AssertionError if the kwargs given to set_relations/attributes is empty
Regression was introduced in 3.16 with the new cw_set API.
Old set_relations and set_attributes methods did not crash on empty
kwargs.
Closes #3104019.
Julien Cristau <julien.cristau@logilab.fr> [Thu, 10 Oct 2013 12:30:35 +0200] rev 9276
[packaging] setup.py: don't exclude skeleton/debian/* from being installed
Closes #3192725.
Aurelien Campeas <aurelien.campeas@logilab.fr> [Wed, 11 Sep 2013 18:42:34 +0200] rev 9275
[tests/hooks/integrity] kill old and empty skipped test
Aurelien Campeas <aurelien.campeas@logilab.fr> [Wed, 09 Oct 2013 17:42:01 +0200] rev 9274
[server/session] demote log to debug
It can pollute the log very fast.
Closes #3203391.
Sylvain Thénault <sylvain.thenault@logilab.fr> [Thu, 01 Aug 2013 13:58:48 +0200] rev 9273
[test] use assertCountEqual instead of assertItemsEqual
Julien Cristau <julien.cristau@logilab.fr> [Thu, 10 Oct 2013 12:30:02 +0200] rev 9272
[server] fix a number of typos, mostly in docstrings
Denis Laxalde <denis.laxalde@logilab.fr> [Mon, 07 Oct 2013 15:13:51 +0200] rev 9271
[skeleton] Install cubes README in Debian packages (Closes #3171971)
Denis Laxalde <denis.laxalde@logilab.fr> [Thu, 10 Oct 2013 11:23:01 +0200] rev 9270
[debian] Build-Depends on python-unittest2 | python (>= 2.7)
Closes #3175895.
Paul Tonelli <paul.tonelli@logilab.fr> [Thu, 29 Aug 2013 18:28:10 +0200] rev 9269
[doc] typos and reformulation
Paul Tonelli <paul.tonelli@logilab.fr> [Thu, 29 Aug 2013 18:26:06 +0200] rev 9268
[doc] additional documentation about pip install
under both Windows and Debian
Rémi Cardona <remi.cardona@logilab.fr> [Fri, 30 Aug 2013 15:34:58 +0200] rev 9267
spelling: rollbacked -> rolled back
Julien Cristau <julien.cristau@logilab.fr> [Wed, 09 Oct 2013 12:10:44 +0200] rev 9266
Added tag cubicweb-version-3.17.9, cubicweb-debian-version-3.17.9-1 for changeset 5668d210e49c
Julien Cristau <julien.cristau@logilab.fr> [Wed, 09 Oct 2013 11:13:56 +0200] rev 9265
merge two default heads
Julien Cristau <julien.cristau@logilab.fr> [Tue, 08 Oct 2013 18:10:20 +0200] rev 9264
[pkg] prepare 3.17.9
Denis Laxalde <denis.laxalde@logilab.fr> [Fri, 20 Sep 2013 15:42:04 +0200] rev 9263
Use the list of sources instead of an iterator in update-feeds looping task
This prevents RuntimeError due to dictionary size change that may occur (as a
result of a new source being added) during iteration.
Closes #3155843.
Sylvain Thénault <sylvain.thenault@logilab.fr> [Tue, 08 Oct 2013 16:10:42 +0200] rev 9262
[security] fix dumb attribute error when inserting read security. Closes #3196891
This has gone undetected because of erroneous tests...
Aurelien Campeas <aurelien.campeas@logilab.fr> [Tue, 08 Oct 2013 10:46:06 +0200] rev 9261
[entity] give a default reasonnable __eq__ and __hash__ to Entity
Using the eid.
Closes #3179560.
Julien Cristau <julien.cristau@logilab.fr> [Fri, 04 Oct 2013 18:16:45 +0200] rev 9260
[debian] add some Breaks for backwards compatibility removal
The person and comment cubes used to import the cubicweb.mixins module.
The inlinedit cube relied on String.startsWith in javascript.