import os
from sfa.util.xml import XML
+
class SimpleStorage(dict):
"""
Handles storing and loading python dictionaries. The storage file created
db_filename = None
type = 'dict'
- def __init__(self, db_filename, db = {}):
-
+ def __init__(self, db_filename, db = None):
+ if db is None: db={}
dict.__init__(self, db)
self.db_filename = db_filename