Have you turned on ExtraPathInfo (in Application.config)? If you do,
then you can use self.request().extraURLPath() to get the rest of the
URL.
On Sat, 2003-03-01 at 20:02, Jeremy Lowery wrote:
> Hello,
>
> I'm writing my own publisher, and I don't understand why mod_python doesn't
> include the full pathname in the req.filename attribute.
>
> In my .htaccess
>
> SetHandler python-program
> # My Custom Publisher in this directory
> PythonHandler ServletPublisher
> PythonDebug On
>
> I make a request:
> http://localhost/~jermnsar/foo/bar/test/hmm?dat=val&val2=dat2
>
> and printing out the variables:
>
> req.uri /~jermnsar/foo/bar/test/hmm
> req.filename C:/Documents and Settings/jermnsar/My Documents/My Website/foo
>
>
> What would be an easy way to resolve to
> C:/Documents and Settings/jermnsar/My Documents/My Website/foo/bar/test/hmm
>
> or at least easily extract the /bar/test/hmm
>
> Would be easy to do with some string manip I suppose, but I'm looking for
> faster (i.e. quicker CPU wise) way.
>
> Why does the translation from the web path to the physical path only include
> the first element?
>
> Windows XPsp1/Apache 2.0.44/mod_python 3.0.1
>
> Thanks
> Jeremy S Lowery
>
>
> _________________________________________________________________
> The new MSN 8: advanced junk mail protection and 2 months FREE*
> http://join.msn.com/?page=features/junkmail
>
>
>
> -------------------------------------------------------
> This sf.net email is sponsored by:ThinkGeek
> Welcome to geek heaven.
> http://thinkgeek.com/sf
> _______________________________________________
> Webware-discuss mailing list
> Webware-discuss@...
> https://lists.sourceforge.net/lists/listinfo/webware-discuss
|