Re: 0.10rc1 trackback/Internal Server Error

2010-04-16 Thread Mike Orr
On Thu, Apr 15, 2010 at 9:38 PM, Jack Tihon konoham...@gmail.com wrote: I was getting the same thing when I was trying to reference h.url() which no longer exists. It's not 'h.url' unless you import it to helpers.py that way. It's just 'url' in templates. In controllers and other modules it's

Re: 0.10rc1 trackback/Internal Server Error

2010-04-16 Thread Jack Tihon
On Apr 16, 2010, at 2:37 AM, Mike Orr wrote: On Thu, Apr 15, 2010 at 9:38 PM, Jack Tihon konoham...@gmail.com wrote: I was getting the same thing when I was trying to reference h.url() which no longer exists. It's not 'h.url' unless you import it to helpers.py that way. It's just

Re: 0.10rc1 trackback/Internal Server Error

2010-04-16 Thread kazin
Could you try commenting out AuthKit and seeing if the error changes? I doubt it will, but that would rule out AuthKit as a contributor. Problem still exists when I removed AuthKit from the middleware. I also tried recreating the virtualenv but that didn't seem to affect things. I'm going to

Re: 0.10rc1 trackback/Internal Server Error

2010-04-16 Thread Mike Orr
On Fri, Apr 16, 2010 at 9:32 AM, Jack Tihon konoham...@gmail.com wrote: Yeah, I was just following the tutorial and getting Which tutorial are you following? I was walking through this which references h.url() http://pylonshq.com/docs/en/1.0/forms/#the-basics OK, that's a mistake in the doc.

Re: 0.10rc1 trackback/Internal Server Error

2010-04-16 Thread kazin
I'm going to go try recreating the whole app and copying over my changes to see if I can track where it goes astray. My problem was caused by me adding a @nocache decorator to the BaseController's __call__method. As soon as that was removed, Template errors started appearing again. I must

Re: 0.10rc1 trackback/Internal Server Error

2010-04-16 Thread Mike Orr
On Fri, Apr 16, 2010 at 10:22 AM, kazin richka...@gmail.com wrote: I'm going to go try recreating the whole app and copying over my changes to see if I can track where it goes astray. My problem was caused by me adding a @nocache decorator to the BaseController's __call__method.  As soon as

is there a way to access the db connection handle of a sqlalchemy object , from the object ?

2010-04-16 Thread Jonathan Vanasco
i never had to do this before. some sample code is below; basically in a function i need to 'expire' some looped items , so i pull fresh from the db. my problem is that i don't know how to access the db from within the model ; i could pass-it-in explicitly from the controller... but i'd really

Re: is there a way to access the db connection handle of a sqlalchemy object , from the object ?

2010-04-16 Thread Wyatt Baldwin
On Apr 16, 12:46 pm, Jonathan Vanasco jonat...@findmeon.com wrote: i never had to do this before. some sample code is below; basically in a function i need to 'expire' some looped items , so i pull fresh from the db. my problem is that i don't know how to access the db from within the model

More on SOPs and testing

2010-04-16 Thread Mike Orr
Today I tried to make a test for a utility function that uses app_globals, without going through a web request. I called ``self.app.get(/_test_vars)`` as the docs recommend, assuming it would set ``pylons.app_globals``. Instead it returns a response object with an ``._app_globals`` attribute.