comparison roundup/test/memorydb.py @ 6658:408fd477761f

Add i18n object to roundupdb.Database This makes the i18n object accessible everywhere (including in detectors where localized error messages were impossible). See issue2551184
author Ralf Schlatterbeck <rsc@runtux.com>
date Tue, 03 May 2022 14:51:59 +0200
parents a7072cf4ad7e
children 375d40a9e730
comparison
equal deleted inserted replaced
6657:2453d7b58a92 6658:408fd477761f
236 self.stats = {'cache_hits': 0, 'cache_misses': 0, 'get_items': 0, 236 self.stats = {'cache_hits': 0, 'cache_misses': 0, 'get_items': 0,
237 'filtering': 0} 237 'filtering': 0}
238 self.sessions = Sessions() 238 self.sessions = Sessions()
239 self.otks = OneTimeKeys() 239 self.otks = OneTimeKeys()
240 self.indexer = Indexer(self) 240 self.indexer = Indexer(self)
241 roundupdb.Database.__init__(self)
241 242
242 # anydbm bits 243 # anydbm bits
243 self.cache = {} # cache of nodes loaded or created 244 self.cache = {} # cache of nodes loaded or created
244 self.dirtynodes = {} # keep track of the dirty nodes by class 245 self.dirtynodes = {} # keep track of the dirty nodes by class
245 self.newnodes = {} # keep track of the new nodes by class 246 self.newnodes = {} # keep track of the new nodes by class

Roundup Issue Tracker: http://roundup-tracker.org/