[Zope-dev] REQUEST.steps
Evan Simpson
evan@4-am.com
Wed, 28 Feb 2001 20:19:30 -0500
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().