Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
cubicweb
cubes
seda
Commits
488fb224e689
Commit
edc56552
authored
Oct 13, 2016
by
Sylvain Thénault
Browse files
Fix display of prevent inheritance with no value specified
parent
e183d3e35d7a
Changes
3
Hide whitespace changes
Inline
Side-by-side
i18n/en.po
View file @
488fb224
...
...
@@ -4507,6 +4507,9 @@ msgstr ""
msgid "prevent all rules"
msgstr ""
msgid "prevent inheritance or not to be specified"
msgstr ""
#, python-brace-format
msgid "prevent rule {0}"
msgstr ""
...
...
i18n/fr.po
View file @
488fb224
...
...
@@ -4525,6 +4525,9 @@ msgstr ""
msgid "prevent all rules"
msgstr "bloquer toutes les règles"
msgid "prevent inheritance or not to be specified"
msgstr "blocage de l'héritage libre"
#, python-brace-format
msgid "prevent rule {0}"
msgstr "bloquer la règle {0}"
...
...
views/mgmt_rules.py
View file @
488fb224
...
...
@@ -101,8 +101,10 @@ class RuleComplexLinkEntityAttributeView(viewlib.TextEntityAttributeView):
# alternatives.append(_('XXX prevent to be specified'))
if
prevent
.
prevent_inheritance
:
alternatives
.
append
(
xml_escape
(
_
(
'prevent all rules'
)))
else
:
el
if
prevent
.
prevent_inheritance
is
Fal
se
:
alternatives
.
append
(
xml_escape
(
_
(
"don't prevent inheritance"
)))
else
:
# unspecified
alternatives
.
append
(
xml_escape
(
_
(
"prevent inheritance or not to be specified"
)))
non_rules
=
[]
for
non_rule
in
ctrl
.
reverse_seda_ref_non_rule_id_from
:
if
non_rule
.
seda_ref_non_rule_id_to
:
...
...
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