Hallo, Shayne ONeill hat gesagt: // Shayne ONeill wrote: > Does anyone know how to somehow parse an url input as follows;- > > Say I have this url > > http://rararara/blah/wiki/frontpage > where blah is the project/container/whatever and wiki > points to wiki.pi > > Is there a way to get this to work, so it executes wiki.py and passess the > frontpage part of the url to wiki.py?
Yes, I use this extensively for example on http://normalmailorder.de I use Page.awake somehow like this: def awake(self, trans): Page.awake(self, trans) self._extra =self.request().extraURLPath().split('/') Now "extra" holds a list of all path components after the servlet name, but no query-parameters (i.e. no "?edit=true") You need to enable extraURL-parsing in Application.config first. ciao -- Frank Barknecht _ ______footils.org__ ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Webware-discuss mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/webware-discuss
