Re: request.params json

2007-11-05 Thread Alagu Madhu
On Nov 5, 9:44 am, Alagu Madhu [EMAIL PROTECTED] wrote: Hi I am send the data in json format(login={user:python,password:pylons}). ... print request.params.keys() print request.params.items() print request.params.values() ... [] [] [] Thanks Madhu Alagu working fine

Re: Path to read a data file shipped within an egg?

2007-11-05 Thread Alberto Valverde
Chris Shenton wrote: I've got an app that needs to read and parse a data file (a RADIUS dictionary, not a Python dictionary but a flat file). I want to include this file in my egg so I don't have to depend on the OS having RADIUS installed. In the application's top-level setup.py, I add

Re: Reducing pylons app memory usage?

2007-11-05 Thread Marcin Kasperski
Actually, Ian clarified that the threadpool can be turned off. Add the following to the [server] section: use_threadpool = false On my linux system, that cut the Virtual from 100Mb to 18Mb. But this is then single-process mode, I guess?

Re: Reducing pylons app memory usage?

2007-11-05 Thread Marcin Kasperski
* threadpool_workers = 10 virtual 108104, resident 18900 (...) So it looks like it is all about thread-local storage. Maybe just the thread stack size... What figures do you get for the above if you run: ulimit -s 512 *Far* smaller, for example with workers=10 I got virtual about

~Solved~: Reducing pylons app memory usage?

2007-11-05 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 on ~25MB. Short

Re: ~Solved~: Reducing pylons app memory usage?

2007-11-05 Thread Alberto Valverde
Thanks for the summary Martin! I've copied it to Pylons' wiki [1] so it's easier to find for reference in the future. Alberto [1] http://wiki.pylonshq.com/x/M4Kq --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

Re: ~Solved~: Reducing pylons app memory usage?

2007-11-05 Thread Marcin Kasperski
Alberto Valverde [EMAIL PROTECTED] writes: Thanks for the summary Martin! Good old habit from times when I participated in tru64-unix-managers. On that list the initial poster was always expected to create 'solution' post with the summary info, at least in case reply was not trivial. I must

Re: Quickest way to use Elixir with a Pylons 0.9.6 project.

2007-11-05 Thread Rav
Thanks for help, but when I try to use models in controllers I receive empty lists.Should I really try to write for example list = model.MyModel.query.all() in controllers' functions? --~--~-~--~~~---~--~~ You received this message because you are subscribed to

Re: Reducing pylons app memory usage?

2007-11-05 Thread Ian Bicking
Marcin Kasperski wrote: Actually, Ian clarified that the threadpool can be turned off. Add the following to the [server] section: use_threadpool = false On my linux system, that cut the Virtual from 100Mb to 18Mb. But this is then single-process mode, I guess? No, it spawns a new thread

Re: xml-rpc, authentication and sessions

2007-11-05 Thread Philip Jenvey
On Oct 31, 2007, at 7:37 AM, oscar tackstrom wrote: Hi, I'm developing a combined chat-bot/question answering system and plan to use xml-rpc with pylons to serve web clients. Since other parts of the project are already implemented in pylons (administration and database connections), I

Re: Javascript Debuggers

2007-11-05 Thread Eduardo Schettino
On 11/5/07, EricHolmberg [EMAIL PROTECTED] wrote: I currently use Firebug, but it leaves a lot to be desired (like a stack trace). firebug do have a stack trace. On the script tab look at the top on the right of the Inspect. The stack is displayed horizontally... (of course you need to stop in

Re: Javascript Debuggers

2007-11-05 Thread Eduardo Schettino
On 11/6/07, Eduardo Schettino [EMAIL PROTECTED] wrote: On 11/5/07, EricHolmberg [EMAIL PROTECTED] wrote: I currently use Firebug, but it leaves a lot to be desired (like a stack trace). firebug do have a stack trace. On the script tab look at the top on the right of the Inspect. The

Having pylons.render() to return Unicode

2007-11-05 Thread Yannick Gingras
Greetings Pyloneers, I'm hacking a plugin system for Gazest at the moment and I'm having a minor Unicode problem. The Pygments plugin returns an HTML fragment out of a Mako template, I render it with: pylons.render(/foo.mako, fruitsalad=pygments.highlight(...)) All the other Gazest

Re: Having pylons.render() to return Unicode

2007-11-05 Thread Philip Jenvey
On Nov 5, 2007, at 2:33 PM, Yannick Gingras wrote: Greetings Pyloneers, I'm hacking a plugin system for Gazest at the moment and I'm having a minor Unicode problem. The Pygments plugin returns an HTML fragment out of a Mako template, I render it with: pylons.render(/foo.mako,

Re: Javascript Debuggers

2007-11-05 Thread EricHolmberg
On Nov 4, 10:48 pm, Dalius Dobravolskas [EMAIL PROTECTED] wrote: I currently use Firebug, but it leaves a lot to be desired (like a stack trace). FireBug is general purpose web development tool but usually it is enough. If you need something more powerful you could try

Re: Javascript Debuggers

2007-11-05 Thread EricHolmberg
I currently use Firebug, but it leaves a lot to be desired (like a stack trace). firebug do have a stack trace. On the script tab look at the top on the right of the Inspect. The stack is displayed horizontally... (of course you need to stop in a breakpoint to see it) You can