[Zope-dev] Access to member functions of a product

Ibaņez Palomar Juan David al028823@alumail.uji.es
Thu, 4 May 2000 19:39:52 +0200 (DFT)


Methods can only be accessed from the web if have documentation strings:

def createClientTable(self):
  """ I'm a doc string """
  (...)

> 
>  Hi folks:
> 
>  I have a problem here. I need to access an internal method of class inside
> a product, but I couldn't do it until now.
>  I supposed that this would be pretty easy, even trivial, but it doesn't
> seems to be so. (maybe it's a lammer question).
>  Well, I have a class definition inside a product, it's like this
>     class DotShop(Folder, RoleManager, Aquisition.Implicit, Persistent):
>         meta_type = 'DotShop'
> 
>         def __init__(self, id, title, dbName):
>             (...)
> 
>         def createClientTable(self):
>                 (...)
> 
> 
>  I need to access createClientTable from a dtml method, but i cant do it.
>  I tried to use this url:
>  http://myserver:8080/folder/shop/createClientTable
>  But it returns an error, telling me that this document doesn't exists.
> 
>  What can I do?
> 
>  Thanx for your help.
> 
>  Fabio Augusto Mazzarino - mazza@radiumsystems.com.br
> 
> 
> _______________________________________________
> Zope-Dev maillist  -  Zope-Dev@zope.org
> http://lists.zope.org/mailman/listinfo/zope-dev
> **  No cross posts or HTML encoding!  **
> (Related lists - 
>  http://lists.zope.org/mailman/listinfo/zope-announce
>  http://lists.zope.org/mailman/listinfo/zope )
> 
>