[Zope] Version and lock

Oliver Bleutgen myzope@gmx.net
Mon, 07 Apr 2003 10:01:58 +0200


Pino Silvestre wrote:
> Hello everyone,
>   is there any method (usable from script) to understand if a document 
> is locked by a version or if a version is opened? I tried 
> locked_in_version but it returns always true (it does not worry if the 
> object is locked or not).
> 
> Thanks to all, Pino
> 




Please take a look at the zope source, under 
lib/python/OFS/dtml/main.dtml, this is the dtml file for the managment 
method of folders, which does what you want to do.


HTH,
oliver