-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 10 Sep 2009, at 18:59, travis+ml-pyl...@subspacefield.org wrote:

> I could use some more complete examples.


Sure. There's Shabti:

PyPi: http://pypi.python.org/pypi/Shabti/0.3.2c  - for Pylons 0.9.7  
users

Bitbucket repos: http://bitbucket.org/gjhiggins/shabti/wiki/Home - for  
users of Pylons tip

Sphinxified docs: http://bel-epa.com/shabtidocs/ - presents a  
narrative description of each template

Shabti is a collection of Pylons add-ons in the form of project  
templates that, on "paster create", result in an configured and  
augmented Pylons app to play with. It's just basic functionality but  
you can use it as an example for your own code (or not, as the case  
may be).

Along the lines of TG1's basic "Identity", the Shabti templates use a  
standard basic auth'n'auth  pattern originally implemented in the  
tesla-pylons-elixir [1] project. The first 5 templates listed below  
use Elixir for the modelling but switching back to straight SQLA isn't  
difficult.

1. Tesla Basic auth'n'auth:  form(forwarding) and cookie-based

http://bel-epa.com/shabtidocs/shabti_templates/shabti_auth.html

2. Tesla Row-level auth: as above with experimental row-level  
authorisation.

http://bel-epa.com/shabtidocs/shabti_templates/shabti_auth_xp.html

3. Repoze.who example of authentication, using the above Identity model

http://bel-epa.com/shabtidocs/shabti_templates/shabti_auth_repozewho.html

4.Repoze.what auth model (adds authorisation to the above repoze.who  
authentication)

http://bel-epa.com/shabtidocs/shabti_templates/shabti_auth_repozewhat.html

5. Gustavo Narea's repoze - pylons quickstart: based on repoze-wh[o| 
at] and tailored for a Pylons basic auth'n'auth kit.

http://bel-epa.com/shabtidocs/shabti_templates/shabti_auth_repozepylons.html

6. The basic Identity model and auth'n'auth but using CouchDB

http://bel-epa.com/shabtidocs/shabti_templates/shabti_auth_couchdb.html

7. The basic Identity model and auth'n'auth as above, but using  
RDFAlchemy's Object-RDF-Mapper

http://bel-epa.com/shabtidocs/shabti_templates/shabti_auth_rdfalchemy.html

8. A microsite --- as 1. (above) but with a Page model plus tw.forms,  
validation, etc, A pre-assembled limited example kit to play with.

http://bel-epa.com/shabtidocs/shabti_templates/shabti_microsite.html

9. AuthKit 0.4.6. It seems to work for me

http://bel-epa.com/shabtidocs/shabti_templates/shabti_authkit.html

With all of the above auth / auth'n'auth schemes, you should try 'em  
out wearing heavy nailed boots before you decide on their suitability  
for your purposes.

The source code for Kai, the PylonsHQ web site is also available on  
bitbucket. Kai has CouchDB-based auth'n'auth and offers self-signup  
and other user self-admin facilities such as forgotten password email,  
etc.

http://bitbucket.org/bbangert/kai/


HTH.

Cheers,

Graham

http://www.linkedin.com/in/ghiggins




-----BEGIN PGP SIGNATURE-----

iEYEARECAAYFAkqpblMACgkQOsmLt1NhivwJLQCffMSX/cUwvIppM8xrvjJ8Ls3v
7TIAnRBO+bmYafWPIjmWXVNptzY/WkZYiQCVAgUBSqluU1nrWVZ7aXD1AQKNkQQA
uyQ6NSNKwD+IndyAXbFUud78Wfmzv3o1P1tqsnjzgM0fMxpyDx4NFdy1kizcRnhm
vinR96zWRqUcHJ5M0iD+AlOFBU2z/o2NVlaCEkbvTZxhADzwEZZZf6jsPY4EKuXR
hOnXywoAuPEjwqpk/qNv5O1RWdafQRIo8XRv+k32pIs=
=jQad
-----END PGP SIGNATURE-----


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To post to this group, send email to pylons-discuss@googlegroups.com
To unsubscribe from this group, send email to 
pylons-discuss+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/pylons-discuss?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to