Thanks Aaron. I'm getting somewhere. Your suggestion works for me on a HTTP
GET. To make it work on a POST too I did :
class Login(eSitePage, FormServlet):
def __init__(self):
FormServlet.__init__(self, 'getForm', [formDef])
eSitePage.__init__(self)
def writeForm(self):
return self.renderableForm().htFormTable(bgcolor="#ddddff")
def login(self, fields):
self.write("You are logged in!")
def getContent(self):
x = self.getForm()
#
#getForm() will return None on a POST so..
#
if not x: x = self.writeForm()
return x
This not responding to a POST is strange.
Note that I'm passing 'getForm' to the form servlet so I can do other things
in getContent as well as fetch the form (perhaps that is part of my
problem?)
Thanks for helping me out on this one!
- Ian Sparks.
_______________________________________________
Webware-discuss mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/webware-discuss