Re: [Zope] Python function within a ZClass...

2000-08-17 Thread Toby Dickenson

On Thu, 17 Aug 2000 15:42:17 +0200, Marcin Kasperski
<[EMAIL PROTECTED]> 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
[EMAIL PROTECTED]

___
Zope maillist  -  [EMAIL PROTECTED]
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 )




Re: [Zope] Python function within a ZClass...

2000-08-17 Thread Marcin Kasperski

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)  
|

___
Zope maillist  -  [EMAIL PROTECTED]
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 )




Re: [Zope] Python function within a ZClass...

2000-08-16 Thread Martijn Pieters

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 Engineermailto:[EMAIL PROTECTED]
| Digital Creations  http://www.digicool.com/
| Creators of Zope   http://www.zope.org/
| ZopeStudio: http://www.zope.org/Products/ZopeStudio
-

___
Zope maillist  -  [EMAIL PROTECTED]
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 )




[Zope] Python function within a ZClass...

2000-08-16 Thread Vincent

Is it possible to access Python function within a ZClass ?

If yes, how should I do that ?

Thanks

___
Zope maillist  -  [EMAIL PROTECTED]
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 )