Time out beaker session?

2009-02-06 Thread Jules Stevenson
Hi All, Is it possible to make the beaker session time out / delete itself after a period of inactivity? I'd like it so that when a user doesn't use the site for x amount of time the session is deleted, forcing the user to re log in [user name is stored in the session]. Many thanks, Jules

Re: pyjamas + pylons

2009-02-06 Thread Jim Washington
lkcl wrote: [ a lot of good stuff] FWIW, here's another few cents about pyjamas, gleaned from using it for a couple of weeks. I found Ian Bicking's JSON-RPC example a good starting point for doing the rpc stuff with pyjamas and repoze.bfg, so I imagine it will work similarly well in pylons.

is there a way to call render with string teamplates?

2009-02-06 Thread Jonathan Vanasco
ie -- instead of passing in a file, passing in a string? the only way i can think of this right now is with a tmpfile, and i'd like to avoid that. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups pylons-discuss

Re: pyjamas + pylons

2009-02-06 Thread Tycon
Easy to work with is questionable when the first thing you encounter is an error during easy install of pyjamas. The menu widget displays incorrectly when you scroll the page (a basic widget and pretty much unusable) and there is no rich text editor. AFAIK no one is using pyjamas for a production

storing formattable strings in the config file?

2009-02-06 Thread Jonathan Vanasco
i want to store something in my config file like foo %(bar)s normally in python, i would do this foo %%(bar)s to escape the string interpolation. paste doesn't like that. anyone have a suggestion. --~--~-~--~~~---~--~~ You received this message

Re: is there a way to call render with string teamplates?

2009-02-06 Thread Dalius Dobravolskas
Hello, On Fri, Feb 6, 2009 at 9:03 PM, Jonathan Vanasco jonat...@findmeon.comwrote: ie -- instead of passing in a file, passing in a string? the only way i can think of this right now is with a tmpfile, and i'd like to avoid that. I'm pretty sure that methods must return string and that's

Re: is there a way to call render with string teamplates?

2009-02-06 Thread Wichert Akkerman
Previously Dalius Dobravolskas wrote: Hello, On Fri, Feb 6, 2009 at 9:03 PM, Jonathan Vanasco jonat...@findmeon.comwrote: ie -- instead of passing in a file, passing in a string? the only way i can think of this right now is with a tmpfile, and i'd like to avoid that. I'm

beaker_cache query_args when duplicate queries are in

2009-02-06 Thread eleith
i've got a controller that will accept multiple same name args in the query string ?id=10id=100id=50 it looks like beaker_cache does not interpret these as different query strings, so ?id=10id=100id=50 will return the same as ?id=10id=100id=20id=50 any recommended workarounds for this? on

Re: is there a way to call render with string teamplates?

2009-02-06 Thread Jonathan Vanasco
ok, this has given me ideas! --~--~-~--~~~---~--~~ 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, send email to

Re: is there a way to call render with string teamplates?

2009-02-06 Thread Mike Orr
On Fri, Feb 6, 2009 at 12:13 PM, Dalius Dobravolskas dalius.dobravols...@gmail.com wrote: Hello, On Fri, Feb 6, 2009 at 9:03 PM, Jonathan Vanasco jonat...@findmeon.com wrote: ie -- instead of passing in a file, passing in a string? the only way i can think of this right now is with a

Re: monit + pylons under Ubuntu 8

2009-02-06 Thread Matt Feifarek
On Mon, Jun 9, 2008 at 3:18 PM, Jonathan Vanasco jonat...@findmeon.comwrote: I'm new to ubuntu, and their syntax for scripts seems to differ from all the examples i've seen floating in the pylons community ( ie. lots of errors ) One thing that might help, is that by default, Ubuntu isn't

Re: monit + pylons under Ubuntu 8

2009-02-06 Thread Mike Orr
On Fri, Feb 6, 2009 at 3:50 PM, Matt Feifarek matt.feifa...@gmail.com wrote: On Mon, Jun 9, 2008 at 3:18 PM, Jonathan Vanasco jonat...@findmeon.com wrote: I'm new to ubuntu, and their syntax for scripts seems to differ from all the examples i've seen floating in the pylons community ( ie.

HOWTO: Installing Pylons on Hardy

2009-02-06 Thread Joshua D. Drake
Hello, I recently had to do this for a customer. It wasn't as easy as it should be, but it was hardly difficult. I have blogged it here if any are interested: http://www.commandprompt.com/blogs/joshua_drake/2009/02/configuring_pylons_on_ubuntu_hardy/ I do make some assumptions in the document

Re: monit + pylons under Ubuntu 8

2009-02-06 Thread Jonathan Vanasco
wow , i totally forgot about this... its been 8 months! i ended up making a shell script to wrap start/stop/restart on paster, and use monit to trigger that i'll post it soon! and i'll look into your supervisor info. in practice, monit is less of a daemon manager than it is a daemon monitor.

Re: is there a way to call render with string teamplates?

2009-02-06 Thread Jonathan Vanasco
well, for this purpose I know that the templates will ALWAYS be mako -- its a failsafe built-in template for a distributed system that is only used if not overridden. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

Beginners tutorial broken

2009-02-06 Thread Joshua D. Drake
Hello, I created my HelloWorld application which suggests I go to the Beginners Tutorial. The link it provides is: http://pylonshq.com/docs/en/0.9.7/gettingstarted.html Which is broken. Joshua D. Drake -- PostgreSQL - XMPP: jdr...@jabber.postgresql.org Consulting, Development, Support,

Re: Beginners tutorial broken

2009-02-06 Thread Mike Orr
On Fri, Feb 6, 2009 at 6:58 PM, Joshua D. Drake j...@commandprompt.com wrote: Hello, I created my HelloWorld application which suggests I go to the Beginners Tutorial. The link it provides is: http://pylonshq.com/docs/en/0.9.7/gettingstarted.html Which is broken. I too a quick look, and

Re: storing formattable strings in the config file?

2009-02-06 Thread Tycon
maybe foo \x25(bar)s On Feb 6, 11:11 am, Jonathan Vanasco jonat...@findmeon.com wrote: i want to store something in my config file like     foo %(bar)s normally in python, i would do this     foo %%(bar)s to escape the string interpolation. paste doesn't like that.  anyone have a

Re: beaker_cache query_args when duplicate queries are in

2009-02-06 Thread Tycon
yes, you're right it's totally weird that the key beaker_cache uses for caching controller actios, doesn't include the action in it by default. My solution was to write my own decorator. On Feb 6, 1:52 pm, eleith ele...@gmail.com wrote: i've got a controller that will accept multiple same name

Re: HOWTO: Installing Pylons on Hardy

2009-02-06 Thread m h
On Fri, Feb 6, 2009 at 5:29 PM, Joshua D. Drake j...@commandprompt.com wrote: Hello, I recently had to do this for a customer. It wasn't as easy as it should be, but it was hardly difficult. I have blogged it here if any are interested: