Re: Authkit 0.3.0pre5dev_r92 + Pylons 0.9.6rc2 doesn't works?

2007-10-03 Thread Jose Figueras
Hi James, Well, I'd updated to authkit 0.4.0. But I can't to create authkit's model tables following pylons wiki documentation (http://wiki.pylonshq.com/display/pysbook/Authentication +and+Authorization) because, when I execute paster setup-app development.ini, appears this error: Traceback

Re: Authkit 0.3.0pre5dev_r92 + Pylons 0.9.6rc2 doesn't works?

2007-10-03 Thread Jose Figueras
Hi James, Well, I'd updated to authkit 0.4.0. But I can't to create authkit's model tables following pylons wiki documentation (http://wiki.pylonshq.com/display/pysbook/Authentication +and+Authorization) because, when I execute paster setup-app development.ini, appears this error: Traceback

Authkit 0.3.0pre5dev_r92 + Pylons 0.9.6rc2 doesn't works?

2007-09-27 Thread Jose Figueras
Hello, Following authkit documentation (see http://wiki.pylonshq.com/display/pysbook/Authentication+and+Authorization), it's impossible to me add security in my pylons app: 1) if I include authentication code I, ever, receive 401 error: authkit.authorize.NotAuthenticatedError: 401

Re: SQLAlchemy 0.3 transactions inside Pylons controllers

2007-09-08 Thread Jose Figueras
t = context.session_context.current.create_transaction() try: ... (some db or models operations and flush() invocations) t.commit() except: t.rollback() ... (optionally, raise some user or system exception) Jose F. On 7 sep, 00:38, Jose Figueras [EMAIL PROTECTED] wrote: In one

SQLAlchemy 0.3 transactions inside Pylons controllers

2007-09-06 Thread Jose Figueras
In one of my controller I need to use SQLAlchemy transactions. How must I proceed? Where's the transaction object? Regards, Jose F. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups pylons-discuss group. To post

Re: Updated SQLAlchemy for people in a hurry

2007-08-20 Thread Jose Figueras
I found some errors with version 117 of this document: - doesn't works if I use some authorization template (pylons_elixir, tesla_auth). Authorization code try to initialize model infraestructure before environment initialization (before config['pylons.g'].sa_engine = ... it's executed) -

Re: CSS/Javascript in Pylons

2007-08-17 Thread Jose Figueras
Great!!! Sounds good. Thank you, Jose F. --~--~-~--~~~---~--~~ 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,

Re: CSS/Javascript in Pylons

2007-08-16 Thread Jose Figueras
OK, but: 1. what if I use 50+ pages? I need to write 50+ if clauses 2. when I add a new page, I must to remember to add a new if clause 3. my pages def (style with CSS, behaviour with Javascript and content with HTML) are distributed in 2+ documents. This is not the better case for me.

Re: using tesla_auth: table name too long?

2007-08-11 Thread Jose Figueras
Hi, My working solution was to define table's names myself. Here is the diff output: 10c10,12 has_and_belongs_to_many('groups', of_kind='Group', inverse='members') --- has_and_belongs_to_many('groups', of_kind='Group', inverse='members', tablename='security_users_groups')

Re: Download area

2007-08-11 Thread Jose Figueras
Hi, I'm sorry but doesn't works for me. My solution was to transform my pylons (or paste or wsgi?) app into a composite app (for reference, you can see 'paste deploy' documentation): [-- development.ini --] [composite:main] use = egg:Paste#urlmap / = all /download = downloads

Global Authkit app protection

2007-06-17 Thread Jose Figueras
Following Authkit with Pylons article (and a mixture of other articles, docs, etc) If I try to protect my whole application I see this strange error: exceptions.AssertionError: Forwarding loop detected; '/signin' visited twice (internal redirect path: ['/public', '/signin']) . But WSGI chain