[Zope] [ZOPE} Question: Customize Guestbook

Sungmook Kim dotorimook@yahoo.com
Sun, 5 Jan 2003 01:15:44 +0100 (CET)


--0-68793895-1041725744=:74307
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit


Hi,

I am new to Zope and would like to ask a question regarding the guestbook which was introduced in the zope book.

I want to add two more things to my guestbook; the visitor's IP address and email address. What do I have to add in the python code?

What I've done so far was (at least for the email):

1. Added the new parameters (email, etc.) to the HTML form.
2. Changed the addEntryAction DTML code to reflect the new parameters:
   <dtml-call expr="addEntry(guest_name, comments, email, etc.)">
3. Added the line in the addEntry script with the new parameters:
   doc.manage_addProperty('email', email, 'string')

But I receive an error message. 

Can someone help me out? 

Thank you.

 



---------------------------------
Gesendet von http://mail.yahoo.de.
Weihnachts-Einkäufe ohne Stress! http://shopping.yahoo.de.
--0-68793895-1041725744=:74307
Content-Type: text/html; charset=iso-8859-1
Content-Transfer-Encoding: 8bit

<P>Hi,</P>
<P>I am new to Zope and would like to ask a question regarding the guestbook which was introduced in the zope book.</P>
<P>I want to add two more things to my guestbook; the visitor's IP address and email address. What do I have to add in the python code?</P>
<P>What I've done so far was (at least for the email):</P>
<P>1. Added the new parameters (email, etc.) to the HTML form.<BR>2. Changed the addEntryAction DTML code to reflect the new parameters:<BR>&nbsp;&nbsp; &lt;dtml-call expr="addEntry(guest_name, comments, email, etc.)"&gt;<BR>3. Added the line in the addEntry script with the new parameters:<BR>&nbsp;&nbsp; doc.manage_addProperty('email', email, 'string')</P>
<P>But I receive an error message. </P>
<P>Can someone help me out? </P>
<P>Thank you.</P>
<P>&nbsp;</P><p><br><hr size=1>Gesendet von <a href=http://de.yahoo.com/mail_de/tagline/?http://mail.yahoo.de>http://mail.yahoo.de</a>.<br>
Weihnachts-Einkäufe ohne Stress! <a href=http://de.yahoo.com/mail_de/tagline/?http://de.shopping.yahoo.com>http://shopping.yahoo.de</a>.
--0-68793895-1041725744=:74307--