durusmail: durus-users: About storage locking
About storage locking
About storage locking
Neil Schemenauer
2004-08-05
On Thu, Aug 05, 2004 at 03:19:11PM -0300, Rodrigo Dias Arruda Senra wrote:
>  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.

Something like "self.storage = None" should do it.  I suppose we
should provide a close() method.

  Neil

reply