[ZPT] ZPT thread-safety

Phillip Hutchings sitharus at gmail.com
Mon May 9 17:05:11 EDT 2005


On 10/05/05, Sasa Milosavljevic <sasam at ceetel.co.yu> wrote:
> I developing a zope application as Zope product.
> My GUI is based on ZPT.
> All page templates are instances of PageTemplateFile class,
> and all of them are  class attributes of product classes.
> So in one time  many threads from thread pool may work with same ZPT
> instance.
> Are zpt instances  as class attributes thread-safe solution?
> Thanks in advance.

I would certainly hope so, as otherwise a large number of Zope
products would break. Unless you're doing odd things with
system/external libraries, anything in Zope is thread safe, the ZODB
takes care of update conflicts.

-- 
Phillip Hutchings
http://www.sitharus.com/
sitharus at gmail.com / sitharus at sitharus.com


More information about the ZPT mailing list