durusmail: durus-users: About storage locking
About storage locking
About storage locking
Rodrigo Dias Arruda Senra
2004-08-05
 Hi,

 first of all thanks to MEMS-Exchange for cooking up Durus!

 I'm planning to use it to monitor 'network traffic events'
 in a  trucks_over_cellular|satelite_nets monitoring system.

 I noticed that file_storage.py locks the storage when the module
 is imported. I'm under the impression that there is no API to
 unlock the file. Are there any plans to do it ?

 This came up when I was writing unittest fixtures. I did storage
 initialization in the setUp, but could not find an *elegant* way to
 clean it up in tearDown.

 I could always dig the handler and explicitly unlock the file, but
 I'm certain that are better ways to do it, and curious if you have
 stumbled into this before.

 best regards,
 Rod Senra

reply