Message86666
The plan is to replace init() with something like:
_db = None
def init():
global _db
db = ...
# initialize database
# set it to global only when it's fully ready
_db = db
and guess_type() with:
def guess_type():
if _db is None:
init()
return _db.guess_type()
(same for other functions) |
|
| Date |
User |
Action |
Args |
| 2009-04-27 14:04:58 | pitrou | set | recipients:
+ pitrou, georg.brandl, djc |
| 2009-04-27 14:04:58 | pitrou | set | messageid: <[email protected]> |
| 2009-04-27 14:04:57 | pitrou | link | issue5853 messages |
| 2009-04-27 14:04:57 | pitrou | create | |
|