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
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
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
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
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
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)
-
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,
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.
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')
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
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
11 matches
Mail list logo