Adds a new crash to the container. If the crash appears to be already known, it's ignored. @see: L{Crash.key} @type crash: L{Crash} @param crash: Crash object to add.
(self, crash)
| 1489 | return self.__CrashContainerIterator(self) |
| 1490 | |
| 1491 | def add(self, crash): |
| 1492 | """ |
| 1493 | Adds a new crash to the container. |
| 1494 | If the crash appears to be already known, it's ignored. |
| 1495 | |
| 1496 | @see: L{Crash.key} |
| 1497 | |
| 1498 | @type crash: L{Crash} |
| 1499 | @param crash: Crash object to add. |
| 1500 | """ |
| 1501 | if crash not in self: |
| 1502 | key = crash.key() |
| 1503 | skey = self.marshall_key(key) |
| 1504 | data = self.marshall_value(crash, storeMemoryMap=True) |
| 1505 | self.__db[skey] = data |
| 1506 | |
| 1507 | def __delitem__(self, key): |
| 1508 | """ |
no test coverage detected