(self, key, config=None)
| 22 | class CsDataBag(object): |
| 23 | |
| 24 | def __init__(self, key, config=None): |
| 25 | self.data = {} |
| 26 | self.db = DataBag() |
| 27 | self.db.setKey(key) |
| 28 | self.db.load() |
| 29 | self.dbag = self.db.getDataBag() |
| 30 | if config: |
| 31 | self.fw = config.get_fw() |
| 32 | self.cl = config.cmdline() |
| 33 | self.config = config |
| 34 | |
| 35 | def dump(self): |
| 36 | print(self.dbag) |