Package dlinklist :: Module linklist :: Class InsertDir
[hide private]
[frames] | no frames]

Class InsertDir

source code


Provides an enumeration of the insert direction values.

Instance Methods [hide private]

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __init__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Methods [hide private]
(str or int, str)
getMessage(self, num)
Return a tuple consisting of the text name of the insert direction value and the description of the status.
source code
Class Variables [hide private]
  INSERT_DEFAULT = 0
  ABOVE = 1
  BELOW = 2
  __MESSAGES = {0: 'Use current insert setting', 1: 'Insert new ...
  _DIRS = {0: 'INSERT_DEFAULT', 1: 'ABOVE', 2: 'BELOW', <classme...
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

getMessage(self, num)
Class Method

source code 

Return a tuple consisting of the text name of the insert direction value and the description of the status. If the insert direction value is invalid the number of the value is returned and the phrase 'Unknown error'.

Parameters:
  • num (int) - The numeric value from the InsertDir class.
Returns: (str or int, str)
A tuple consisting of the text InsertDir value and the description.

Class Variable Details [hide private]

__MESSAGES

Value:
{0: 'Use current insert setting',
 1: 'Insert new record ABOVE current record',
 2: 'Insert new record BELOW current record'}

_DIRS

Value:
{0: 'INSERT_DEFAULT',
 1: 'ABOVE',
 2: 'BELOW',
 <classmethod object at 0x8cb4af4>: 'getMessage'}