[ZDP] BackTalk to Document The Zope Book (2.6 Edition)/Creating
Basic Zope Applications
webmaster at zope.org
webmaster at zope.org
Mon Nov 10 11:34:46 EST 2003
A comment to the paragraph below was recently added via http://zope.org/Documentation/Books/ZopeBook/2_6Edition/SimpleExamples.stx#3-4
---------------
For example, suppose you want to call a method named
'viewFolder' on one of your folders. Perhaps you have many
different 'viewFolder' objects which can be used as methods,
each of which represents a particular view of a folder. Zope
"figures out" which one you want by first looking in the folder
which is named by the "rightmost" portion of the URL. For
example, if you invoke the URL
'http://localhost:8080/Invoices/July/viewFolder', and the
"Invoices" and "July" objects are folders, the invoices object
will be searched for a 'viewFolder' object first. If Zope can't
find the object there it looks for an object named 'viewFolder'
in the folder's containing folder ('July'). If the object can't
be found there, it goes up another level. This process continues
until Zope finds the object or gets to the root folder. If Zope
can't find the object in the root it gives up and raises an
exception.
% Anonymous User - Nov. 10, 2003 11:34 am:
Example is described backwards - Wi\orking right-to-left the July folder is searched first, then it's
container folder Invoices - Duke
More information about the ZDP
mailing list