Hi,
I'm trying to use the built in form function, but I'm getting internal
server error...
Here are the relevant parts of my code (Pardon my code, but I'm still in
the beginning of the learning process)
=============
urls = (
'/(contato)', 'form',
)
def contato():
con = form.Form(
form.Textbox("boe"))
return con
class form:
def GET(self, content):
form = eval(content)()
html = form
html = Render('cms', '404') + """</div>"""
return render.page(html)
=============
I'm pretty sure that the problem is on the form part of the "contato"
function. If I change it to "return 'anything'" *and* comment the form parts
of that function it works like a charm.
I know I could do something like:
def contato():
return """ <form blablabla>"""
but it looks a little dirty no? :)
Really thanks (specially for the framework! :P) in advance.
--
Leon Waldman
SysAdmin Linux - Arquiteto de Infra-Estrutura & TI.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---