Mercurial > libervia-backend
comparison src/memory/persistent.py @ 588:beaf6bec2fcd
Remove every old-style class.
author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> |
---|---|
date | Fri, 18 Jan 2013 17:55:35 +0100 |
parents | 952322b1d490 |
children | e5a875a3311b |
comparison
equal
deleted
inserted
replaced
587:952322b1d490 | 588:beaf6bec2fcd |
---|---|
22 from logging import debug, info, warning, error | 22 from logging import debug, info, warning, error |
23 | 23 |
24 class MemoryNotInitializedError(Exception): | 24 class MemoryNotInitializedError(Exception): |
25 pass | 25 pass |
26 | 26 |
27 class PersistentDict: | 27 class PersistentDict(object): |
28 """A dictionary which save persistently each value assigned | 28 """A dictionary which save persistently each value assigned |
29 /!\ be careful, each assignment means a database write | 29 /!\ be careful, each assignment means a database write |
30 /!\ Memory must be initialised before loading/setting value with instances of this class""" | 30 /!\ Memory must be initialised before loading/setting value with instances of this class""" |
31 storage = None | 31 storage = None |
32 | 32 |