Re: Akhet 1.0 released

2011-04-07 Thread Blaise Laflamme
Awesome job Mike! On Apr 5, 3:10 am, Mike Orr sluggos...@gmail.com wrote: Akhet 1.0 is here. It's an application skeleton (application template) for Pyramid that's closer to the Pylons 1 style than Pyramid's built-in skeletons. The manual also tries to be a gentler introduction to Pyramid for

Problem with Pyramid on Debian Lenny (AttributeError: 'alias' object has no attribute '_attributes')

2011-04-07 Thread Timo Stollenwerk
Hi, I get the following error message: AttributeError: 'alias' object has no attribute '_attributes' when I try to access a Pyramid app on Debian Lenny in my browser. Steps to reproduce: --- $ virtualenv --no-site-packages pyramidtest $ cd pyramidtest $ bin/pip install pyramid

session, beaker cookie expiration and remember me

2011-04-07 Thread Oliver Christen
Dear all I have been asked to implement a way for user to be able to stay logged for a longer period of time if they check a remember me option at log in. I have looked at Pylons's Beaker documentation but I cant find how to modify the session cookie expiration date during runtime. I would be

add_route and view_attr

2011-04-07 Thread Eric Lemoine
Hi I have view class defined as follows: class Entry(object): def __init__(self, request): self.request = request self.debug = debug in request.params lang = request.params.get(lang, request.registry.settings.get(default_locale_name))

Re: add_route and view_attr

2011-04-07 Thread Eric Lemoine
On Thursday, April 7, 2011, Gael Pasgrimaud g...@gawel.org wrote: Hi, On Thu, Apr 7, 2011 at 4:47 PM, Eric Lemoine eric.lemo...@camptocamp.com wrote: Hi I have view class defined as follows: class Entry(object):    def __init__(self, request):        self.request = request        

Re: add_route and view_attr

2011-04-07 Thread Michael Merickel
To solve your problem you probably just need to remove the view_attr from add_route and call config.scan(). The problem here is the ambiguity in add_route because it supports routes and the ability to add a single view. Rather add_view and view_config are identical except that view_config

Re: session, beaker cookie expiration and remember me

2011-04-07 Thread cd34
In Pyramid, http://docs.pylonsproject.org/projects/pyramid/1.0/api/security.html#pyramid.security.remember you can specify the expiration length in your handler. In Pylons, it depends on the auth system you're using. Both authkit and repoze.who/what have hooks that can be modified similarly.

Re: session, beaker cookie expiration and remember me

2011-04-07 Thread Michael Merickel
I know you can set session.cookie_expires on a per-session basis. Michael On Thu, Apr 7, 2011 at 7:31 AM, Oliver Christen oliver.chris...@camptocamp.com wrote: Dear all I have been asked to implement a way for user to be able to stay logged for a longer period of time if they check a