[Zope] /read on template fails
Andrea Mennucc
debian@Tonelli.sns.it
Thu, 21 Mar 2002 14:30:21 +0100
hi
thanks for the answer (which I am CCing to debian bug database)
next question:
http://localhost:9673/FileLib/index_html
is a page template; so the method
http://localhost:9673/FileLib/index_html/read
is part of the page template machinery (i.e. part of Zope): so,
is this a bug in Zope?
and, btw: where is this method in Zope?
a.
On Thu, Mar 21, 2002 at 01:45:00PM +0100, Petter Enholm wrote:
>
> You are trying to access a Python method that does not have a doc string.
> All publishable methods in Zope must have a docstring.
>
> Example:
>
> def read(self, REQUEST =None):
> """ This is the docstring and should say something about this method"""
>
> if self.var != this and that
> and more python code follows ...
>
> Best regards
> Petter Enholm
> www.snapper.no
>
>
> ----- Original Message -----
> From: "Andrea Mennucc" <debian@Tonelli.sns.it>
> To: <zope@zope.org>
> Sent: Thursday, March 21, 2002 1:02 PM
> Subject: [Zope] /read on template fails
>
>
> > hi
> >
> > I have this problem, which I have also added into Debian's bug database
> >
> > ----- Forwarded message from Andrea Mennucc <debian@Tonelli.sns.it> -----
> > Package: zope
> > Version: 2.5.1b2
> > Severity: normal
> >
> > hi
> >
> > I am preparing a page template
> >
> > I would like to use
> > http://localhost:9673/FileLib/index_html/read
> > to read the template, but it fails, saying
> > --
> > Zope has encountered a problem publishing your object.
> > The object at http://localhost:9673/FileLib/index_html/read has an empty
> or
> > missing docstring. Objects must have a docstring to be published.
> > --
> >
> > bye and thanks
> >
> > a.
> >
> > -- System Information
> > Debian Release: 3.0
> > Architecture: i386
> > Kernel: Linux Tonelli 2.4.17 #1 SMP ven mar 15 17:35:24 CET 2002 i686
> > Locale: LANG=it_IT, LC_CTYPE=it_IT
> >
> > Versions of packages zope depends on:
> > ii libc6 2.2.5-3 GNU C Library: Shared
> libraries an
> > ii python 2.1.2-2 An interactive
> object-oriented scr
> >
> >
> > ----- End forwarded message -----
> >
> > --
> > Andrea Mennucc
> > "E' un mondo difficile. Che vita intensa!" (Renato Carotone)
> >
> > _______________________________________________
> > Zope maillist - Zope@zope.org
> > http://lists.zope.org/mailman/listinfo/zope
> > ** No cross posts or HTML encoding! **
> > (Related lists -
> > http://lists.zope.org/mailman/listinfo/zope-announce
> > http://lists.zope.org/mailman/listinfo/zope-dev )
>
>
--
Andrea Mennucc
"E' un mondo difficile. Che vita intensa!" (Renato Carotone)