Re: Webtest doesn't like 204 response with Content-Type header

2009-01-22 Thread Wichert Akkerman
Previously Chris Miles wrote: That is fair enough, but if the controller returns no content (None or for instance) would it make sense to not set any Content-Type (and related) headers? At the very least you have to send a Content-Length: 0 header. If you don't some proxies get confused

Re: python -3 switch

2009-01-22 Thread Jorge Vargas
On Thu, Jan 22, 2009 at 5:59 AM, przemek.ch przemek...@gmail.com wrote: Hi, python 2.6 has a switch -3 which will show warnings about code that is not compatible with python 3 is ther a way to use tis switch with pylons? pylons don't use python directly and there's no such switch for

Re: python -3 switch

2009-01-22 Thread Gustavo Narea
On Thursday January 22, 2009 13:05:47 Jorge Vargas wrote: On Thu, Jan 22, 2009 at 5:59 AM, przemek.ch przemek...@gmail.com wrote: Hi, python 2.6 has a switch -3 which will show warnings about code that is not compatible with python 3 is ther a way to use tis switch with pylons?

Re: Can't deploy with FastCGI on Apache2

2009-01-22 Thread Gustavo Narea
Anyone? On Sunday January 18, 2009 23:29:31 Gustavo Narea wrote: Hello, I've tried the tutorial at http://wiki.pylonshq.com/display/pylonscookbook/Production+Deployment+Usin g+Apache, +FastCGI+and+mod_rewrite, but I can't get it to work. As suggested on the tutorial, I made a first try

Details of an abort(403, ...) always end up as 'FORBIDDEN'

2009-01-22 Thread Christoph Haas
Dear list, I'm currently customizing the error messages in a Pylons project. And it seems like whenever I abort(403, 'foobar') my error template the request.params['message'] jusr contains 'FORBIDDEN' although I sent 'foobar' as the 'details' parameter. Grepping through the code it comes from

Re: Can't deploy with FastCGI on Apache2

2009-01-22 Thread jerry
[Sun Jan 18 23:15:59 2009] [error] [client 127.0.0.1] Error - class 'genshi.template.eval.UndefinedError': {...} has no member named flash_obj Are you trying to render some TG flash_obj stuff? Hint, Pylons WebHelpers usage: http://groups.google.com/group/pylons-discuss/msg/18e9f84bf7533041

Re: Webtest doesn't like 204 response with Content-Type header

2009-01-22 Thread Joshua Bronson
On Jan 22, 3:38 am, Wichert Akkerman wich...@wiggy.net wrote: At the very least you have to send a Content-Length: 0 header. If you don't some proxies get confused and some browsers will spin forever waiting for data to arrive. Wichert. Indeed, and in Pylons 0.9.6.2 ErrorDocuments responses

External SQLAlchemy-migrate Models Integration

2009-01-22 Thread rokfor
Hi, I am new to Pylons. I have an application using SQLAlchemy and migrate. I want to use the models of this application in Pylons too. The application has lots of modules all having their own db directory that has the migrate files and models directory that has the models (same classes with the

wishlist - config based encoding for redirect_to

2009-01-22 Thread Jonathan Vanasco
basically, i'd love to see a pylons config option like this: redirect_encoding= ascii which would just do url.encode('ascii') on urls submitted to redirect_to -- or any other encoding standard. we ran into a bit of a problem with our docs being utf8 and older browsers not liking the redirect

Re: Details of an abort(403, ...) always end up as 'FORBIDDEN'

2009-01-22 Thread Christoph Haas
On Donnerstag, 22. Januar 2009, John_Nowlan wrote: Don't know if its relevant but have you seen: http://wiki.pylonshq.com/display/pylonsdocs/Error+Documents Yes, thanks. That's what I usually use. Just that the details argument doesn't make it through to the resulting error page. Cheers

Re: best ways to deal with bool values in config ?

2009-01-22 Thread Mike Orr
On Wed, Jan 21, 2009 at 4:30 PM, Jonathan Vanasco jonat...@findmeon.com wrote: i store a lot of stuff in config, much of which is 'framework' related across modules. the current way i deal with bools is this ( by storing things in app_globals during init ) g.enable_feature_x= False

Re: best ways to deal with bool values in config ?

2009-01-22 Thread Tycon
This is another example of the flawed, broken code known as Paste. Pylons should decouple itself from Paste On Jan 22, 12:11 pm, Mike Orr sluggos...@gmail.com wrote: On Wed, Jan 21, 2009 at 4:30 PM, Jonathan Vanasco jonat...@findmeon.com wrote: i store a lot of stuff in config, much of

Re: RegistryMiddleware is a major overhead

2009-01-22 Thread Ian Bicking
On Tue, Jan 20, 2009 at 1:37 PM, Ian Bicking i...@colorstudy.com wrote: On Tue, Jan 20, 2009 at 11:36 AM, Ben Bangert b...@groovie.org wrote: Similarly, other request handling operations such as creating the request object may also be redundant, because the user may not be interested in all

Re: best ways to deal with bool values in config ?

2009-01-22 Thread Wyatt Baldwin
On Jan 22, 1:14 pm, Tycon adie...@gmail.com wrote: This is another example of the flawed, broken code known as Paste. Pylons should decouple itself from Paste But Pylons, as you've pointed out, is flawed in numerous ways as well. Let's throw it *all* away!

Re: best ways to deal with bool values in config ?

2009-01-22 Thread Tycon
I would gladly throw python away if only ruby matched its performance. On Jan 22, 3:48 pm, Wyatt Baldwin wyatt.lee.bald...@gmail.com wrote: On Jan 22, 1:14 pm, Tycon adie...@gmail.com wrote: This is another example of the flawed, broken code known as Paste. Pylons should decouple itself

Re: python -3 switch

2009-01-22 Thread Tycon
The easiest way to use any specific version of python (and any options you need) is to explicitly invoke the python executable from the shell (e.g. bash), for example: $ python2.6 -3 $(which paster) serve development.ini On Jan 22, 4:20 am, Gustavo Narea m...@gustavonarea.net wrote: On

Re: best ways to deal with bool values in config ?

2009-01-22 Thread Wyatt Baldwin
On Jan 22, 8:21 pm, Tycon adie...@gmail.com wrote: I would gladly throw python away if only ruby matched its performance. There's another option you may be interested, in case you haven't heard of it: C. It's *very* fast. On Jan 22, 3:48 pm, Wyatt Baldwin wyatt.lee.bald...@gmail.com wrote:

Re: best ways to deal with bool values in config ?

2009-01-22 Thread Tycon
C is my expertise, but it can't match the productivity of python or Ruby Fortnately for C, it will always retain the performance crownm so it will always have its uses The same thing cannot be said for python. Once its performance is once its performance is matched by a better language such as

Re: best ways to deal with bool values in config ?

2009-01-22 Thread Wyatt Baldwin
On Jan 22, 9:43 pm, Tycon adie...@gmail.com wrote: C is my expertise, but it can't match the productivity of python or Ruby Fortnately for C, it will always retain the performance crownm so it will always have its uses The same thing cannot be said for python. Once its performance is once