See the definition for __before_publishing_traverse__ in Zope's lib/python/Shared/DC/Scripts/Bindings.py.
HTH, - C On Tue, 2004-03-09 at 14:33, Ian Beatty wrote: > 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 [EMAIL PROTECTED] > 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/ > -- --- -- --- -- --- -- --- -- --- -- --- -- --- -- --- -- --- -- > > > > _______________________________________________ > Zope-Dev maillist - [EMAIL PROTECTED] > http://mail.zope.org/mailman/listinfo/zope-dev > ** No cross posts or HTML encoding! ** > (Related lists - > http://mail.zope.org/mailman/listinfo/zope-announce > http://mail.zope.org/mailman/listinfo/zope ) _______________________________________________ Zope-Dev maillist - [EMAIL PROTECTED] http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )