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

All Samples(39)  |  Call(39)  |  Derive(0)  |  Import(0)

src/p/o/pow_devel-HEAD/scripts/blog/BlogPostController.py   pow_devel(Download)
    def list( self, powdict ):
        res = self.model.find_all()
        return self.render(model=self.model, powdict=powdict, list=res)
 
    def blog( self, powdict ):
        res = self.model.find_all()
        return self.render(model=self.model, powdict=powdict, list=res)
    def show( self,powdict ):
        res = self.model.find_by("id",powdict["REQ_PARAMETERS"]["id"])
        return self.render(model=res, powdict=powdict)
 
    def new( self, powdict ):
            exec(statement)
        self.model.create()
        return self.render(model=self.model, powdict=powdict)
 
    def create( self, powdict):
        self.model.__init__()
        return self.render(model=self.model, powdict=powdict)

src/p/o/pow_devel-HEAD/scripts/stuff/PostControllerWithoutLogin.py   pow_devel(Download)
    def list( self, powdict ):
        res = self.model.find_all()
        return self.render(model=self.model, powdict=powdict, list=res)
 
    def blog( self, powdict ):
        res = self.model.find_all()
        return self.render(model=self.model, powdict=powdict, list=res)
    def show( self,powdict ):
        res = self.model.find_by("id",powdict["REQ_PARAMETERS"]["id"])
        return self.render(model=res, powdict=powdict)
 
    def new( self, powdict ):
            self.model.set("image","")     
        self.model.create()
        return self.render(model=self.model, powdict=powdict)
 
    def create( self, powdict):
        self.model.__init__()
        return self.render(model=self.model, powdict=powdict)

src/p/o/pow_devel-HEAD/scripts/stuff/PostController.py   pow_devel(Download)
    def list( self, powdict ):
        res = self.model.find_all()
        return self.render(model=self.model, powdict=powdict, list=res)
 
    def blog( self, powdict ):
        res = self.model.find_all()
        return self.render(model=self.model, powdict=powdict, list=res)
    def show( self,powdict ):
        res = self.model.find_by("id",powdict["REQ_PARAMETERS"]["id"])
        return self.render(model=res, powdict=powdict)
 
    def new( self, powdict ):
            self.model.set("image","")     
        self.model.create()
        return self.render(model=self.model, powdict=powdict)
 
    def create( self, powdict):
        self.model.__init__()
        return self.render(model=self.model, powdict=powdict)

src/p/o/pow_devel-HEAD/stubs/ext/auth/UserController.py   pow_devel(Download)
        return self.render(model=self.model, powdict=powdict, list=res)
 
    def show( self,powdict ):
        res = self.model.find_by("id",powdict["REQ_PARAMETERS"]["id"])
        return self.render(model=res, powdict=powdict)
 
    def new( self, powdict ):
        return self.render(special_tmpl=spectmpl , model=self.model, powdict=powdict)
 
    def create( self, powdict):
        self.model.__init__()
        return self.render(model=self.model, powdict=powdict)
 
    def edit( self, powdict ):
        return self.render(model=res, powdict=powdict)
 
    def update( self, powdict ):
        self.model.__init__()
        #print powdict["REQ_PARAMETERS"]

src/p/o/pow_devel-HEAD/stubs/ext/auth/AuthController.py   pow_devel(Download)
    def register(self, powdict):
        """ registers a User """
        self.model.__init__()
        return self.render(model=self.model, powdict=powdict)
 
    def unregister(self, powdict):
        """ unregisters a User """
        self.model.__init__()
        return self.render(model=self.model, powdict=powdict)
    def login( self, powdict):
        """ shows the Auth_login.tmpl template form """
        self.model.__init__()
        return self.render(model=self.model, powdict=powdict)
 

src/p/o/pow_devel-HEAD/stubs/controllers/AppController.py   pow_devel(Download)
    def welcome( self,powdict ):
        #example of setting a special_template for an action not following the Controller_action.tmpl convention
        #return self.render(special_tmpl="hero.tmpl",model=self.model, powdict=powdict)
        return self.render(model=self.model, powdict=powdict)
 
    def thanks( self ):
        print "Das ist die thanks action"
 
    def howto_start( self,powdict ):
        return self.render(model=self.model, powdict=powdict)

src/p/o/pow_devel-HEAD/scripts/stuff/authenticate_test/auth.py   pow_devel(Download)
    def register(self, powdict):
        """ registers a User """
        self.model.__init__()
        return self.render(model=self.model, powdict=powdict)
 
    def unregister(self, powdict):
        """ unregisters a User """
        self.model.__init__()
        return self.render(model=self.model, powdict=powdict)
    def login( self, powdict):
        """ shows the Auth_login.tmpl template form """
        self.model.__init__()
        return self.render(model=self.model, powdict=powdict)