[Zope] Python function within a ZClass...

Toby Dickenson tdickenson@geminidataloggers.com
Thu, 17 Aug 2000 15:16:12 +0100


On Thu, 17 Aug 2000 15:42:17 +0200, Marcin Kasperski
<Marcin.Kasperski@softax.com.pl> wrote:

>Vincent wrote:
>> 
>> Is it possible to access Python function within a ZClass ?
>> 
>> If yes, how should I do that ?
>> 
>
>Two methods
>
>1) create External Method (python code in separate file placed in
>Extensions directory + information which file should be called in Zope
>management interface)
>
>2) create Python Method (you must install non-standard product providing
>Python Methods) - then you edit Python code just via Zope management
>interface (like DTML Documents)
>

3) create a python class that does what provides the methods, and use
that as a base class for your ZClass
 pro: easy to add more methods
 con: need to restart server after changes
      need to do this before you create the ZClass


Toby Dickenson
tdickenson@geminidataloggers.com