本文整理汇总了Python中DBManager.DBManager.connectToDBServer方法的典型用法代码示例。如果您正苦于以下问题:Python DBManager.connectToDBServer方法的具体用法?Python DBManager.connectToDBServer怎么用?Python DBManager.connectToDBServer使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类DBManager.DBManager
的用法示例。
在下文中一共展示了DBManager.connectToDBServer方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: DBManager
# 需要导入模块: from DBManager import DBManager [as 别名]
# 或者: from DBManager.DBManager import connectToDBServer [as 别名]
from app import app
from flask import render_template, request
from DBManager import DBManager
from Credentials import Credentials
import pyorient
dbName = "finaldb"
dbUser = "admin"
dbPassword = "admin"
dbManager = DBManager(Credentials())
dbManager.connectToDBServer()
dbManager.client.db_open(dbName, dbUser, dbPassword)
@app.route('/')
@app.route('/index')
def email():
return render_template("interface.html")
@app.route('/', methods=['POST'])
def email_post():
depthLevel = 3;
artist_name = request.form["artistName"].title()
queryType = "in" if (request.form["queryTypeSelector"] == "Influencers") else "out"
treeInformation = getTree(depthLevel, artist_name.encode('utf-8'), -1, '', 0, queryType);
return render_template("results.html", title = 'Home', artist=artist_name, treeData=treeInformation)
@app.route('/slides')
def slides():