Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(19)  |  Call(0)  |  Derive(16)  |  Import(3)

src/b/n/bnw-HEAD/bnw/web/site.py   bnw(Download)
from bnw.handlers.command_userinfo import cmd_userinfo
 
from bnw.web.base import BnwWebHandler, BnwWebRequest
from bnw.web.auth import LoginHandler, LogoutHandler, requires_auth, AuthMixin
from bnw.web.api import ApiHandler
class UserHandler(BnwWebHandler, AuthMixin):
    templatename = 'user.html'
 
    @defer.inlineCallbacks
    def respond(self, username, reco=None, tag=None):
class UserRecoHandler(BnwWebHandler, AuthMixin):
    templatename = 'user.html'
 
    @defer.inlineCallbacks
    def respond(self, username, tag=None):
class UserInfoHandler(BnwWebHandler, AuthMixin):
    templatename = 'userinfo.html'
 
    @defer.inlineCallbacks
    def respond(self, user):
class MessageHandler(BnwWebHandler, AuthMixin):
    templatename = 'message.html'
 
    @defer.inlineCallbacks
    def respond(self, msgid):

src/b/n/bnw-HEAD/bnw/web/api.py   bnw(Download)
from bnw.core.base import BnwResponse
import bnw.core.bnw_objects as objs
from bnw.web.base import BnwWebRequest, BnwWebHandler
import api_handlers
 
class ApiHandler(BnwWebHandler):
    @defer.inlineCallbacks
    def respond_post(self, cmd_name):
        stime = time.time()
        user = yield objs.User.find_one(

src/b/n/bnw-HEAD/bnw/web/auth.py   bnw(Download)
from twisted.internet import defer
import bnw.core.bnw_objects as objs
from bnw.web.base import BnwWebHandler
 
 
class LoginHandler(BnwWebHandler):
class LogoutHandler(BnwWebHandler):
    def respond(self):
        self.clear_all_cookies()
        self.redirect('/')