'networks':None,
'peer':None,
'pubkey':(lambda n,v:"key %s;\n"%v),
+ 'address':None,
'mobile':sp,
})
require_properties={
'dh':"Diffie-Hellman group",
'contact':"Site admin contact address",
- 'address':"Site external access address",
'networks':"Networks claimed by the site",
'hash':"hash function",
'peer':"Gateway address of the site",
def pfilepath(pathname,allow_include=False):
f=open(pathname)
- pfile(pathname,f.readlines(),allow_include=allow_include)
+ lines=f.readlines()
+ pfile(pathname,lines,allow_include=allow_include)
f.close()
+ return lines
def pfile(name,lines,allow_include=False):
"Process a file"
if not ok:
print "caller not in group %s"%group
sys.exit(1)
- pfilepath(header,allow_include=True)
+ headerinput=pfilepath(header,allow_include=True)
userinput=sys.stdin.readlines()
pfile("user input",userinput)
else: