Ian,
I'm running into some difficulty running WSGI-Webware. It seems to be getting hung up in urlparser.py. the 'application' object is always 'None', I get a 404 error.
The problem seems to be that the 'get_application' method always returns a null values because the 'constructors' environment dictionary has null key-pairs:
{'*': , '.py': , 'dir': }
I'm not clear what you mean by this..? You mean, there is a None value in that dictionary? That would be a problem; a None value means that there is explicitly no constructor, and you should get a 404.
The value of 'self.filename' is the correct path to my test page, so it is parsing the URL correctly.
I'm not sure what self.filename you are speaking of? You mean the filename argument to get_application?
# test.py
from WSGIWebKit.wkservlet import Page
class test(Page): def writeHTML(self): self.writeln("This is a working site!")
How does 'get_application()' work, and what do I need to set to make it happy?
Well, get_application should run make_py(environ, filename). make_py should load the module, and look for a variable called "application", which is a ready-made WSGI application. Or, if it fails to find that (which should be the case), then it will look for a variable with the same name as the module (i.e., test), and it will call that value to get an application. Which is what should happen.
-- Ian Bicking / [EMAIL PROTECTED] / http://blog.ianbicking.org
------------------------------------------------------- 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 [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/webware-discuss
