adding comment's
This commit is contained in:
parent
dcca4e293f
commit
c8f803b9cb
|
@ -137,21 +137,52 @@ def getproxy():
|
||||||
return proxy
|
return proxy
|
||||||
|
|
||||||
def getlineamount():
|
def getlineamount():
|
||||||
|
"""
|
||||||
|
Function will allow to run in a loop to get the data for all lines
|
||||||
|
:return:
|
||||||
|
"""
|
||||||
return int(input("How many phone lines do you have : "))
|
return int(input("How many phone lines do you have : "))
|
||||||
|
|
||||||
def getusername():
|
def getusername():
|
||||||
|
"""
|
||||||
|
can run undefined amount of times. Get's username
|
||||||
|
:return:
|
||||||
|
"""
|
||||||
return input("What is the line username : ")
|
return input("What is the line username : ")
|
||||||
|
|
||||||
def getpassword():
|
def getpassword():
|
||||||
|
"""
|
||||||
|
can run undefined amount of times. Get's password
|
||||||
|
:return:
|
||||||
|
"""
|
||||||
return input("What is the line password : ")
|
return input("What is the line password : ")
|
||||||
|
|
||||||
def getlinename():
|
def getlinename():
|
||||||
|
"""
|
||||||
|
can run undefined amount of times. Get's line name
|
||||||
|
:return:
|
||||||
|
"""
|
||||||
return input("line name : ")
|
return input("line name : ")
|
||||||
|
|
||||||
def getlogourl():
|
def getlogourl():
|
||||||
|
"""
|
||||||
|
Logo URL for the PNG URL
|
||||||
|
:return:
|
||||||
|
"""
|
||||||
return input("Logo URL : ")
|
return input("Logo URL : ")
|
||||||
|
|
||||||
def generatefile(ntp_server,timezone,software_version,phonename,proxy,lineamount,logourl):
|
def generatefile(ntp_server,timezone,software_version,phonename,proxy,lineamount,logourl):
|
||||||
|
"""
|
||||||
|
Takes all the data and generates the final file
|
||||||
|
:param ntp_server:
|
||||||
|
:param timezone:
|
||||||
|
:param software_version:
|
||||||
|
:param phonename:
|
||||||
|
:param proxy:
|
||||||
|
:param lineamount:
|
||||||
|
:param logourl:
|
||||||
|
:return:
|
||||||
|
"""
|
||||||
return True
|
return True
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
|
|
Loading…
Reference in a new issue