On Dec 10, 2006, at 10:46 PM, dykang wrote: > 1) session_timeout > > This value is taken in from the config and passed directly in and > taken > at face value by myghtyutils.session. According to the documentation > from pylons and paste deploy, the values in the config file are all > strings, so the timeout value is taken as a string, and when the > following check happens: > if self.timeout is not None and now - self.accessed > > self.timeout:
This has been fixed, I mentioned this on the IRC channel, chiming in here so anyone who was watching this one would know that Beaker now properly coerces the values it can, like this one. So setting it in the config file will work. > 2) session_cookie_expires > > If I want this value to actually work for me, it has to be of type > timedelta or datetime. I am able to set neither of these types in a > config, so I ended up modifying my config.app_config directly prior to > creating my PylonsApp within my project/project/config/middleware.py. > Despite doing this workaround, I was still foiled by another problem. > If I pass in a datetime.timedelta object, the following code gets > triggered: This one is a bit tougher, since the INI format has no spec for setting a data/delta afaik. Which means this can only be set inside an app which is less than ideal. I'll have to consider how this can be handled in the INI file. Probably with a format like +4d 3h, or something like that, as well as have it deal with GMT properly. Cheers, Ben --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "pylons-discuss" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/pylons-discuss?hl=en -~----------~----~----~----~------~----~------~--~---
