_action=URL(r=request))

is probably fine

_action=URL(r=request,args=request.args))

to be user


On Jul 6, 3:32 pm, Jonathan Lundell <jlund...@pobox.com> wrote:
> On Jul 6, 2009, at 12:31 PM, Yarko Tymciurak wrote:
>
> > _action value (in SQLForm) is what "action" in HTML FORM  will be  
> > set to.
>
> > It is a URI, so "." is relative to the current context.
>
> > check out something likehttp://www.w3.org/TR/html401/interact/forms.html
> >  for more.
>
> OK, thanks.
>
> The problem with that, as I read the RFC, is that the "current  
> context" means the current URL with everything to the right of the  
> rightmost slash deleted, which isn't going to work very well for  
> web2py URLs, if the intent is a self-reference (unless perhaps the  
> current URL is to the default controller and/or function).
>
> Here's why I'm asking: a missing or empty form action is invalid  
> (x)html, and I'm looking for the most concise way of asking for a self-
> reference. action="." would work fine if the URL ended in a slash, but  
> it does not.
>
> The shortest self-reference I can see is: FORM( ...,  
> _action=URL(r=request))
>
> Is that right?
>
>
>
> > On Mon, Jul 6, 2009 at 1:44 PM, Jonathan Lundell  
> > <jlund...@pobox.com> wrote:
>
> > The example _action='.' appears in the manual, section 7.2 (SQLForm),
> > page 168.
>
> > What does that mean?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to