Class k.p.enum(int):

Part of kiwi.python

known subclasses: kiwi.ui.search.DateSearchFilter.Type, kiwi.enums.ComboColumn, kiwi.enums.ComboMode, kiwi.enums.Alignment, kiwi.enums.Direction, kiwi.enums.ListType, kiwi.enums.SearchFilterPosition

enum is an enumered type implementation in python.

To use it, define an enum subclass like this:
>>> from kiwi.python import enum
>>>
>>> class Status(enum):
>>>     OPEN, CLOSE = range(2)
>>> Status.OPEN
'<Status value OPEN>'
All the integers defined in the class are assumed to be enums and values cannot be duplicated
Function__class_init__Undocumented
Functionget
Lookup an enum by value
Function__new__
Create a new Enum.
Function__str__Undocumented
def __class_init__(cls, ns):
Undocumented
def get(cls, value):
Lookup an enum by value
def __new__(cls, value, name):
Create a new Enum.
def __str__(self):
Undocumented