debug var and templates

2009-02-10 Thread Eric Lemoine
Hi Some simple questions related to the "debug" var defined in the development.ini file: (1) Why is this variable defined using "set"? Other variables in the development.ini file aren't defined using "set", so what does make "debug" a special case? (2) I need to test whether the debug var is se

Re: beaker_cache query_args when duplicate queries are in

2009-02-10 Thread Philip Jenvey
On Feb 9, 2009, at 4:33 AM, Wichert Akkerman wrote: > > Previously eleith wrote: >>> My solution was to write my own decorator. >> could you share your decorator? > > For what it's worth below is my variant of beaker_cache. It has > the advantage over the stock version that it works everywhere

HOWTO: Using Simpycity with Pylons

2009-02-10 Thread Joshua D. Drake
Hello, Something we have been working a lot on lately is SimpyCity. It is LGPL and designed to be used in place of SQLAlchemy. Here is a howto on how to use it with Pylons: http://www.commandprompt.com/blogs/aurynn_shaw/2009/02/using_simpycity_in_pylons/ The basic idea here is, nothing is smart

Re: logger configuration for sqlalchemy

2009-02-10 Thread Philip Jenvey
On Feb 10, 2009, at 7:35 AM, przemek.ch wrote: > > Hi, > > Using sql alchemy I get warnings like this: > > C:\Python26\lib\site-packages\sqlalchemy-0.5.3dev-py2.6.egg\sqlalchemy > \orm\scoping.py:121: SADeprec > ationWarning: Use session.add() > return getattr(self.registry(), name)(*args, **kw

Authorization with repoze.what in Pylons

2009-02-10 Thread Gustavo Narea
Hello, everybody. I'm pleased to announce that I have: 1.- Finished the guide on how to use repoze.what in Pylons: http://wiki.pylonshq.com/display/pylonscookbook/Authorization+with+repoze.what 2.- Created a plugin to integrate repoze.what in Pylons applications: http://code.gustavonarea.net/re

Re: routes src

2009-02-10 Thread KLEIN Stéphane
On 23 jan, 12:10, Lawrence Oluyede wrote: > On Fri, Jan 23, 2009 at 12:05 PM, przemek.ch wrote: > > > I'm getting an error while trying to get sources fromsvnco > >http://routes.groovie.org/svn/trunkroutes > > >svn: Server sent unexpected return value (405 Method Not Allowed) in > > response to

logger configuration for sqlalchemy

2009-02-10 Thread przemek.ch
Hi, Using sql alchemy I get warnings like this: C:\Python26\lib\site-packages\sqlalchemy-0.5.3dev-py2.6.egg\sqlalchemy \orm\scoping.py:121: SADeprec ationWarning: Use session.add() return getattr(self.registry(), name)(*args, **kwargs) But here I can't see the source of the problem. How can I

Re: Routes problem (not thread safe?)

2009-02-10 Thread carlos
Thank you Philip, I've updated to routes 1.10.3 (it needs WebOb so I've installed it too) and at the moment it works fine. Carlos. On 9 feb, 21:16, Philip Jenvey wrote: > On Feb 9, 2009, at 2:47 AM, carlos wrote: > > > > > Hi, I'm using Pylons 0.9.6.1, with Routes 1.7.3 and Python 2.5. > > in