示例#1
0
def delete_server(sid):
    server = Server()
    server.id = sid
    server.is_del = 1
    server.persist()
示例#2
0
def delete_server(sid):
    server = Server()
    server.id = sid
    server.is_del = 1 
    server.persist()
示例#3
0
def add_server(server_info):
    server = Server()
    for k, v in server_info.iteritems():
        setattr(server, k, v)
    server.persist()
示例#4
0
def add_server(server_info):
    server = Server()
    for k, v in server_info.iteritems():
        setattr(server, k, v)
    server.persist()