Okay, it sounds like this 1) works and 2) works for
the particular application, instead of just for WebKit as
a whole.

So, instead of modifying web_kit, you can use this,
and if the speed is a big issue, you can probably
modify the processExtraURLPath routine in Application.py
(or override it, but where?) to first
directly look for a string ending in .xml, and
then split on ".py":

    xmlhandler='/WK/XML/mainhandler.py'
    xmlfilehandler='/usr/local/Webware/WebKit/XML/mainhandler.py'

    if urlPath[-4:] == '.xml'
      junk,extraURLPath = ssPath.split('.py')
      urlPath=xmlhandler
      ssPath=xmlfilehandler

Don't know whether this saves googles of nanoseconds
over the original method


Geoffrey Talvola wrote:
> I'm glad to hear that ExtraPathInfo works in 0.7.  I tried to use it myself
> a few weeks ago and failed, but I probably did something wrong.  I'll try
> again when I have a chance.
> 
> - Geoff
> 
> 
>>-----Original Message-----
>>From: Matt Feifarek [mailto:[EMAIL PROTECTED]]
>>Sent: Wednesday, May 15, 2002 1:33 PM
>>To: [EMAIL PROTECTED]; Sam Brauer
>>Cc: [EMAIL PROTECTED]
>>Subject: RE: [Webware-discuss] file handling servlet
>>
>>
>>| WebKit doesn't really have a good solution for this --
>>| yet.  There is a setting "ExtraPathInfo" which is
>>| supposed to do what you're asking for here.  But last
>>| time I checked, the setting wasn't working :-( and it
>>| hasn't been fixed in the meantime.  I suppose that means
>>| nobody is using it.  Also, ExtraPathInfo is a global
>>
>>I've been experimenting with it. It works fine in 0.7 release.
>>
>>I put this into an awake() method:
>>
>>extra = transaction.request().extraURLPath()
>>if extra:
>>      # if there is one, check how many parts it has
>>      extra = self.extra = extra.split('/')
>>
>>Then you've got either 'None' or a list of strings that 
>>correspond to extra
>>url bits.
>>
>>So, I can do http://localhost/MyContext/foo/bar/baz/8
>>
>>which is actually hitting an index.py that lives in 
>>MyContext, and extra
>>looks like this:
>>['foo','bar','baz','8']
>>
>>Sure beats mod_rewrite in my book.

-- 
Bill Eldridge
Radio Free Asia
[EMAIL PROTECTED]



_______________________________________________________________

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