(self, id)
| 339 | return 'xml' |
| 340 | |
| 341 | def get(self, id): |
| 342 | try: |
| 343 | with FileCache.getf(self, id) as fp: |
| 344 | if fp is None: |
| 345 | return None |
| 346 | p = Parser() |
| 347 | return p.parse(fp) |
| 348 | except: |
| 349 | FileCache.purge(self, id) |
| 350 | |
| 351 | def put(self, id, object): |
| 352 | if isinstance(object, Element): |