[PEAK] Does a PEAK-ized webware esist ?
Ian Bicking
ianb at colorstudy.com
Fri Jan 30 16:58:13 EST 2004
Wayne Larsen wrote:
> That is what I was looking at -- I was trying to understand how peak.web
> maps from a url to an actual resource, since I have a feeling the
> solution I'm looking for is some combination of the two.
Well, if you are running PEAK (or peak.web, I suppose) inside Webware,
then you'll want a URLParser that delegates to PEAK's URL parsing. The
parse() method is the only method you should need to implement. You can
invoke your custom parser in __init__.py, and there are instructions in
URLParser.FileParser.parseInit on how to do that.
Then you'll have to wrap the result of the traversal in Webware's
servlet API, which is fairly minimal, though wrapping the request and
response objects probably take more work. Probably not too hard,
though, all the data is the same, even if the method names and specific
object composition are probably different.
Ian
More information about the PEAK
mailing list