source: geniuswebcore/geniusweb/deadline/Deadline.py@ 100

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: 607 bytes
Line 
1
2from pyson.JsonSubTypes import JsonSubTypes
3from pyson.JsonTypeInfo import JsonTypeInfo, As, Id
4
5from abc import ABC, abstractmethod
6
7@JsonTypeInfo(use = Id.NAME, include = As.WRAPPER_OBJECT)
8@JsonSubTypes( ["geniusweb.deadline.DeadlineRounds.DeadlineRounds","geniusweb.deadline.DeadlineTime.DeadlineTime" ])
9class Deadline(ABC):
10 '''
11 Deadline indicates how long a session will be allowed to run. So it contains
12 "relative" data (relative to the unknown start time of the session)
13 '''
14 @abstractmethod
15 def getDuration(self):
16 '''
17 @return the duration of this deadline, measured in milliseconds
18 '''
Note: See TracBrowser for help on using the repository browser.