Issue 2153101
Created on 2008-10-08 12:33 by ksenia_m, last changed 2016-08-13 00:12 by rouilj.
msg2592 |
Author: [hidden] (ksenia_m) |
Date: 2008-10-08 12:33 |
|
Hi,
From the docstring in form_parser.py:
'''
If both the "@note" and "@file" form variables are
specified, the action::
@link@msg-1@files=file-1
is also performed.
'''
Unfortunately when using this action directly on the form (<input type="hidden" name="@link@msg-1@files" value="file-1" />), it doesn't work. The reason: fieldname "@link@msg-1@files" is not matched by regular expression in FV_LABELS.
FV_LABELS = r'''
^(
(?P<note>[@:]note)|
(?P<file>[@:]file)|
(
((?P<classname>%s)(?P<id>[-\d]+))? # optional leading designator
((?P<required>[@:]required$)| # :required
(
(
(?P<add>[@:]add[@:])| # :add:<prop>
(?P<remove>[@:]remove[@:])| # :remove:<prop>
(?P<confirm>[@:]confirm[@:])| # :confirm:<prop>
(?P<link>[@:]link[@:])| # :link:<prop>
([@:]) # just a separator
)?
(?P<propname>[^@:]+) # <prop>
)
)
)
)$'''
|
msg5828 |
Author: [hidden] (rouilj) |
Date: 2016-07-11 01:32 |
|
The file-1 label should be matched by:
((?P<classname>%s)(?P<id>[-\d]+))? # optional leading designator
if you have a class called "file". In the classic schema the file
class is define by:
file = FileClass(db, "file",
name=String())
If you rename "file" things will break.
It is quite possible there is an issue here, but please
verify that you have the proper classes defined.
You have pointed out that @note and @file are coupled to specific
elements of the schema and that is not pointed out anywhere that I
can see in the docs. So that should be fixed.
|
msg5890 |
Author: [hidden] (rouilj) |
Date: 2016-08-13 00:12 |
|
No response from requestor. Closing.
|
|
Date |
User |
Action |
Args |
2016-08-13 00:12:02 | rouilj | set | status: open -> closed resolution: remind -> abandoned messages:
+ msg5890 |
2016-07-11 01:32:40 | rouilj | set | resolution: remind messages:
+ msg5828 components:
+ Documentation nosy:
+ rouilj |
2008-10-08 12:33:00 | ksenia_m | create | |
|