Exemplo n.º 1
0
#!/use/bin/env python
# coding:utf-8
# time: test1.py

import sys
sys.path.append("../api")

from dbapi import dbAPI
tmp = dbAPI()
#print type(tmp.pullUserID("harry"))
#print tmp.searchUser("harry")
#print tmp.login("admin", "123456")

#print type(tmp.pullthemeid("conference_1"))
#print tmp.searchPerson("harry")
#print tmp.searchtheme("conference_1")
#print tmp.searchUser("harry")
#print tmp.applytheme("conference_1", "harry")
#print tmp.discuss("conference_1", "harry", "haha")
print tmp.discussinfo("haha")
print tmp.discussfilter("haha")
print tmp.rmdiscuss(1, "conference_1", "harry")

Exemplo n.º 2
0
 def setUp(self):
     self.api = dbAPI()
Exemplo n.º 3
0
#!/usr/bin/env python
# coding:utf-8

import sys
sys.path.append("../api")
from dbapi import dbAPI

db = dbAPI()

from flask import Flask, render_template
from flask.ext.bootstrap import Bootstrap
 
app = Flask(__name__)
bootstrap = Bootstrap(app)
 
@app.route("/")
@app.route("/index")
@app.route("/index.html")
def index():
    return render_template('index.html')

@app.route("/signin")
@app.route("/signin.html")
def signin():
    return render_template('signin.html')

@app.route("/signup")
@app.route("/signup.html")
def signup():
    return render_template('signup.html')