Beispiel #1
0
def clientLogin():
    account = Account.all().get()

    if account:
        client = gdata.youtube.service.YouTubeService()
        client.email = account.email
        client.password = account.password
        client.source = YOUTUBE_SOURCE
        client.developer_key = YOUTUBE_DEVELOPER_KEY
        client.client_id = YOUTUBE_CLIENT_ID
        client.ProgrammaticLogin()
        
        return client
    
    else:
        return None
Beispiel #2
0
def youtubeAccount(request):
    accounts = Account.all()
    return render_to_response('admin/archive/youtube_account.html',
                              {'account' : accounts.get()})