Re: how to exclude some views from csrf checking

2011-09-29 Thread Michael Merickel
matched_route has been around since at least 1.0. It's only "not None" if using url dispatch. Also, it's a failed attempt at a fix anyway, because now I remember that it isn't populated until after the NewRequest subscriber has been called. Perhaps you should place your CSRF checks on a ContextFoun

Re: Transfer request to HTTPFound

2011-09-29 Thread Wyatt Baldwin
I'm not sure I follow this exactly, but could you create a template fragment (a %def in Mako) that contains the form and then call it with the differentiating args? Something like this: <%def name="make_form(action, submit_value)"> -- You received this message beca

Re: Transfer request to HTTPFound

2011-09-29 Thread Mengu
can't you do it with AJAX? On Sep 29, 6:33 pm, neurino wrote: > Quickly my need: > > each user has a *profile* view (`/profile`) with its _items_ listed in > it. > > The list is no more than a POST form with a checkboxes list and > several submit buttons: > >  - Create new >  - Delete selected it

Transfer request to HTTPFound

2011-09-29 Thread neurino
Quickly my need: each user has a *profile* view (`/profile`) with its _items_ listed in it. The list is no more than a POST form with a checkboxes list and several submit buttons: - Create new - Delete selected items - Compare selected items While I can: - Redirect user to *new* view (`/ne

Time out settings

2011-09-29 Thread RVince
I have some very long-running processes in my controller, wherein when the method in the controller finishes, a new page is rendered to the client. However, often because of the length of time my controller runs for, things (seem to) time out, the page seen on teh client changes to: "Temporarily

Re: how to exclude some views from csrf checking

2011-09-29 Thread cd34
On Sep 26, 1:58 pm, Michael Merickel wrote: > Likely you will need to add some code to the "csrf_validation" function to > exclude the RPC URL. For example: > > def csrf_validation(event): >     """ CSRF token exposed to templates >     """ >     request = event.request >     if request.matched_ro