Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
lang
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
lang
Commits
5c93711e
Commit
5c93711e
authored
Nov 23, 2016
by
Franco Fichtner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
scripts: description and legacy map is no more
parent
47a5b9ad
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
13 deletions
+2
-13
acl.py
scripts/plugins/acl.py
+2
-13
No files found.
scripts/plugins/acl.py
View file @
5c93711e
...
@@ -35,23 +35,12 @@ def recursiveParseForm(xmlNode):
...
@@ -35,23 +35,12 @@ def recursiveParseForm(xmlNode):
for
tag
in
recursiveParseForm
(
childNode
):
for
tag
in
recursiveParseForm
(
childNode
):
yield
tag
yield
tag
if
xmlNode
.
tag
==
'
description
'
:
if
xmlNode
.
tag
==
'
name
'
:
yield
xmlNode
.
text
yield
xmlNode
.
text
def
getTranslations
(
root
):
def
getTranslations
(
root
):
import
json
filename
=
'
%
s/opnsense/mvc/app/models/OPNsense/Core/ACL_Legacy_Page_Map.json'
%
root
try
:
aclMap
=
json
.
loads
(
open
(
filename
)
.
read
())
except
IOError
:
aclMap
=
dict
()
aclMap
=
dict
()
for
aclKey
in
aclMap
.
keys
():
if
aclMap
[
aclKey
]
.
has_key
(
'descr'
):
yield
aclMap
[
aclKey
][
'descr'
]
import
os
import
os
import
xml.etree.ElementTree
as
ET
import
xml.etree.ElementTree
as
ET
...
...
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