[Zope-dev] Catching "extra path"
Ian Beatty
beatty at physics.umass.edu
Tue Mar 9 14:33:13 EST 2004
Hi again.
I'm chipping away at the problem I asked about earlier ("Product Access to
Files") -- or perhaps just beating my head against it -- and I've got
another question.
If I'm writing a Python script within the ZMI, any URL that resolves to my
script will invoke the script, even if the URL has "extra" stuff appended:
http://host/folder/script/a/b/c
will invoke a script at /folder/script. Furthermore, I can get at the
"a/b/c" part from within the script by accessing 'traverse_subpath'.
The question is, how can I do this from within a Python-based product?
Calling
http://host/folder/object/method/a/b/c
fails to invoke the method 'method' on my custom object 'object'. Instead, I
get a "Cannot locate object" page.
It's hard to believe there's something I can do with a ZMI Python script
that I can't do in a Python product...
Thanks,
..Ian
-- --- -- --- -- --- -- --- -- --- -- --- -- --- -- --- -- --- --
Dr. Ian Beatty beatty at physics.umass.edu
Physics Education Research Group voice: 413.545.9483
Department of Physics fax: 413.545.4884
Univ. of Massachusetts AIM: (available upon request)
Amherst, MA 01003-4525 USA http://umperg.physics.umass.edu/
-- --- -- --- -- --- -- --- -- --- -- --- -- --- -- --- -- --- --
More information about the Zope-Dev
mailing list