1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 """Implementation of ITargetDetails for terminal implementation and
17 extension."""
18
19 from muntjac.event.dd.target_details import ITargetDetails
20
21
23 """A HashMap backed implementation of L{ITargetDetails} for terminal
24 implementation and for extension.
25 """
26
27 - def __init__(self, rawDropData, dropTarget=None):
28 self._data = dict()
29
30 self._data.update(rawDropData)
31 self._dropTarget = dropTarget
32
33
36
37
39 if key in self._data:
40 return self._data[key]
41 else:
42 self._data[key] = value
43 return None
44
45
47 return self._dropTarget
48