Re: sqlalchemy version in pylons 1.0

2011-06-17 Thread Krishnakant Mane
Hello, I have used version 0.6.X with no problems. so any later versions will not be problems I guess. Happy hacking. KKrishnakant. On 17/06/11 03:00, Wyatt Baldwin wrote: On Thursday, June 16, 2011 10:13:57 AM UTC-7, monax wrote: Hello! What problem can I have if I will use

Re: sqlalchemy version in pylons 1.0

2011-06-17 Thread Grigoriy Tretyakov
Now I will work on newer version of sqla with more confidence. Thanks to all! 2011/6/17 Krishnakant Mane krm...@gmail.com ** Hello, I have used version 0.6.X with no problems. so any later versions will not be problems I guess. Happy hacking. KKrishnakant. On 17/06/11 03:00, Wyatt

ownership authorization

2011-06-17 Thread Jason
Has anyone implemented an authorization check that can look-up whether the current user owns the object they are trying to access? For instance using repoze.what I would have made a custom predicate which retrieves the objects id from request.matchdict['id'] and looks up if the current user

Logging configuration for applications run without paster

2011-06-17 Thread Benjamin Sims
Hello, Thanks for the tips earlier on how to handle Pyramid logging - this was also something that I was having trouble finding the answer for (only being familiar with the very basic style of Python logging). However, I am still having trouble with logging configuration. I have a command line

how to add middleware

2011-06-17 Thread Jason
How do I add custom middleware to Pyramid. I have a function add_auth(app) in myapp.lib.auth and I have tried setting my [pipline:main] section to: [pipeline:main] pipeline = egg:WebError#evalerror egg:myapp.lib.auth.add_auth sales I also tried egg:myapp.lib.auth:add_auth,

Re: ownership authorization

2011-06-17 Thread Thomas G. Willis
I've done it with traversal and didn't need to use repoze.what. Basically you just derive your __acl__ attribute anyway you wish. The trick is getting the user associated with the request, but if you are passing in the request to your root_factory function that shouldn't be too much of a

Re: how to add middleware

2011-06-17 Thread Thomas G. Willis
If you want to do it through the ini file, then you should read up on PasteDeploy. http://pythonpaste.org/deploy/#paste-filter-app-factory -- You received this message because you are subscribed to the Google Groups pylons-discuss group. To view this discussion on the web visit

Re: how to add middleware

2011-06-17 Thread Jason
PasteDeploy's documentation helped, but it was still a little confusing. To add a custom middleware you have to write it like: def auth_filter_factory(global_conf): def add_auth(app): # make wsgi app return app return add_auth and then in the INI file: [pipeline:main]

Pyramid Developer needed

2011-06-17 Thread Raj
Looking to build a medical site that will need ~3-4 weeks of full-time development. Website details: - Has a survey section, and users can add questions to the survey (after the survey, some basic statistics are provided for the survey- taker) - Section to upload/download files - Section where

pyramid_beaker example

2011-06-17 Thread Liju
I googled for an example to configure and use beaker for session, but couldn't find any. I couldn't get it working based on the documentation, so an example will be helpful. -- You received this message because you are subscribed to the Google Groups pylons-discuss group. To post to this group,

Re: ownership authorization

2011-06-17 Thread Jason
I am using url dispatch so it's a little different than using the resources, and I just decided to implement repoze.what because it seems easier than I initially thought (after figuring out how to add the middleware). The only thing I am having trouble with is getting the request in my custom

Pyramid (Beaker) session vs Cache

2011-06-17 Thread Liju
Looks like session and cache have similar job, but cache have more advantages. So why not use cache instead of Session ? Is there a reason to use session instead of cache for storing state/temporary objects that need to live beyond a request/response ? What does major projects use in Pyramid ?

Re: pyramid_beaker example

2011-06-17 Thread Baptiste, Stonly
*in development.ini :* session.cookie_expires = true session.data_dir = %(here)s/data/sessions/data session.lock_dir = %(here)s/data/sessions/lock session.type = cookie #session.auto = true session.key = YourApp_session session.encrypt_key = 'somestring' session.validate_key = 'somepassword' *in