>
> {{extend 'layout.html'}}
> RAM_Contact_Form: Contact Us
>
>
> {{=BEAUTIFY(response._vars)}}
>
>
OK, I guess you lifted the BEAUTIFY() line from the generic.load example.
That helper is only used to "beautify" complex Python objects, like nested
lists and dictionaries (see
http://web2py.com/
rochacbruno:
*
*
Thanks!
It worked, and email is sent, and form: is no longer there.
I'm going to to a working sample - might be helpful to others.
Rob
{{extend 'layout.html'}}
RAM_Contact_Form: Contact Us
{{=form}}
On Tuesday, August 7, 2012 6:30:01 PM UTC-4, rochacbruno wrote:
>
> rep
replace this:
{{=BEAUTIFY(response._vars)}}
with this:
{{=form}}
--
My goal, is to have a simple email form that can be customized...
What I have is working, except for the
form:
being displayed.
I wonder if there is a simpler way to create a email form.
Thanks
Rob
--
Thanks Anthony.
Yes, my function ends in
*RAM_Contact_Us/controllers/default.py*
with...
return dict(form=form)
*RAM_Contact_Us/views/default/contactus.html*
contains only this:
{{extend 'layout.html'}}
RAM_Contact_Form: Contact Us
{{=BEAUTIFY(response._vars)}}
Here is entire Function
I assume that's not the complete code, as your function doesn't return
anything. Does it end with something like:
return dict(form=form, ...)
And are you using a generic view (i.e., have you defined a contactus.html
view)? If you use a generic view and pass a dictionary with more than one
6 matches
Mail list logo