[Zope] Sharing global data between threads / locking a method

Jim Abramson jabramson at wgen.net
Mon Jun 27 10:40:46 EDT 2005


> A possible solution:  create a property field on the folder 
> where the external methods are stored.  Have your external 
> method update this property field when the external method 
> starts and again when it exits.  This way you can test 
> whether or not the external method is currently in operation. 
>  You could store this property field on a temp_folder for 
> faster performance.

Curious,

- to save variables in this way, must a Folder property be used, or
would a class variable set on something that extends Folder work the
same?

- why does temp_folder perform faster for this technique?

Thx
Jim




More information about the Zope mailing list