[Zope] Return of Zoo guestbook problem.

Sandy Britain a.britain@bangor.ac.uk
Mon, 09 Apr 2001 17:31:03 +0100


Hi Ignacio,

replace the quotation mark comments ["""] surrounding line 1: 'Create a
guest book entry' with a simple hash [#] comment preceding it..

.....or just delete the whole comment!   It is those quotation marks the
compiler doesn't like

cheers Sandy

Ignacio Valdes wrote:

> Hello all,
>
> I'm trying to tackle the Zoo GuestBook example from the Zope book:
> http://www.zope.org/Members/michel/ZB/SimpleExamples.dtml
>
> I've got it all working except the last part in the AddEntry python
> script. I now have Zope 2.3.1 installed on my ISP's system. The script
> craters on the first line which reads:
>
>       """
>       Create a guest book entry.
>       """
>       # create a unique document id
>       id='entry_%d' % len(context.objectIds())
>