SQLAlchemy queries getting logged twice

2007-08-22 Thread Christoph Haas
Dear list... 0.9.6rc2 I just enabled sqlalchemy.echo and found that all queries are getting printed to the console twice. Raising the handler level to WARNING lead to the correct results. Looks like somehow the sqlalchemy mapper is propagating to the root logger. What can be done about that? I

Routes and thread-safety

2007-08-22 Thread pstradomski
Routes tries to be thread-safe - it even provides special thread-local storage for data from the web framework. Nevertheless in __init__.py, in load_wsgi_environ() there is: self.mapper.environ = environ. That way the thread-safety is broken - it is impossible to correctly use one mapper for all

Re: Routes and thread-safety

2007-08-22 Thread Ben Bangert
On Aug 22, 2007, at 6:46 AM, pstradomski wrote: Routes tries to be thread-safe - it even provides special thread-local storage for data from the web framework. Nevertheless in __init__.py, in load_wsgi_environ() there is: self.mapper.environ = environ. That way the thread-safety is broken - it

Distributing application with py2exe

2007-08-22 Thread Steve M
Hi, I'm somewhat new to Pylons and do not completely grasp the details of how Paste effects the deployment of an application. Nevertheless, I've been exploring how to distribute (for running on a Windows machine that has no Internet connection) a Pylons web app using py2exe. I'm getting stuck on

Re: Routes and thread-safety

2007-08-22 Thread Paweł Stradomski
W liście Ben Bangert z dnia środa, 22 sierpnia 2007 17:51: That's somewhat deceptive, but it is actually threadsafe. From the mappers __init__: self.req_data = threadinglocal.local() And the mapper.environ attribute is a property that looks like this: def _envget(self):

Re: Firefox crash reporting site memory issues

2007-08-22 Thread morgamic
On Aug 18, 11:09 am, Ben Bangert [EMAIL PROTECTED] wrote: Forgot to ask, what version of Beaker are you using? More version info: Beaker-0.7.3 python-psycopg2-2.0.4-1.el5.rf So far I've been unsuccessful in finding the leak -- but the main issue is this page in list():

Re: iframe issue

2007-08-22 Thread [EMAIL PROTECTED]
iframe src=data.mako / is working fine. template.py: class TemplateController(BaseController): def view(self, url): abort(404) to class TemplateController(BaseController): def view(self, url): try: return render('/%s' % url) except

Re: SQLAlchemy queries getting logged twice

2007-08-22 Thread Michael Bayer
I just released beta4, which unfortunately still has this issue. However if you checkout rev 3411, its fixed. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups pylons-discuss group. To post to this group, send email

Re: reddit.com moving to pylons.

2007-08-22 Thread Michael Bayer
On Aug 21, 6:58 pm, Tim Riley [EMAIL PROTECTED] wrote: I was checking out reddit.com's new site and in the comment section there were some discussions about reddit moving away from web.py. Well I threw a guess out there about reddit switching to pylons and Chris Slowe confirmed it[1].

Re: Distributing application with py2exe

2007-08-22 Thread Jose Galvez
Its not py2exe but take a look at Bourbon http://chichen-itza.compmed.ucdavis.edu/trac/bourbontrac you can install that on your windows box and then just install you application. Bourbon will let you run pylons as a windows service. Jose Steve M wrote: Hi, I'm somewhat new to Pylons and do

Re: SQLAlchemy tutorial split into 0.4 and 0.3 versions

2007-08-22 Thread Jose Galvez
I was going through the 0.4 version of the tutorial today and saw that the reference to Session.mapper has been removed. Is Session.mapper from the first version not correct, or was it simply removed to make the tutorial simpler to read? I personally found that little nugget if info very

Re: SQLAlchemy tutorial split into 0.4 and 0.3 versions

2007-08-22 Thread Mike Orr
On 8/22/07, Jose Galvez [EMAIL PROTECTED] wrote: http://wiki.pylonshq.com/display/pylonscookbook/SQLAlchemy+0.4+for+people+in+a+hurry I was going through the 0.4 version of the tutorial today and saw that the reference to Session.mapper has been removed. Is Session.mapper from the first

emulating apache's redirect with proxied setup

2007-08-22 Thread Max Ischenko
Hello, I use Apache to proxy all requests to my Pylons app. I used to have the following mod_rewrite rules which helped to redirect users to www. version of the site: RewriteCond %{HTTP_HOST} ^developers\.org\.ua$ RewriteRule (.*) http://www.developers.org.ua/$1 [R=Permanent,L] After

Re: SQLAlchemy tutorial split into 0.4 and 0.3 versions

2007-08-22 Thread Ches Martin
I noticed those edits too as I was updating the QuickWiki doc (which is using Session.mapper). I asked Ben about using it QuickWiki beforehand, since I thought it was he who once mentioned shunning it in the docs for simplicity to new users. He said it was fine. shrug -- Ches Martin [EMAIL

Re: SQLAlchemy tutorial split into 0.4 and 0.3 versions

2007-08-22 Thread Ches Martin
Nuts. Pardon the double post. On Aug 23, 1:57 am, Ches Martin [EMAIL PROTECTED] wrote: I noticed those edits too as I was updating the QuickWiki doc (which is using Session.mapper). I asked Ben about using it QuickWiki beforehand, since I thought it was he who once mentioned shunning it