src\wily\helper\custom_enums.py
-- -- --- --- --- --- --- --- ------- ------- ------- | """A module containing custom enums for wily."""
-- -- --- --- --- --- --- --- ------- ------- ------- | from enum import Enum
-- -- --- --- --- --- --- --- ------- ------- ------- |
-- -- --- --- --- --- --- --- ------- ------- ------- |
03 -- --- --- --- --- --- --- ------- ------- ------- | class ReportFormat(Enum):
03 -- --- --- --- --- --- --- ------- ------- ------- | """Represent the available report formats."""
03 -- --- --- --- --- --- --- ------- ------- ------- |
03 -- --- --- --- --- --- --- ------- ------- ------- | CONSOLE = 1
03 -- --- --- --- --- --- --- ------- ------- ------- | HTML = 2
03 -- --- --- --- --- --- --- ------- ------- ------- |
03 -- --- --- --- --- --- --- ------- ------- ------- | @classmethod
03 02 000 000 000 000 000 000 0000.00 0000.00 0000.00 | def get_all(cls):
03 02 000 000 000 000 000 000 0000.00 0000.00 0000.00 | """Return a list with all Enumerations."""
03 02 000 000 000 000 000 000 0000.00 0000.00 0000.00 | return [format.name for format in cls]