[Zope] problem with retrieving Archives with user input from the form
Hamzat kamal
hamzatk@dnetsystems.net
Sat, 08 Sep 2001 19:50:37 +0200
--=====================_13446855==_.ALT
Content-Type: text/plain; charset="us-ascii"; format=flowed
Dear Zopatistals
I am have one serious problem which I will like you to assist me. I am
keeping archives which is reference by the users by typing the file name
into a form displayed on the web. i stored the user input into a var name
called date_code.
<input type="text" name="date_code">.
Thereafter in my index_html, i then use
<dtml-var expr="_.getitem(_.string.lower(date_code),1)">
to render the file.
This work perfectly when a user type in the value for the date_code var.
My problem is this.
I have some other links which suppose to use the date_code value which the
user type to display their contents as well, and i have already stored
those content in their various folders, but to my surprise when clicked on
these links this is the error message i got:
Error Type: NameError
Error Value: date_code
Please i need your assistance as soon as posssble.
This is the url of the site :http://www.champion-newspapers.com
click on archive button when a newpage is displayed ignore the instruction
and press logon button . Another page will be displayed asking you to enter
the date code, for the purpose of this test type friday_1008_html and click
view button.
This will display the teaser archive for the news item, there after try to
click on editorial on the left navi you will then see the error, despite
the fact that i have the copy of friday_1008_html in the editorial folder.
My impression is that since i have been able to use the date_code to
display the teaser for the news item i should be able to use for all other
link items on this page.
thanks for your care.
Hamzat Kamal.
--=====================_13446855==_.ALT
Content-Type: text/html; charset="us-ascii"
<html>
Dear Zopatistals<br>
<br>
I am have one serious problem which I will like you to assist me. I am
keeping archives which is reference by the users by typing the file name
into a form displayed on the web. i stored the user input into a
var name called date_code. <br>
<br>
<input type="text" name="date_code">.<br>
<br>
Thereafter in my index_html, i then use <br>
<dtml-var
expr="_.getitem(_.string.lower(date_code),1)"><br>
to render the file.<br>
<br>
This work perfectly when a user type in the value for the date_code
var.<br>
<br>
My problem is this.<br>
<br>
I have some other links which suppose to use the date_code value which
the user type to display their contents as well, and i have already
stored those content in their various folders, but to my surprise when
clicked on these links this is the error message i got:<br>
<br>
<b>Error Type: NameError<br>
Error Value: date_code<br>
<br>
<br>
<br>
</b>Please i need your assistance as soon as posssble.<br>
<br>
This is the url of the site
:<a href="http://www.champion-newspapers.com/" eudora="autourl"><font color="#0000FF"><u>http://www.champion-newspapers.com</a><br>
<br>
</u></font>click on archive button when a newpage is displayed ignore the
instruction and press logon button . Another page will be displayed
asking you to enter the date code, for the purpose of this test type
friday_1008_html and click view button.<br>
<br>
This will display the teaser archive for the news item, there after try
to click on editorial on the left navi you will then see the error,
despite the fact that i have the copy of friday_1008_html in the
editorial folder.<br>
<br>
My impression is that since i have been able to use the date_code to
display the teaser for the news item i should be able to use for all
other link items on this page.<br>
<br>
thanks for your care.<br>
<br>
Hamzat Kamal.<br>
<br>
</html>
--=====================_13446855==_.ALT--