Skip to content
Snippets Groups Projects
Commit d0ea028c authored by Tomáš Pecka's avatar Tomáš Pecka
Browse files

Enums compatible with py3.5

parent ae7cb352
No related branches found
No related tags found
No related merge requests found
Showing
with 129 additions and 112 deletions
......@@ -2,6 +2,4 @@ import enum
 
 
class BaseEnum(enum.Enum):
@classmethod
def auto(cls):
return enum.auto()
\ No newline at end of file
pass
\ No newline at end of file
from . import BaseEnum
 
class ClassesLang(BaseEnum):
CS = BaseEnum.auto()
DE = BaseEnum.auto()
EN = BaseEnum.auto()
ES = BaseEnum.auto()
FR = BaseEnum.auto()
PL = BaseEnum.auto()
RU = BaseEnum.auto()
SK = BaseEnum.auto()
UNDEFINED = BaseEnum.auto()
CS = 1
DE = 2
EN = 3
ES = 4
FR = 5
PL = 6
RU = 7
SK = 8
UNDEFINED = 9
from . import BaseEnum
 
class ClassesType(BaseEnum):
ATELIER = BaseEnum.auto()
BLOCK = BaseEnum.auto()
CONSULTATION = BaseEnum.auto()
LABORATORY = BaseEnum.auto()
LECTURE = BaseEnum.auto()
PROJECT = BaseEnum.auto()
PROJECT_INDV = BaseEnum.auto()
PROJECT_TEAM = BaseEnum.auto()
PROSEMINAR = BaseEnum.auto()
PT_COURSE = BaseEnum.auto()
SEMINAR = BaseEnum.auto()
TUTORIAL = BaseEnum.auto()
UNDEFINED = BaseEnum.auto()
ATELIER = 1
BLOCK = 2
CONSULTATION = 3
LABORATORY = 4
LECTURE = 5
PROJECT = 6
PROJECT_INDV = 7
PROJECT_TEAM = 8
PROSEMINAR = 9
PT_COURSE = 10
SEMINAR = 11
TUTORIAL = 12
UNDEFINED = 13
from . import BaseEnum
 
class Completion(BaseEnum):
CLFD_CREDIT = BaseEnum.auto()
CREDIT = BaseEnum.auto()
CREDIT_EXAM = BaseEnum.auto()
DEFENCE = BaseEnum.auto()
EXAM = BaseEnum.auto()
NOTHING = BaseEnum.auto()
UNDEFINED = BaseEnum.auto()
\ No newline at end of file
CLFD_CREDIT = 1
CREDIT = 2
CREDIT_EXAM = 3
DEFENCE = 4
EXAM = 5
NOTHING = 6
UNDEFINED = 7
\ No newline at end of file
from . import BaseEnum
 
class CourseState(BaseEnum):
PROPOSED = BaseEnum.auto()
APPROVED = BaseEnum.auto()
OPEN = BaseEnum.auto()
CLOSED = BaseEnum.auto()
UNDEFINED = BaseEnum.auto()
\ No newline at end of file
PROPOSED = 1
APPROVED = 2
OPEN = 3
CLOSED = 4
UNDEFINED = 5
\ No newline at end of file
from . import BaseEnum
 
class DivisionType(BaseEnum):
RECTORATE = BaseEnum.auto()
FACULTY = BaseEnum.auto()
DEPARTMENT = BaseEnum.auto()
INSTITUTE = BaseEnum.auto()
UNDEFINED = BaseEnum.auto()
\ No newline at end of file
RECTORATE = 1
FACULTY = 2
DEPARTMENT = 3
INSTITUTE = 4
UNDEFINED = 5
\ No newline at end of file
from . import BaseEnum
 
class DSpaceFileType(BaseEnum):
ATTACHMENT = BaseEnum.auto()
REVIEW = BaseEnum.auto()
THESIS = BaseEnum.auto()
\ No newline at end of file
ATTACHMENT = 1
REVIEW = 2
THESIS = 3
\ No newline at end of file
from . import BaseEnum
 
class ParallelType(BaseEnum):
LABORATORY = BaseEnum.auto()
LECTURE = BaseEnum.auto()
TUTORIAL = BaseEnum.auto()
UNDEFINED = BaseEnum.auto()
\ No newline at end of file
LABORATORY = 1
LECTURE = 2
TUTORIAL = 3
UNDEFINED = 4
\ No newline at end of file
from . import BaseEnum
 
class Parity(BaseEnum):
ODD = BaseEnum.auto()
EVEN = BaseEnum.auto()
BOTH = BaseEnum.auto()
UNDEFINED = BaseEnum.auto()
\ No newline at end of file
ODD = 1
EVEN = 2
BOTH = 3
UNDEFINED = 4
\ No newline at end of file
from . import BaseEnum
 
class Permission(BaseEnum):
ALLOWED = BaseEnum.auto()
DENIED = BaseEnum.auto()
UNDEFINED = BaseEnum.auto()
\ No newline at end of file
ALLOWED = 1
DENIED = 2
UNDEFINED = 3
\ No newline at end of file
from . import BaseEnum
 
class ProgrammeType(BaseEnum):
BACHELOR = BaseEnum.auto()
DOCTORAL = BaseEnum.auto()
INTERNSHIP = BaseEnum.auto()
LIFELONG = BaseEnum.auto()
MASTER = BaseEnum.auto()
MASTER_LEGACY = BaseEnum.auto()
UNDEFINED = BaseEnum.auto()
\ No newline at end of file
BACHELOR = 1
DOCTORAL = 2
INTERNSHIP = 3
LIFELONG = 4
MASTER = 5
MASTER_LEGACY = 6
UNDEFINED = 7
\ No newline at end of file
from . import BaseEnum
 
class RoomType(BaseEnum):
LABORATORY = BaseEnum.auto()
LECTURE = BaseEnum.auto()
OFFICE = BaseEnum.auto()
TUTORIAL = BaseEnum.auto()
UNDEFINED = BaseEnum.auto()
\ No newline at end of file
LABORATORY = 1
LECTURE = 2
OFFICE = 3
TUTORIAL = 4
UNDEFINED = 5
\ No newline at end of file
from . import BaseEnum
 
class Season(BaseEnum):
WINTER = BaseEnum.auto()
SUMMER = BaseEnum.auto()
BOTH = BaseEnum.auto()
UNDEFINED = BaseEnum.auto()
\ No newline at end of file
WINTER = 1
SUMMER = 2
BOTH = 3
UNDEFINED = 4
\ No newline at end of file
from . import BaseEnum
 
class Sex(BaseEnum):
MALE = BaseEnum.auto()
FEMALE = BaseEnum.auto()
UNDEFINED = BaseEnum.auto()
\ No newline at end of file
MALE = 1
FEMALE = 2
UNDEFINED = 3
\ No newline at end of file
from . import BaseEnum
 
class StudyForm(BaseEnum):
FULLTIME = BaseEnum.auto()
PARTTIME = BaseEnum.auto()
DISTANCE = BaseEnum.auto()
SELF_PAYER = BaseEnum.auto()
Z = BaseEnum.auto() # Prijezd kratkodoby
W = BaseEnum.auto() # Vyjezd kratkodoby - kombinovany
V = TODO = BaseEnum.auto() # Vyjezd kratkodoby
UNDEFINED = BaseEnum.auto()
\ No newline at end of file
FULLTIME = 1
PARTTIME = 2
DISTANCE = 3
SELF_PAYER = 4
Z = 5 # Prijezd kratkodoby
W = 6 # Vyjezd kratkodoby - kombinovany
V = 7 # Vyjezd kratkodoby
UNDEFINED = 8
\ No newline at end of file
from . import BaseEnum
 
class StudyState(BaseEnum):
ACTIVE = BaseEnum.auto()
INTERRUPTED = BaseEnum.auto()
CLOSED = BaseEnum.auto()
UNDEFINED = BaseEnum.auto()
\ No newline at end of file
ACTIVE = 1
INTERRUPTED = 2
CLOSED = 3
UNDEFINED = 4
\ No newline at end of file
from . import BaseEnum
 
class StudyTermination(BaseEnum):
GRADUATION = BaseEnum.auto()
WITHDRAW = BaseEnum.auto()
NONCOMPLIANCE = BaseEnum.auto()
ACCREDITATION_REVOKED = BaseEnum.auto()
ACCREDITATION_EXPIRED = BaseEnum.auto()
EXPULSION_PAR_65 = BaseEnum.auto()
EXPULSION_PAR_67 = BaseEnum.auto()
DEATH = BaseEnum.auto()
TRANSFER_TO_OTHER_FACULTY = BaseEnum.auto()
UNDEFINED = BaseEnum.auto()
\ No newline at end of file
GRADUATION = 1
WITHDRAW = 2
NONCOMPLIANCE = 3
ACCREDITATION_REVOKED = 4
ACCREDITATION_EXPIRED = 5
EXPULSION_PAR_65 = 6
EXPULSION_PAR_67 = 7
DEATH = 8
TRANSFER_TO_OTHER_FACULTY = 9
UNDEFINED = 10
\ No newline at end of file
from . import BaseEnum
 
class TeacherRole(BaseEnum):
EDITOR = BaseEnum.auto()
EXAMINER = BaseEnum.auto()
GUARANTOR = BaseEnum.auto()
INSTRUCTOR = BaseEnum.auto()
LECTURER = BaseEnum.auto()
UNDEFINED = BaseEnum.auto()
\ No newline at end of file
EDITOR = 1
EXAMINER = 2
GUARANTOR = 3
INSTRUCTOR = 4
LECTURER = 5
UNDEFINED = 6
\ No newline at end of file
from . import BaseEnum
 
class TermType(BaseEnum):
ASSESSMENT = BaseEnum.auto()
FINAL_EXAM = BaseEnum.auto()
\ No newline at end of file
ASSESSMENT = 1
FINAL_EXAM = 2
\ No newline at end of file
from . import BaseEnum
 
class ThesisState(BaseEnum):
AVAILABLE = BaseEnum.auto()
RESERVED = BaseEnum.auto()
ASSIGNED = BaseEnum.auto()
SUBMITTED = BaseEnum.auto()
ACCEPTED = BaseEnum.auto()
DEFENDED = BaseEnum.auto()
UNDEFINED = BaseEnum.auto()
AVAILABLE = 1
RESERVED = 2
ASSIGNED = 3
SUBMITTED = 4
ACCEPTED = 5
DEFENDED = 6
UNDEFINED = 7
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment