Hi,
Israel Evans hat gesagt: // Israel Evans wrote:
> I actually just found this a couple of minutes before your post.  While this
> definitely does help with the basics of forms, my real confusion was with
> how Webware worked.  The docs kind of talk about it, but don't really go
> into the whys and wherefores of the whole bit.

The most simple form handling is the one included in Webware's actions
handler. You define a form in you HTML code with 

<form method="post">
 <input name="_action_"  type="submit" value="Clicked">
</form>

Then in your page class you need to make "Clicked" known as part of
the permitted "actions":

def actions(self): return Page.actions(self) + ['Clicked']

Now you can define the handler for the method "Clicked" (same name as
the button's!):

def Clicked(self, trans):
    req=trans.request()
    # ...
    self.writeHTML()

Ciao,
-- 
 Frank Barknecht                               _ _______footils.org__

_______________________________________________________________

Have big pipes? SourceForge.net is looking for download mirrors. We supply
the hardware. You get the recognition. Email Us: [EMAIL PROTECTED]
_______________________________________________
Webware-discuss mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/webware-discuss

Reply via email to