not crashing anymore. Still not functionnal though
This commit is contained in:
parent
9bb1804008
commit
dcca4e293f
|
@ -122,7 +122,7 @@ def getphonename():
|
||||||
:return: Phone name
|
:return: Phone name
|
||||||
"""
|
"""
|
||||||
while True:
|
while True:
|
||||||
name = input("What is the phone name? (name will be shown in the upper right corner" : )
|
name = input("What is the phone name? (name will be shown in the upper right corner : ")
|
||||||
if name != "":
|
if name != "":
|
||||||
return name
|
return name
|
||||||
|
|
||||||
|
@ -136,10 +136,28 @@ def getproxy():
|
||||||
if proxy != "":
|
if proxy != "":
|
||||||
return proxy
|
return proxy
|
||||||
|
|
||||||
|
def getlineamount():
|
||||||
|
return int(input("How many phone lines do you have : "))
|
||||||
|
|
||||||
|
def getusername():
|
||||||
|
return input("What is the line username : ")
|
||||||
|
|
||||||
|
def getpassword():
|
||||||
|
return input("What is the line password : ")
|
||||||
|
|
||||||
|
def getlinename():
|
||||||
|
return input("line name : ")
|
||||||
|
|
||||||
|
def getlogourl():
|
||||||
|
return input("Logo URL : ")
|
||||||
|
|
||||||
|
def generatefile(ntp_server,timezone,software_version,phonename,proxy,lineamount,logourl):
|
||||||
|
return True
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
username=[]
|
username=[]
|
||||||
password=[]
|
password=[]
|
||||||
|
linename=[]
|
||||||
mac_address = mac()
|
mac_address = mac()
|
||||||
ntp_server = getntp()
|
ntp_server = getntp()
|
||||||
timezone = gettimezone()
|
timezone = gettimezone()
|
||||||
|
|
Loading…
Reference in a new issue