[Zope] Hello All, Newbee here neds little help. Thanks

Ariel Rivera Merla armerla@marco.org.mx
Fri, 8 Mar 2002 10:21:35 -0600


Hi, im a newbee with ZOPE and with this mailing list trying to do the =
GUEST
BOOK example thats on this page:
http://www.zope.org/Members/michel/ZB/SimpleExamples.dtml

At the end of the example theres a pytho script thats needed to finally =
make
the GuestBook example work, so when i copy it from the page, and paste =
it on
zope (creating a python script) , sope says that thescript has =
errors....
Im not familiar with python, so if anyone could help, ill apreciate it.
Thanks

Heres the python script copied from the page above:



        ## Script (Python) "addEntry"
        ##parameters=3Dguest_name, comments
        ##
        """
        Create a guest book entry.
        """
        # create a unique document id
        id=3D'entry_%d' % len(context.objectIds())

        # create the document
        context.manage_addProduct['OFSP'].manage_addDTMLDocument(id,
                                                 title=3D"", =
file=3Dcomments)

        # add a guest_name string property
        doc=3Dgetattr(context, id)
        doc.manage_addProperty('guest_name', guest_name, 'string')

PD.- T H A N K S
________________________________
La informaci=F3n contenida en este correo electr=F3nico es legalmente =
privada y
confidencial. Cualquier uso, modificaci=F3n, difusi=F3n y/o =
reproducci=F3n de
cualquier persona distinta del destinatario est=E1 prohibida. Si Vd. =
recibe
este mensaje por error, por favor b=F3rrelo y comun=EDquelo al =
remitente.=20