Re: Putting DELETE's params into request.POST

2008-10-17 Thread Wichert Akkerman
Previously Sok Ann Yap wrote: > On the other hand, if we look into httplib2's source code, which I > supposed is everyone's favorite http client library, Joe Gregorio > doesn't make any distinction between POST and DELETE. You can verify > that by using httplib2 to send a DELETE request with body

Re: Putting DELETE's params into request.POST

2008-10-17 Thread Sok Ann Yap
> I must admit it's tricky to tell from the specification - I've read it > again... > > The spec says request must not contain message body if method definition says > it must not contain it... But no method definition (even for GET) says so. > > PUT and POST refer to section 8.2 about message tran

Re: 0.9.7 routing for root ("/")

2008-10-17 Thread Mike Orr
On Fri, Oct 17, 2008 at 1:59 PM, MilesTogoe <[EMAIL PROTECTED]> wrote: > > using pylons 0.9.7 I have the following: > map.connect('/',controller='main',action='index') > > but when I go to http://127.0.0.1:5000 > > I don't get directed to /main/index - my other route settings are > working correc

How to filter the @jsonify warning

2008-10-17 Thread Christoph Haas
Fellow earthicans, I'm trying the ExtJS Javascript framework in a workflow-style Pylons project. And that means passing a lot of JSON data around. There is a certain cross-site vulnerability problem when sending JSON arrays (versus JSON dictionaries or scalars). But without working around it on

0.9.7 routing for root ("/")

2008-10-17 Thread MilesTogoe
using pylons 0.9.7 I have the following: map.connect('/',controller='main',action='index') but when I go to http://127.0.0.1:5000 I don't get directed to /main/index - my other route settings are working correctly - is there some setting I am missing to get the root set to a controller and ac

Re: Redirect being raised from outside a controller

2008-10-17 Thread Mike Orr
On Fri, Oct 17, 2008 at 10:40 AM, Adam Peacock <[EMAIL PROTECTED]> wrote: > > Due to the way my user authentication works, I'm rolling my own. It's > all work well, and I have it working with decorators, except for a > funny issue - when I raise a redirect_to from my decorator, Pylons > displays

Re: Displaying Data in a grid

2008-10-17 Thread Mike Orr
On Fri, Oct 17, 2008 at 7:10 AM, Matt Feifarek <[EMAIL PROTECTED]> wrote: > On Fri, Oct 17, 2008 at 5:12 AM, Toby Catlin <[EMAIL PROTECTED]> wrote: >> >> I am sure this has been done before but i am having trouble finding any >> references to existing code. As i don't want to reinvent the wheel i

Re: Putting DELETE's params into request.POST

2008-10-17 Thread Mike Orr
On Fri, Oct 17, 2008 at 3:37 AM, Sok Ann Yap <[EMAIL PROTECTED]> wrote: > > I noticed that since version 0.9.3, PUT's params will be put into > request.POST by WebOb. So, I wonder if DELETE will be threated the > same? One thing WebOb doesn't do is to delete the '_method' param. I would have exp

Redirect being raised from outside a controller

2008-10-17 Thread Adam Peacock
Due to the way my user authentication works, I'm rolling my own. It's all work well, and I have it working with decorators, except for a funny issue - when I raise a redirect_to from my decorator, Pylons displays the error in debug mode, rather than actually redirecting. In the debug I get a sta

Re: rendering xhtml

2008-10-17 Thread MilesTogoe
Mike Orr wrote: > On Thu, Oct 16, 2008 at 10:44 PM, MilesTogoe <[EMAIL PROTECTED]> wrote: > >> I'm using jinja and need to render some xhtml and can't seem to find any >> examples of how to pass the content type in the view. Can someone help >> out? thks. >> > > You set the content type

Re: Displaying Data in a grid

2008-10-17 Thread Jorge Vargas
On Fri, Oct 17, 2008 at 8:10 AM, Matt Feifarek <[EMAIL PROTECTED]> wrote: > On Fri, Oct 17, 2008 at 5:12 AM, Toby Catlin <[EMAIL PROTECTED]> wrote: >> >> I am sure this has been done before but i am having trouble finding any >> references to existing code. As i don't want to reinvent the wheel i

paster exception (generator ignored GeneratorExit)

2008-10-17 Thread Michael van Tellingen
Heya, I'm currently pretty much reliably triggering the following exception using IE6 (and some iframe/form post stuff): Exception happened during processing of request from ('192.168.131.1', 58222) Traceback (most recent call last): File "/Library/Pyt

Re: Displaying Data in a grid

2008-10-17 Thread Matt Feifarek
On Fri, Oct 17, 2008 at 5:12 AM, Toby Catlin <[EMAIL PROTECTED]> wrote: > I am sure this has been done before but i am having trouble finding any > references to existing code. As i don't want to reinvent the wheel i was > hoping someone could point me to the right place. > I have been building a

Re: Putting DELETE's params into request.POST

2008-10-17 Thread Paweł Stradomski
W liście Sok Ann Yap z dnia piątek 17 października 2008: > I noticed that since version 0.9.3, PUT's params will be put into > request.POST by WebOb. So, I wonder if DELETE will be threated the > same? But DELETE does not have request body, unlike POST and PUT. That wouldn't really make much sens

Putting DELETE's params into request.POST

2008-10-17 Thread Sok Ann Yap
I noticed that since version 0.9.3, PUT's params will be put into request.POST by WebOb. So, I wonder if DELETE will be threated the same? My use case: pylons.decorators.secure.authenticate_form only check for request.POST. I have a secure_form with method='delete' and want to test it, but there

Displaying Data in a grid

2008-10-17 Thread Toby Catlin
Hi I am sure this has been done before but i am having trouble finding any references to existing code. As i don't want to reinvent the wheel i was hoping someone could point me to the right place. I have been building a reporting tool and i need to display lists of objects in some form of grid. Th