Sylvain Thénault <sylvain.thenault@logilab.fr> [Tue, 26 Jan 2010 20:27:48 +0100] rev 4379
should have been in previous commit (moved below in the module)
Sylvain Thénault <sylvain.thenault@logilab.fr> [Tue, 26 Jan 2010 20:25:56 +0100] rev 4378
[forms] the last touch: handle inlined relation forms as fields
by introducing a simple InlinedRelationField. This makese things
more flexible while removing a lost of overriding necessary.
Sylvain Thénault <sylvain.thenault@logilab.fr> [Tue, 26 Jan 2010 20:22:13 +0100] rev 4377
fix label handling: when label is explicitly set to None, don't try to guess it
Sylvain Thénault <sylvain.thenault@logilab.fr> [Tue, 26 Jan 2010 16:48:41 +0100] rev 4376
surrounding div necessary for proper error localization
Sylvain Thénault <sylvain.thenault@logilab.fr> [Tue, 26 Jan 2010 16:48:06 +0100] rev 4375
cleanup base class
Sylvain Thénault <sylvain.thenault@logilab.fr> [Tue, 26 Jan 2010 16:47:45 +0100] rev 4374
by default use new jquery widgets for Time/Date/DateTime fields
Sylvain Thénault <sylvain.thenault@logilab.fr> [Tue, 26 Jan 2010 16:47:07 +0100] rev 4373
new jquery based widgets for Time/Date/DateTime, backported from crm
Sylvain Thénault <sylvain.thenault@logilab.fr> [Tue, 26 Jan 2010 16:46:12 +0100] rev 4372
introduce a default render implementation on the base widget, which
add_media and then call the newly introduced method
_render(form, field, formrenderer), abstract of the base widget class.
This allow a litle code factorisation and avoid to forget the call to
add_media in subclasses.
Sylvain Thénault <sylvain.thenault@logilab.fr> [Tue, 26 Jan 2010 16:43:51 +0100] rev 4371
[forms] new optional suffix attribute on widget objects, used to generage input name / dom id.
Ease reuse of widgets from another widget. Also move base values computing to
a separated values(form, field) method.
Sylvain Thénault <sylvain.thenault@logilab.fr> [Tue, 26 Jan 2010 16:40:42 +0100] rev 4370
introduce new _ensure_correctly_typed method on fields, responsible
to ensure the value return by the widget is suitable for that kind
of field.
Also factorize date and time fields.
Sylvain Thénault <sylvain.thenault@logilab.fr> [Tue, 26 Jan 2010 16:37:54 +0100] rev 4369
fix typed_value implementation w/ eidparam field which are actual entity's relation and have .value set for their initial value
Sylvain Thénault <sylvain.thenault@logilab.fr> [Tue, 26 Jan 2010 16:36:00 +0100] rev 4368
cleanup module namespace but only importing the formwidgets module
Sylvain Thénault <sylvain.thenault@logilab.fr> [Tue, 26 Jan 2010 13:38:02 +0100] rev 4367
fix deprecation warnings
Sylvain Thénault <sylvain.thenault@logilab.fr> [Tue, 26 Jan 2010 13:36:55 +0100] rev 4366
fif inlined relation forms pb w/ new ajax forms.
We've to ensure the varmaker is properly initialized when generating
a form where we may add new subentities, which will use ajax call to
generate the subform while this subform expect a varmaker to be set.
Sylvain Thénault <sylvain.thenault@logilab.fr> [Tue, 26 Jan 2010 13:34:12 +0100] rev 4365
now that we are property initializing autoform_section for the 'inlined' form type, use it...
Sylvain Thénault <sylvain.thenault@logilab.fr> [Tue, 26 Jan 2010 13:32:54 +0100] rev 4364
[uicfg] fix autoform_section rtags initialization
1. when a relation is marked as inlined in the 'main' form type, we want
its opposite (eg when one the other side of the relation) to be
marked as hidden in the 'inlined' form type
2. when no section is specified for the 'inlined' form type, use the same
as in the 'main' form type
to do this properly, we need two initialization stages. The first one
to handle 1., the second to handle what was done before and 2.
We can't do this in a single stage because we've to know the bare
value of the "opposite" tag.
Sylvain Thénault <sylvain.thenault@logilab.fr> [Tue, 26 Jan 2010 13:27:40 +0100] rev 4363
cache result of the COUNT query used to see if a non unique attribute may be used as rest path on the entity instance to avoid recomputing it later
Sylvain Thénault <sylvain.thenault@logilab.fr> [Tue, 26 Jan 2010 13:26:41 +0100] rev 4362
incontext view of EmailAddress is a mailto: link
Sylvain Thénault <sylvain.thenault@logilab.fr> [Tue, 26 Jan 2010 10:35:46 +0100] rev 4361
add CWProperty for_user CWUser when on the user primary view
Sylvain Thénault <sylvain.thenault@logilab.fr> [Tue, 26 Jan 2010 10:35:23 +0100] rev 4360
move CWProperty rtags from autoform to cwproperties module.
Sylvain Thénault <sylvain.thenault@logilab.fr> [Tue, 26 Jan 2010 10:34:29 +0100] rev 4359
fix Bytes submission pb on POST, due to multiple call to field.process_form_value
for a same field.
In the case of file, stream.read() doesn't return file's data the second time
(since the cursor is at the end of the file).
Fix this by having a generic process_form_value method that cache field's value
in form.formvalues[field] and so _process_form_value is only called once.
You should then override that later method on custom fields.
Sylvain Thénault <sylvain.thenault@logilab.fr> [Tue, 26 Jan 2010 10:30:57 +0100] rev 4358
must skip internal field value from the generic relations combobox
Sylvain Thénault <sylvain.thenault@logilab.fr> [Tue, 26 Jan 2010 10:29:50 +0100] rev 4357
case where 'w' argument is None should be handled in do_paginate
Sylvain Thénault <sylvain.thenault@logilab.fr> [Tue, 26 Jan 2010 10:28:30 +0100] rev 4356
[uicfg] clean dead code, fix indexview_etype_section for ExternalUri and Bookmark
Sylvain Thénault <sylvain.thenault@logilab.fr> [Tue, 26 Jan 2010 10:27:52 +0100] rev 4355
[uicfg] fix reloading pb with the indexview_etype_section
Sylvain Thénault <sylvain.thenault@logilab.fr> [Tue, 26 Jan 2010 10:26:51 +0100] rev 4354
must catch UnmodifiedField exception in has_been_modified
Sylvain Thénault <sylvain.thenault@logilab.fr> [Tue, 26 Jan 2010 10:24:50 +0100] rev 4353
command may now officially be either a string or a list, don't make think it's for backward compat
Sylvain Thénault <sylvain.thenault@logilab.fr> [Tue, 26 Jan 2010 10:24:07 +0100] rev 4352
nicer usage for cubicweb-ctl
Sylvain Thénault <sylvain.thenault@logilab.fr> [Tue, 26 Jan 2010 10:23:38 +0100] rev 4351
get back iterparents implementation from folder cubes
Sylvain Thénault <sylvain.thenault@logilab.fr> [Tue, 26 Jan 2010 10:22:48 +0100] rev 4350
eschema view has been removed
Sylvain Thénault <sylvain.thenault@logilab.fr> [Tue, 26 Jan 2010 10:22:37 +0100] rev 4349
[bfss] make it works when adding/updating entities with an attribute using bfss
Sylvain Thénault <sylvain.thenault@logilab.fr> [Mon, 25 Jan 2010 21:17:44 +0100] rev 4348
d-t-w
Sylvain Thénault <sylvain.thenault@logilab.fr> [Mon, 25 Jan 2010 21:17:15 +0100] rev 4347
fix copyright
Sylvain Thénault <sylvain.thenault@logilab.fr> [Mon, 25 Jan 2010 21:16:42 +0100] rev 4346
XXX quick fix html validation by removing <canvas>
Sylvain Thénault <sylvain.thenault@logilab.fr> [Mon, 25 Jan 2010 19:48:19 +0100] rev 4345
skil internal field value, else we get an error
Sylvain Thénault <sylvain.thenault@logilab.fr> [Mon, 25 Jan 2010 19:36:04 +0100] rev 4344
add source in backup/restore failure message
Sylvain Thénault <sylvain.thenault@logilab.fr> [Mon, 25 Jan 2010 19:28:09 +0100] rev 4343
introduced dependency to lgc > 0.47 for new stacklevel argument to deprecated + new db backup/restore api
Sylvain Thénault <sylvain.thenault@logilab.fr> [Mon, 25 Jan 2010 19:27:30 +0100] rev 4342
handle lgc.adbh api changes within regards of backup/restore:
* new backup_commands method instead of backup_command
* some backend still return command as string as expected by os.system, not subprocess.call
Sylvain Thénault <sylvain.thenault@logilab.fr> [Mon, 25 Jan 2010 19:24:09 +0100] rev 4341
match_rtype hook selector now accepts frometypes/toetypes optional arguments to match only given subject/object entity types
Sylvain Thénault <sylvain.thenault@logilab.fr> [Mon, 25 Jan 2010 19:18:59 +0100] rev 4340
a selector MUST NO return None
Sylvain Thénault <sylvain.thenault@logilab.fr> [Mon, 25 Jan 2010 19:18:33 +0100] rev 4339
some fixes so that deprecation warning are properly localized
Sylvain Thénault <sylvain.thenault@logilab.fr> [Mon, 25 Jan 2010 19:16:35 +0100] rev 4338
to ease overriding of field.choices using *function* (set using autoform_field_kwargs), give the field as named argument
Sylvain Thénault <sylvain.thenault@logilab.fr> [Mon, 25 Jan 2010 19:13:17 +0100] rev 4337
refactor attributes'value generator to deal with yams special
Attribute/NOW/TODAY values that may be used on [Interval]BoundConstraint
(BoundConstraint wasn't handled btw, fix this).
Besides passing 'entity' to generate_* function (needed to get value for
another attribute when computing one for instance):
* set nicer method names and makes clearer what's private/protected/public
* properly handle choices, constraints on float/date/datetime fields
Sylvain Thénault <sylvain.thenault@logilab.fr> [Fri, 22 Jan 2010 14:42:01 +0100] rev 4336
backport stable
Sylvain Thénault <sylvain.thenault@logilab.fr> [Fri, 22 Jan 2010 14:41:08 +0100] rev 4335
backport stable
Sylvain Thénault <sylvain.thenault@logilab.fr> [Fri, 22 Jan 2010 14:40:29 +0100] rev 4334
3.6 api update
Sylvain Thénault <sylvain.thenault@logilab.fr> [Fri, 22 Jan 2010 14:40:14 +0100] rev 4333
[vreg] object_by_id should not have been deprecated. Fix facets.
it was *designed* to be able to force an object retreival when selection
is potentially not possible.
For instance using select instead of object_by_id in get_facet totally
breaks the implementation since in get_facet we've not context result
set, and we ends up with a NoSelectableObject exception.
Adrien Di Mascio <Adrien.DiMascio@logilab.fr> [Fri, 22 Jan 2010 12:25:54 +0100] rev 4332
fix stupid typo ...