Is it alright to rely on this attribute of the REQUEST object? If so, is it affected by virtual hosting? cheers, Chris
Erik Enge wrote:
On Wed, 28 Feb 2001, Chris Withers wrote:
Is it alright to rely on this attribute of the REQUEST object?
Hm What is 'steps' in context of REQUEST?
It appears to be a list of object ids that have been traversed to get you to where you are, starting with the object id of the first object off the ZODB root. And, to answer my own question, It doesn't appear to be affected by Virtual Hosting. cheers, Chris
Chris Withers wrote:
Erik Enge wrote:
On Wed, 28 Feb 2001, Chris Withers wrote:
Is it alright to rely on this attribute of the REQUEST object?
Hm What is 'steps' in context of REQUEST?
It appears to be a list of object ids that have been traversed to get you to where you are, starting with the object id of the first object off the ZODB root.
So it's the same as REQUEST.PARENTS?
And, to answer my own question, It doesn't appear to be affected by Virtual Hosting.
Is REQUEST.PARENTS? Richard -- Richard Jones richard@bizarsoftware.com.au Senior Software Developer, Bizar Software (www.bizarsoftware.com.au)
REQUEST has a lot of standard attributes and keys, some of which are obsolete. Deprecated attributes: o script: URL for the root object, computed from environment variables including SCRIPT_NAME. Replace with REQUEST['BASE1'] or REQUEST['BASEPATH1'] o base: URL for level above root object, computed from same environment variables as script. Replace with REQUEST['BASE0'] or REQUEST['BASEPATH0'] Unaffected by virtual hosting: o steps: list of names traversed during publishing. o PARENTS: list of objects traversed during publishing, including objects added by __bobo_traverse__ hooks. The order of this list is reversed once publishing is complete. Virtual hosting-aware keys: o URL: URL of current traversal target relative to VirtualRoot. o URLn: URL with n path elements removed from the end. o URLPATHn: URLn without SERVER_URL. o BASEn: URL including only the first n-1 elements after the VirtualRoot. o BASEPATHn: BASEn without SERVER_URL. o SERVER_URL: URL of the server ('http://hostname:port') Cheers, Evan @ digicool & 4-am o VirtualRootPhysicalPath: The physical path of the virtual root. Used to compute absolute_url().
participants (4)
-
Chris Withers -
Erik Enge -
Evan Simpson -
richardï¼ bizarsoftware.com.au