> <input name="user3" value="${initstr}" />
There are helper functions that could simplify that. Like:
${h.input('user3', value=initstr)}
And so on... There is h.form as well.
> try:
> c.initstr = request.params['user3']
> except KeyError:
> c.initstr = 'default text'
Argh, my eyes are hurt. Use get method:
c.initstr = request.params.get('user3', 'default text')
Try ToscaWidgets, experiment with it and you will see later that there
is nothing magic what you can't do without that ;-)
--
Dalius
http://blog.sandbox.lt
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"pylons-discuss" 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/pylons-discuss?hl=en
-~----------~----~----~----~------~----~------~--~---