Re: [Zope] Python: Class and method and documentation
Terry Kerr wrote the first method is missing a doc string!
methods in python products that you wish to call from the web need doc strings.
This dates back to the prehistory of Zope - Bobo used the presence or absence of a doc string to mark whether a method was "published" and accessible from the web.
TomJenkins@zentuit.com wrote Are you sure you have to have doc strings? I have a product that has a couple of classes where some methods don't have doc strings. These methods are callable from Zope.
Yes, but are they callable directly from the web? eg http://myhost/blah/myproduct/methodwithoutdocstring ? Anthony -- Anthony Baxter <anthony@interlink.com.au> It's never too late to have a happy childhood.
TomJenkins@zentuit.com wrote Are you sure you have to have doc strings? I have a product that has a couple of classes where some methods don't have doc strings. These methods are callable from Zope.
Yes, but are they callable directly from the web? eg http://myhost/blah/myproduct/methodwithoutdocstring
Ah, this I haven't tried. The methods are called from within a dtml method. -- Tom Jenkins | Got Java? Internet Applications | We do. Architect | tjenkins@devis.com | http://www.devis.com
participants (2)
-
Anthony Baxter -
TomJenkins@zentuit.com