# Path: util/oauth.py
# class weibo(oauthbase):
# class douban(oauthbase):
#     def get_current_user_info(self,access_token):
#     def post(self,content):
#     def get_current_user_info(self,access_token):
#     def post(self,content):
# def createClientWithName(name,user=None):


import web
import traceback
from util import oauth
# /auth/redirect/(douban|weibo)
class auth_redirect:
    def GET(self,name):
        try:
            client = oauth.createClientWithName(name)

# Path: util/oauth.py
# class weibo(oauthbase):
# class douban(oauthbase):
#     def get_current_user_info(self,access_token):
#     def post(self,content):
#     def get_current_user_info(self,access_token):
#     def post(self,content):
# def createClientWithName(name,user=None):


# Path: controller/page/auth_redirect.py
import web
import traceback
from util import oauth

# /auth/redirect/(douban|weibo)
class auth_redirect:
    def GET(self,name):
        try:
            client = oauth.createClientWithName(name)

            url = client.redirect()