mirror of
https://gitlab2.federez.net/re2o/re2o
synced 2024-12-25 08:23:46 +00:00
Fix : rename templatetags
This commit is contained in:
parent
25bbb24b91
commit
d0e7a9ea4c
1 changed files with 8 additions and 8 deletions
|
@ -187,18 +187,18 @@ def acl_model_filter(parser, token):
|
||||||
callback = get_callback(tag_name, model)
|
callback = get_callback(tag_name, model)
|
||||||
|
|
||||||
# {% can_create %}
|
# {% can_create %}
|
||||||
oknodes = parser.parse(('can_else', 'can_end'))
|
oknodes = parser.parse(('acl_else', 'acl_end'))
|
||||||
token = parser.next_token()
|
token = parser.next_token()
|
||||||
|
|
||||||
# {% can_create_else %}
|
# {% can_create_else %}
|
||||||
if token.contents == 'can_else':
|
if token.contents == 'acl_else':
|
||||||
konodes = parser.parse(('can_end'))
|
konodes = parser.parse(('acl_end'))
|
||||||
token = parser.next_token()
|
token = parser.next_token()
|
||||||
else:
|
else:
|
||||||
konodes = NodeList()
|
konodes = NodeList()
|
||||||
|
|
||||||
# {% can_create_end %}
|
# {% can_create_end %}
|
||||||
assert token.contents == 'can_end'
|
assert token.contents == 'acl_end'
|
||||||
|
|
||||||
return AclModelNode(callback, oknodes, konodes, *args)
|
return AclModelNode(callback, oknodes, konodes, *args)
|
||||||
|
|
||||||
|
@ -220,18 +220,18 @@ def acl_instance_filter(parser, token):
|
||||||
)
|
)
|
||||||
|
|
||||||
# {% can_create %}
|
# {% can_create %}
|
||||||
oknodes = parser.parse(('can_else', 'can_end'))
|
oknodes = parser.parse(('acl_else', 'acl_end'))
|
||||||
token = parser.next_token()
|
token = parser.next_token()
|
||||||
|
|
||||||
# {% can_create_else %}
|
# {% can_create_else %}
|
||||||
if token.contents == 'can_else':
|
if token.contents == 'acl_else':
|
||||||
konodes = parser.parse(('can_end'))
|
konodes = parser.parse(('acl_end'))
|
||||||
token = parser.next_token()
|
token = parser.next_token()
|
||||||
else:
|
else:
|
||||||
konodes = NodeList()
|
konodes = NodeList()
|
||||||
|
|
||||||
# {% can_create_end %}
|
# {% can_create_end %}
|
||||||
assert token.contents == 'can_end'
|
assert token.contents == 'acl_end'
|
||||||
|
|
||||||
return AclInstanceNode(tag_name, instance_name, oknodes, konodes, *args)
|
return AclInstanceNode(tag_name, instance_name, oknodes, konodes, *args)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue