Last change
on this file since 100 was 100, checked in by ruud, 19 months ago |
python installs also wheel to avoid error messages
|
File size:
549 bytes
|
Line | |
---|
1 | from geniusweb.actions.Action import Action
|
---|
2 | from geniusweb.inform.Inform import Inform
|
---|
3 |
|
---|
4 |
|
---|
5 | class ActionDone (Inform):
|
---|
6 | '''
|
---|
7 | Informs that someone did an action
|
---|
8 | '''
|
---|
9 |
|
---|
10 | def __init__(self, action:Action ):
|
---|
11 | self._action = action;
|
---|
12 |
|
---|
13 |
|
---|
14 | def getAction(self) -> Action:
|
---|
15 | return self._action;
|
---|
16 |
|
---|
17 | def __repr__(self):
|
---|
18 | return "ActionDone[" + str(self._action) + "]"
|
---|
19 |
|
---|
20 | def __eq__(self, other):
|
---|
21 | return isinstance(other, self.__class__) \
|
---|
22 | and super().__eq__(other) \
|
---|
23 | and self._action == other._action
|
---|
24 |
|
---|
25 | def __hash__(self):
|
---|
26 | return hash(self._action) |
---|
Note:
See
TracBrowser
for help on using the repository browser.