Re: Logging example in Windows (lama)

2009-05-27 Thread Mike Orr
On Wed, May 27, 2009 at 3:51 AM, durumdara durumd...@gmail.com wrote: Hi! I solved the problem with this config: [loggers] keys = root, routes, graffity [logger_root] handlers = console level = NOTSET [formatter_generic] datefmt = %H:%M:%S format = %(asctime)s,%(msecs)03d

Re: Logging example in Windows (lama)

2009-05-27 Thread durumdara
Dear Mike! Can I get some callback that starts at/before every requests where I can log everything what I need? I know that Pylons (or Django?) have __before__ and __after__ method calls, but I need some other, special callback method (just like mako filter) where I can do my logs without

Re: Logging example in Windows (lama)

2009-05-27 Thread Wichert Akkerman
Previously durumdara wrote: Can I get some callback that starts at/before every requests where I can log everything what I need? Write a tiny bit of WSGI middleware? Wichert. -- Wichert Akkerman wich...@wiggy.netIt is simple to make things. http://www.wiggy.net/ It is

Profiling Custom Paster Command

2009-05-27 Thread Mike Lewis
I set up a special grooming command for my app that requires the pylons environment to run, called refresh (so I run paster refresh development.ini) I'm looking for a way to run cProfile on this script. Is there a simple way to do so? Thanks, Mike Lewis

Re: Profiling Custom Paster Command

2009-05-27 Thread Chris Miles
On 28/05/2009, at 12:16 PM, Mike Lewis wrote: I set up a special grooming command for my app that requires the pylons environment to run, called refresh (so I run paster refresh development.ini) I'm looking for a way to run cProfile on this script. Is there a simple way to do so? I've

Specifying memcached as beaker.cache.type?

2009-05-27 Thread Jack
You can specify different beaker.session.type (database, memcached, etc.), and when you do from pylons import session you'll use the proper session type. Is it possible to do the same for beaker.cache.type? I'm using the cache through from pylons import cache, and then

Set FormEncode translation while hosting as mod_wsgi

2009-05-27 Thread Jan Koprowski
Hi ! When my app is run under Paster i18n works fine. After i switch to production environ (based on Apache with mod_wsgi) my Pylons messages translated inside my app works fine but for example (my lang directive in *.ini is set to pl) FormEncode messages is not translate. What I should to

Re: Set FormEncode translation while hosting as mod_wsgi

2009-05-27 Thread Graham Dumpleton
On May 28, 2:29 pm, Jan Koprowski jan.koprow...@gmail.com wrote: Hi !   When my app is run under Paster i18n works fine. After i switch to production environ (based on Apache with mod_wsgi) my Pylons messages translated inside my app works fine but for example (my lang directive in *.ini