wtf? "Try again, AmeriCAN:</p>" On Sun, Jan 2, 2011 at 2:40 PM, Dexter <[email protected]> wrote:
> Hi > > I am trying to use webpy for the 1st time > > The following code snippet at the end of the page at > http://webpy.org/form/ > ################################################## > $def with (form) > > <form name="main" method="post"> > $if not form.valid: > <p class="error">Try again, AmeriCAN:</p> > $:form.render() > <input type="submit" /> </form> > ################################################## > > > has a condition which says "$if not form.valid:" The documentation > does describe what form.validates() is but could not get any idea what > form.valid checks for ... > > Also what is the significance of the ":" in $:form.render(). As per > the documents it is used to avoid escaping of HTML code. Here form is > a python object right and we call an associated function. Why do we > need the colon there ? > > > Thanks & Regards > PK > > > -- > You received this message because you are subscribed to the Google Groups > "web.py" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected] <webpy%[email protected]>. > For more options, visit this group at > http://groups.google.com/group/webpy?hl=en. > > -- You received this message because you are subscribed to the Google Groups "web.py" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/webpy?hl=en.
