Remove obsolete test code from setup.py
[cds-indico.git] / indico / modules / scheduler / fossils.py
blobb865fc11052a76b7839b97ca971f29ef5d7f3b6b
1 # This file is part of Indico.
2 # Copyright (C) 2002 - 2015 European Organization for Nuclear Research (CERN).
4 # Indico is free software; you can redistribute it and/or
5 # modify it under the terms of the GNU General Public License as
6 # published by the Free Software Foundation; either version 3 of the
7 # License, or (at your option) any later version.
9 # Indico is distributed in the hope that it will be useful, but
10 # WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 # General Public License for more details.
14 # You should have received a copy of the GNU General Public License
15 # along with Indico; if not, see <http://www.gnu.org/licenses/>.
17 """
18 Fossils for tasks
19 """
21 from indico.util.fossilize import IFossil
22 from indico.util.fossilize.conversion import Conversion
24 class ITaskFossil(IFossil):
25 """
26 A fossil representing a scheduler task
27 """
28 def getId():
29 pass
31 def getTypeId():
32 pass
34 def getStartOn():
35 pass
36 getStartOn.convert = Conversion.datetime
38 def getStartedOn(self):
39 pass
40 getStartedOn.convert = Conversion.datetime
42 def getEndedOn():
43 pass
44 getEndedOn.convert = Conversion.datetime
46 def getCreatedOn():
47 pass
48 getCreatedOn.convert = Conversion.datetime
51 class ITaskOccurrenceFossil(IFossil):
52 """
53 A task occurrence
54 """
56 def getId():
57 pass
59 def getStartedOn(self):
60 pass
61 getStartedOn.convert = Conversion.datetime
63 def getEndedOn(self):
64 pass
65 getEndedOn.convert = Conversion.datetime
67 def getTask(self):
68 pass
69 getTask.result = ITaskFossil