I'm building an application dealing with multiple
Departments, each with multiple members. Here's a short diagram of the
folders in question
Department (department level information and
forms)
+--Members (department Roster)
+--Individual (individual
level information and forms)
+--Status (tracks status information and history)
The Members index_html (dtml_method) displays
all of the active members (stored in a mySQL database), displaying each member
as a link as follows ("Get" is a Z_SQLMethod)
<ul>
<dtml-in Get>
<li><a href =
"myserver/Individual?member_number=&dtml-member_number;>&dtml-name;</a>
</dtml-in>
</ul>
This calls the Individual/index_html (a
dtml_method), passing it member_number as expected. The Individual folder
has a link allowing the user to add a status value for the
individual
<a
href="myserver/Memebrs/Individual/Status/AddForm/memno=&dtml-memno;;">Add
Status</a><br>
This calls a dtml_document which renders a form to
add a status for the individual. This form calls Status/Add (a dtml
method) which in turn calls AddSQL (an Z_SQLMethod) to post the data to the
database.
<dtml-var my_header>
<dtml-call "AddSQL()">
<dtml-call
"RESPONSE.redirect('Status')>
<dtml-call my_footer>
This post the data to my Status table, but fails on
th redirect.
The problem I'm encountring is the redirect fails because the
Status/index_html cannot find member_number. I thought that member_number
would be in the Individual namespace, but it's nowhere to be found. Since
the Individual folder will eventually have a lot of sub-folders (Addresses,
Phones, Equipment, etc.) I would really like to use Acquisition rather than
passing member_number explicitly. I've re-read the sections in "The Zope
Bible" (pp 72+), "Web Application Construction Kit" (pp 82+), and "The
Zope Book" (multiple places), but I guess I just don't get it.
How and Where do I set the member_number so that all of the sub-folders can
"see" (acquire) it?
Thanks for your time and help.
Greg Lindstrom
Vilonia, Arkansas