Hi all.
I created a form, which has few "submit" buttons. What is the
right\good way to "connect" code that process the data?
The if-else solution doesn't looks good to me:
class generated:
def POST(self, r_url=None ):
request_data = web.input()
if caption of button 1 in request_data:
do_smth_1
elif caption of button 2 in request_data:
do_smth_2
....
Is there some pattern or functionality I miss?
Thanks
--
Roman Yakovenko
C++ Python language binding
http://www.language-binding.net/
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---