Re: Why no cache_max_age for StaticJavascripts?

2007-10-17 Thread Philip Jenvey
On Oct 16, 2007, at 4:45 AM, Marcin Kasperski wrote: I think that it would be nice, if StaticJavascripts constructor passed any obtained named parameters to StaticUrlParser... Sounds good, I've added that in rev d323f70212a1 Thanks! -- Philip Jenvey

Re: calling render within a generator

2007-10-17 Thread Philip Jenvey
On Oct 12, 2007, at 8:54 PM, eleith wrote: here is my current, though not optimal, solution. the templates don't have to be rewritten (maintain c and g and other template includes), and they will still work with other pylon controllers def action(self) myc = c._current_obj()

Re: Sessions access

2007-10-17 Thread Pavel Skvazh
Thanks for the reply. I was trying to hold the conversation until 0.8 will hit the stores, but apparantly there's a delay. The current mercurial tip on Beaker has a significantly more efficient database implementation that records the created and last access times as columns, which will make

Re: Reducing pylons app memory usage?

2007-10-17 Thread Marcin Kasperski
Any ideas how could I reduce pylons app RAM usage? At the moment pylons process takes above 100MB (almost static site serving some templates) - both when run with paste, and when run under mod_wsgi. Quite a lot, considering that for example whole moinmoin manages to work

Re: Reducing pylons app memory usage?

2007-10-17 Thread Christoph Haas
On Tue, Oct 16, 2007 at 04:22:14PM +0200, Marcin Kasperski wrote: Any ideas how could I reduce pylons app RAM usage? At the moment pylons process takes above 100MB (almost static site serving some templates) - both when run with paste, and when run under mod_wsgi. Quite a lot, considering

Enhancing documentation of pylons' global response (and a little inconsistency)

2007-10-17 Thread Agustín (Cucho) Villena
Hi! I'm implementing rest services over pylons. When I tried to figure how to implement the creation of a new resource ( POST to a resource ), I had a hard time finding out how to return the right status code (201 in this case). Browsing the pylons documentation of WSGIResponse I didn't find

Re: Please help review a new Pylons tutorial

2007-10-17 Thread zunzun
A scatterplot of error and a histogram of error are in at: http://wiki.pylonshq.com/display/pylonscommunity/Adding+graphical+output James On Oct 15, 8:04 am, zunzun [EMAIL PROTECTED] wrote: Graphics test is in, drawing a simple straight line plot.

FormEncode form validators

2007-10-17 Thread Ian Bicking
FormEncode is overdue for a release, but before that a request: there has been some mention that FormEncode should ship more useful form validators. For instance, FieldsMatch is an example of something currently shipped, but about the only example. Other examples would be helpful. Probably

Re: Reducing pylons app memory usage?

2007-10-17 Thread Max Ischenko
On 10/17/07, Christoph Haas [EMAIL PROTECTED] wrote: On Tue, Oct 16, 2007 at 04:22:14PM +0200, Marcin Kasperski wrote: Any ideas how could I reduce pylons app RAM usage? At the moment pylons process takes above 100MB (almost static site serving some templates) - both when run with paste,

Re: Sessions access

2007-10-17 Thread Mike Orr
On 10/8/07, Pavel Skvazh [EMAIL PROTECTED] wrote: Came close with user management in my webapp and was wondering what is the 'proper' way to manage users currently logged in? Each user has a session with some values assigned. All sessions are stored in the filesystem and I cann't see the way

Re: Reducing pylons app memory usage?

2007-10-17 Thread Ben Bangert
On Oct 17, 2007, at 2:59 AM, Marcin Kasperski wrote: RSS. VSS is also fairly significant, 16-17MB. I think you have those reversed according to the other numbers. Development machine, paste server immediately after startup 26815 marcink 15 0 109m 15m 2840 S1 0.8 0:01.76

Re: Sessions access

2007-10-17 Thread Ben Bangert
On Oct 17, 2007, at 1:49 AM, Pavel Skvazh wrote: That's the issue, is it's really easier to implement it through the DB double right now (ugly and wastefull, no doubt about it). Let's wait till the next promissing release. The last access and created access are columns for the session in the

Re: Sessions access

2007-10-17 Thread Philip Jenvey
On Oct 17, 2007, at 1:48 PM, Ben Bangert wrote: I've almost convinced myself that cron will be the best, since it's far more reliable, being rather unnatural way to do that. It will definatly do it's job, if there'll be create_session timestamp as one of the columns. At least until Beaker

Re: Reducing pylons app memory usage?

2007-10-17 Thread Christoph Haas
On Wed, Oct 17, 2007 at 09:03:12PM +0300, Max Ischenko wrote: On 10/17/07, Christoph Haas [EMAIL PROTECTED] wrote: On Tue, Oct 16, 2007 at 04:22:14PM +0200, Marcin Kasperski wrote: Any ideas how could I reduce pylons app RAM usage? At the moment pylons process takes above

Re: FormEncode form validators

2007-10-17 Thread Christoph Haas
On Wed, Oct 17, 2007 at 01:20:07PM -0500, Ian Bicking wrote: FormEncode is overdue for a release, but before that a request: there has been some mention that FormEncode should ship more useful form validators. For instance, FieldsMatch is an example of something currently shipped, but

Re: FormEncode form validators

2007-10-17 Thread Ian Bicking
Christoph Haas wrote: I could contribute validators for: - valid IPv4 network/address specifications (e.g. 10.0.0.0/8 or 192.168.25.1 but not 1.2.3.4/123) - valid hardware (MAC) address (e.g. 01:51:a5:92:be:08) Those would be useful, I think. - range of integers (strange I didn't

Re: Question on image tags in wiki {code} sections

2007-10-17 Thread zunzun
On Oct 17, 1:13 pm, Philip Jenvey [EMAIL PROTECTED] wrote: A {code} block without specifying the language tries to auto detect the type of source code, but the detection routine is very limited. You shouldn't really ever use {code} without specifying the langugage. That is AWESOME! A

Re: Understanding caching

2007-10-17 Thread Philip Jenvey
On Oct 15, 2007, at 6:07 PM, Mike Orr wrote: I have a controller method that outputs a largish tab-delimited text page. (It contains marker data for Google Maps.) I'd like to cache this in both the browser and the server for one hour. Pylons offers so many caching options I'm not sure

Re: Reducing pylons app memory usage?

2007-10-17 Thread Ben Bangert
On Oct 17, 2007, at 2:24 PM, Christoph Haas wrote: Why am I still confused by the top columns after 15 years of UNIX usage. Yes, the virtual usage is around 100 MB while the resident size is at about 18 MB. Of course, since most of this ram use is from the libraries, it means it will

Re: Understanding caching

2007-10-17 Thread Ben Bangert
On Oct 17, 2007, at 4:20 PM, Philip Jenvey wrote: Right, Cache-Control: max-age should tell the browser that it doesn't have to re-request the file. This is similar to the Expires header. We didn't want to include a Pragma header in the default headers, but we ended up including it last minute

Re: Reducing pylons app memory usage?

2007-10-17 Thread Graham Dumpleton
Ben Bangert wrote: Apache is rather a pig on resources (the threading worker helps a bit), I'd suggest checking out nginx or lightty. nginx has a bit more modules to replace Apache functionality and has been more reliable in my experience, but both of them will mean dropping Apache (which

Re: Sessions access

2007-10-17 Thread Ben Bangert
On Oct 17, 2007, at 2:01 AM, Pavel Skvazh wrote: I guess this should solve most of the current issues. Are you by any chance planning to support other DataBases for session data storage? I'm using Oracle and it'll be much easier to maintain the database and perform cleanups with stored

Re: Reducing pylons app memory usage?

2007-10-17 Thread Ian Bicking
Ben Bangert wrote: On Oct 17, 2007, at 2:24 PM, Christoph Haas wrote: Why am I still confused by the top columns after 15 years of UNIX usage. Yes, the virtual usage is around 100 MB while the resident size is at about 18 MB. Of course, since most of this ram use is from the libraries,

ANNOUNCE: Gazest 0.3.7 -- a Pylons powered wiki

2007-10-17 Thread Yannick Gingras
Greetings Pyloneers, I'm am please to announce the release of Gazest 0.3.7, a Pylons powered wiki. Why another wiki? Gazest is heavily inspired by Git and Mercurial. It won't try to flatten the history to a linear succession of commit; instead, it preserves the history graph as a DAG. We