From: Stephan D. <ste...@gm...> - 2002-10-29 17:13:20
|
The sad thing is that this bug is known for quite a long time (see http://sourceforge.net/tracker/?atid=104866&group_id=4866&func=browse) But hey, maybe one of the gurus who understands the Application.py code will have a look at it. Stephan On Tuesday 29 October 2002 17:53, you wrote: > Hi, > > Frank Barknecht hat gesagt: // Frank Barknecht wrote: > > I started using Webware CVS and my PyDiddy-Wiki stopped working :( > > There are two problems. First extraURLPath seems to have changed and > > uses a new algorithm. So my old code: > > > > path_info = self.request().extraURLPath() > > > > gives an empty path_info. > > I can provide some more information on this problem, that seems not so > easy to solve, as I expected. > > One of the bad guys seems to be serverSideInfoForRequestNewAlgorithm() in > Application.py. > > Here I get different paths computed by the old and by the new > algorithm. Example, when calling > http://localhost/wk.cgi/pydiddy/EditingTips: > > serverSideInfo should be: > ('/dos/ibm/hdc18/f/src/python/webware/workdir/pydiddy/Main.py', > '/dos/ibm/hdc18/f/src/python/webware/workdir/pydiddy', 'pydiddy') > EditingTips serverSideInfo is : > ('/dos/ibm/hdc18/f/src/python/webware/workdir/pydiddy/Main.py', > '/dos/ibm/hdc18/f/src/python/webware/workdir/pydiddy', 'pydiddy') > > (sorry for the long paths) > > "pydiddy" is the context, "EditingTips" is part of the extraURLPath, > or better, it should be. I tried to narrow down, why this is removed > from the extraURL. What puzzles me a bit is, that the current > request's urlPath() is empty. I changed Application.py a bit to have > serverSideInfoForRequestNewAlgorithm() print out the urlPath > > print 'serverSideInfo should be:', info, extraPath > > fullPath = request.urlPath() > print "fullPath: %s" % fullPath > > and then I get this in the logs: > fullPath: /pydiddy/ > when I thought, that should be "/pydiddy/EditingTips", or am I wrong? > > I more and more get the feeilg, that something here is very wrong, but > I have no idea, what this might be. > > ciao |