Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Extra paster templates for pylons
Python
Branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
PylonsTemplates
MANIFEST.in
README
setup.cfg
setup.py

README

PylonsTemplates gives you additional paster templates for Pylons applications.
(Right now, there is one.)

Once the PylonsTemplates module is installed, you can create new Pylons
projects like this:

    paster create -t <templatename> <projectname>

pylons_repoze_what
------------------

Based on the default Pylons paster template, the pylons_repoze_what template
implements a working authorization system based on repoze.what and
repoze.what-quickstart. (Authentication by repoze.who is automatically set
up as well.) The template generates:

* User, Group and Permission models for SQLALchemy
* A login (& logout) controller
* A minimal template for the login form.
* A package dependency on repoze.what-pylons, which includes decorators
  you can use on controllers and actions.
* Commented out sample code in websetup.py that creates a user, group,
  and permission.


MORE DOCUMENTATION

http://what.repoze.org/docs/1.x/
http://code.gustavonarea.net/repoze.what-pylons/


QUICK EXAMPLE OF REPOZE.WHAT-PYLONS USAGE

from repoze.what.predicates import has_permission
from repoze.what.plugins.pylonshq import ActionProtector

class HelloWorldController(BaseController):
    @ActionProtector(has_permission('be_cool'))
    def index(self):
        return 'Hello World'
Something went wrong with that request. Please try again.