Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

User Authentication in Pylons + AuthKit

I am trying to create a web application using Pylons and the resources on the web point to the PylonsBook page which isn't of much help. I want authentication and authorisation and is there anyway to setup Authkit to work easily with Pylons?

I tried downloading the SimpleSiteTemplate from the cheeseshop but wasn't able to run the setup-app command. It throws up an error:

  File "/home/cnu/env/lib/python2.5/site-packages/SQLAlchemy-0.4.7-py2.5.egg/sqlalchemy/schema.py", line 96, in __call__
    table = metadata.tables[key]
AttributeError: 'module' object has no attribute 'tables'

I use Pylons 0.9.7rc1, SQLAlchemy 0.4.7, Authkit 0.4.

like image 740
cnu Avatar asked Sep 06 '08 20:09

cnu


1 Answers

Ok, another update on the subject. It seems that the cheeseshop template is broken. I've followed the chapter you linked in the post and it seems that authkit is working fine. There are some caveats:

  1. sqlalchemy has to be in 0.5 version
  2. authkit has to be the dev version from svn (easy_install authkit==dev)

I managed to get it working fine.

like image 158
Bartosz Radaczyński Avatar answered Sep 28 '22 08:09

Bartosz Radaczyński