|
Burgerlib Python
|
Class to enforce string list in member variable. More...


Public Member Functions | |
| __init__ (self, name, enums) | |
| Initialize to default. | |
| __set__ (self, instance, value) | |
| Set the string value. | |
| Public Member Functions inherited from burger.validators.Property | |
| __init__ (self, name) | |
| Initialize to default. | |
| __get__ (self, instance, owner=None) | |
| Return value. | |
| __set__ (self, instance, value) | |
| Set the string value. | |
Protected Attributes | |
| _enums = enums | |
| Enumeration dictionary. | |
| Protected Attributes inherited from burger.validators.Property | |
| _name = name | |
| The real name of the class instance. | |
Class to enforce string list in member variable.
Examples
| burger.validators.EnumProperty.__init__ | ( | self, | |
| name, | |||
| enums ) |
Initialize to default.
| name | Name of the instance storage index |
| enums | list of enumeration strings |
| burger.validators.EnumProperty.__set__ | ( | self, | |
| instance, | |||
| value ) |
Set the string value.
| instance | Reference to object containing data |
| value | None or value the can be converted to bool |