[Zope] Help needed with __bobo_traverse__

jkinsley jkinsley@bticc.net
Tue, 19 Feb 2002 22:10:39 -0500 (EST)


Greetings,

I have a Product, myObject, that is acting as a Site Root (containing 
a Site Root object).

So now http://localhost/myObject/rest/of/path/ is accessable as 
http://localhost/rest/of/path/

Now then I want to add an optional 'virtual sub-object' in the path 
so that when http://localhost/refid/rest/of/path/ is called the 
following will happen.

	1. I can extract refid (the virtual sub-object)

	2. Do a database lookup with refid

	3. Set session data based on lookup results

	4. Return a response as if http://localhost/rest/of/path/ 
	   were called without the refid segment in the path

I have created a __bobo_traverse__ method in myObject and 
accomplished the first three steps, but I have no idea what to return 
to complete step four.

Any help will be greatly appreciated since I have spent the last 
eight hours trying to figure this out.


Regards,
Jarrod Kinsley