checking in before i do some major restructuring of wifi stuff in the xml/xsd

This commit is contained in:
2019-12-01 05:07:20 -05:00
parent 3e33abe0a6
commit edc78ea18e
10 changed files with 314 additions and 22 deletions

View File

@@ -57,6 +57,20 @@ def isPowerofTwo(n):
return(isPowerOf2)
# custom Jinja2 filters
def j2_isDict(value):
return(isinstance(value, dict))
def j2_isList(value):
return(isinstance(value, list))
j2_filters = {'isDict': j2_isDict,
'isList': j2_isList}
# end custom Jinja2 filters
def kernelCmdline(chroot_base = '/'):
cmds = {}
chroot_base = pathlib.PosixPath(chroot_base)