Python function within a ZClass...
Is it possible to access Python function within a ZClass ? If yes, how should I do that ? Thanks
On Wed, Aug 16, 2000 at 06:11:32PM +0100, Vincent wrote:
Is it possible to access Python function within a ZClass ?
If yes, how should I do that ?
Just create an External Method. -- Martijn Pieters | Software Engineer mailto:mj@digicool.com | Digital Creations http://www.digicool.com/ | Creators of Zope http://www.zope.org/ | ZopeStudio: http://www.zope.org/Products/ZopeStudio -----------------------------------------------------
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) -- Serwis nie tylko mieszkaniowy: http://www.mk.w.pl | | You have the right to accept your responsibilites instead of having | them assigned to you. (Ken Beck's Third Developer Right) |
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
participants (4)
-
Marcin Kasperski -
Martijn Pieters -
Toby Dickenson -
Vincent