本文整理汇总了Python中server.Server.readproperties方法的典型用法代码示例。如果您正苦于以下问题:Python Server.readproperties方法的具体用法?Python Server.readproperties怎么用?Python Server.readproperties使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类server.Server
的用法示例。
在下文中一共展示了Server.readproperties方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: servpropout
# 需要导入模块: from server import Server [as 别名]
# 或者: from server.Server import readproperties [as 别名]
def servpropout():
userquer = User.query.filter_by(cust_id=session['userid']).first()
orderquer = Order.query.filter_by(cust_id=session['userid']).first()
port = Port.query.filter_by(port_id=orderquer.port_id).first()
server = Serverreserve.query.filter_by(server_id=port.server_id).first()
serverip = server.server_ip
serv = Server()
user = session['username']
output = serv.readproperties(serverip, user)
time.sleep(1)
return render_template('servpropout.html', output=output)
示例2: manage
# 需要导入模块: from server import Server [as 别名]
# 或者: from server.Server import readproperties [as 别名]
def manage():
user = session['username']
serv = Server()
properties = serv.readproperties(user)
if request.method == 'POST':
server = request.form['server']
port = request.form['port']
serv = Server()
user = session['username']
serv.servercreate(server,user,port)
return render_template('manage.html',
user = session['username'],
properties=properties,
#serv = Server()
email = session['email'])