Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
OpenGEODE
Commits
5446f062
Commit
5446f062
authored
Sep 17, 2014
by
Maxime Perrotin
Browse files
Relaxed check on CHOICE field access
parent
4349b967
Changes
1
Hide whitespace changes
Inline
Side-by-side
ogParser.py
View file @
5446f062
...
...
@@ -1547,8 +1547,8 @@ def selector_expression(root, context):
field_name
=
root
.
children
[
1
].
text
.
replace
(
'_'
,
'-'
).
lower
()
try
:
if
receiver_bty
.
kind
==
'ChoiceType'
:
warnings
.
append
(
error
(
root
,
'
Wrong syntax for a CHOICE selector.
'
'
U
se "var := {field}: value" instead of '
warnings
.
append
(
warning
(
root
,
'
Choice assignment:
'
'
u
se "var := {field}: value" instead of '
'"var!{field} := value"'
.
format
(
field
=
field_name
)))
for
n
,
f
in
receiver_bty
.
Children
.
viewitems
():
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment