Commit 5c93711e authored by Franco Fichtner's avatar Franco Fichtner

scripts: description and legacy map is no more

parent 47a5b9ad
...@@ -35,22 +35,11 @@ def recursiveParseForm(xmlNode): ...@@ -35,22 +35,11 @@ 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 aclMap = dict()
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()
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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment