From: Robert F. <fo...@zi...> - 2004-10-18 18:57:42
|
solved this one. it was actually a pretty stupid mistake. in one of the xslt extension modules i wanted to register, i imported cgi (just for the cgi.escape function). i guess this prevented webware from getting at the field storage, since it might already have been consumed. the traceback could still be more telling, i think. regards, robert Robert Forkel wrote: > hi, > just installed webware 0.8.1 and ran into the following problem: > i created my own context using the provided utility, changed the Main > class in Main.py so it does now have only a writeHTML method which > consists of just one call to self.write passing a string generated via > xslt. the page created like this contains a form, but i'm not sure > whether this matters. the first request works fine, on the second > request i get: > > Traceback (most recent call last): > File "./WebKit/ThreadedAppServer.py", line 293, in threadloop > File "./WebKit/ThreadedAppServer.py", line 532, in handleRequest > File "./WebKit/Application.py", line 375, in dispatchRawRequest > File "./WebKit/Application.py", line 945, in createRequestForDict > File "./WebKit/HTTPRequest.py", line 33, in __init__ > File "./WebUtils/FieldStorage.py", line 17, in __init__ > TypeError: unbound method __init__() must be called with FieldStorage > instance as first argument (got FieldStorage instance instead) > > i cannot make any sense of this traceback. any suggestions? > regards, > robert > > > > ------------------------------------------------------- > This SF.net email is sponsored by: IT Product Guide on ITManagersJournal > Use IT products in your business? Tell us what you think of them. Give us > Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out > more > http://productguide.itmanagersjournal.com/guidepromo.tmpl > _______________________________________________ > Webware-discuss mailing list > Web...@li... > https://lists.sourceforge.net/lists/listinfo/webware-discuss > > . > |