Did I find the right examples for you? yes no

All Samples(59)  |  Call(54)  |  Derive(0)  |  Import(5)

src/v/e/Vealous-HEAD/vealous/god/main.py   Vealous(Download)
 
from utils import be_god
from utils.render import render
from utils.handler import WebHandler
from god.disqus import Disqus
        path = get_path(self.request, 'login.html')
        rdic['gurl'] = users.create_login_url(self.request.url)
        return self.response.out.write(render(path,rdic))
    def post(self):
        password = dbs.Vigo.get('password')
        rdic['message'] = message
        path = get_path(self.request, 'login.html')
        return self.response.out.write(render(path,rdic))
 
class Logout(WebHandler):
        if comments is not None:
            rdic['comments'] = comments
            return self.response.out.write(render(path,rdic))
        disqus_key = config.disqus_userkey
        disqus_forumid = config.disqus_forumid
        memcache.set('disqus$comments', comments, 10800) # 3 hours
        rdic['comments'] = comments
        return self.response.out.write(render(path,rdic))
 
class ViewArticle(WebHandler):

src/v/e/Vealous-HEAD/vealous/service/blog.py   Vealous(Download)
from google.appengine.api import urlfetch
 
from utils.render import render
from utils.handler import BaseHandler
import dbs
        rdic['navs'] = get_navs()
        path = get_path(self.is_mobile, 'index.html')
        html = render(path, rdic)
        self.response.out.write(html)
 
            path = get_path(self.is_mobile, '404.html')
            self.response.set_status(404)
            html = render(path, rdic)
            return self.response.out.write(html)
        mode = self.request.get('mode','mark')
        rdic['data'] = data
        path = get_path(self.is_mobile, 'article.html')
        html = render(path, rdic)
        self.response.out.write(html)
 
            path = get_path(self.is_mobile, '404.html')
            self.response.set_status(404)
            html = render(path, rdic)
            return self.response.out.write(html)
        rdic['mvdata'] = mvdata

src/v/e/Vealous-HEAD/vealous/service/utils.py   Vealous(Download)
from google.appengine.api import urlfetch
 
from utils.render import render
from utils import Paginator
from libs import twitter
        rdic['mvdata'] = Paginator(data, 30, p)
        path = get_path(self.request, 'utils_dict.html')
        self.response.out.write(render(path,rdic))
 
class UtilsTwitter(webapp.RequestHandler):
        rdic['tweets'] = self.tweets()
        path = get_path(self.request, 'utils_twitter.html')
        self.response.out.write(render(path,rdic))
 
    def tweets(self):
        rdic['tweets'] = self.tweets(username)
        path = get_path(self.request, 'utils_twitter.html')
        self.response.out.write(render(path,rdic))
 
    def tweets(self, username):

src/v/e/Vealous-HEAD/vealous/god/twitter.py   Vealous(Download)
from utils import be_god
from utils.handler import WebHandler
from utils.render import render
from god import get_tpl
import config
        rdic['profile'] = profile
        rdic['username'] = username
        return self.response.out.write(render(path, rdic))
 
class UserStatus(WebHandler):
            memcache.set('twitter$profile$'+username, profile, 86400)
        rdic['profile'] = profile
        return self.response.out.write(render(path, rdic))
 
class Mentions(WebHandler):
        rdic['profile'] = profile
        rdic['username'] = username
        return self.response.out.write(render(path, rdic))
 
class Directs(WebHandler):
            memcache.set('twitter$directs', statuses, 240)
        rdic['statuses'] = statuses
        return self.response.out.write(render(path, rdic))
 
class Favorites(WebHandler):

src/v/e/Vealous-HEAD/vealous/god/douban.py   Vealous(Download)
from utils import be_god
from utils.handler import WebHandler
from utils.render import render
from god import get_path
import config
            memcache.set('douban/miniblogs', miniblogs, 240)
        rdic['miniblogs'] = miniblogs
        return self.response.out.write(render(path, rdic))
 
class Login(WebHandler):