[ZPT] zope and mutual exclusion reserved area

Phillip Hutchings sitharus at gmail.com
Thu Jan 13 15:38:18 EST 2005


> So you want to prevent a user who is to all intents and purposes the
> same user as you from getting access to an area that you still need
> access to?
> 
> Create a new user. It's the only way. As far as Zope is concerned it's
> the same user getting access to both places.

Oh, and for your actual problem, it's fairly simple. You need a
'timeout' value. Record the timestamp each time the admin does
something, and if the last operation is, say, 30 minutes ago you
override the lock and let the other user access it.

Sharing usernames/passwords is still a bad idea ;)
-- 
Phillip Hutchings
http://www.sitharus.com/
sitharus at gmail.com / sitharus at sitharus.com


More information about the ZPT mailing list