rattail.enum Module

rattail.enum - Rattail enumerations

This module holds all enumerations for fields with names like “type”, “status” and the like. Typically for an enumeration, there will be defined a series of “constant” variables which are assigned integer values, and the enumeration variable itself will be assigned a dictionary which maps the integers to their human-friendly string equivalents.

As with rattail.classes, the contents of this module are used to update the root rattail namespace during rattail.init(). Extensions are allowed to add enumerations as well; see Rattail Extensions for more info.

Enumerations

rattail.enum.EMPLOYEE_STATUS

Members:

  • ES_CURRENT
  • ES_FORMER

Table Of Contents

Previous topic

rattail.db Module

Next topic

rattail.etl Module

This Page