source: geniuswebcore/geniusweb/inform/ActionDone.py@ 62

Last change on this file since 62 was 59, checked in by Wouter Pasman, 3 years ago

#44 manual commit of first public release, because this will cause the dist directory to move

File size: 549 bytes
Line 
1from geniusweb.actions.Action import Action
2from geniusweb.inform.Inform import Inform
3
4
5class 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.