Package dbf :: Module ver_32 :: Class _Navigation
[hide private]
[frames] | no frames]

Class _Navigation

source code

object --+
         |
        _Navigation

Navigation base class that provides VPFish movement methods

Instance Methods [hide private]
 
_nav_check(self)
implemented by subclass; must return True if underlying structure meets need
source code
 
_get_index(self, direction, n=1, start=None)
returns index of next available record towards direction
source code
 
bof(self)
returns True if no more usable records towards the beginning of the table
source code
 
bottom(self)
sets record index to bottom of table (end of table)
source code
 
current_record(self)
returns current record (deleted or not)
source code
 
current(self)
returns current index
source code
 
eof(self)
returns True if no more usable records towards the end of the table
source code
 
first_record(self)
returns first available record (does not move index)
source code
 
goto(self, where)
changes the record pointer to the first matching (deleted) record where should be either an integer, or 'top' or 'bottom'.
source code
 
last_record(self)
returns last available record (does not move index)
source code
 
next_record(self)
returns next available record (does not move index)
source code
 
prev_record(self)
returns previous available record (does not move index)
source code
 
skip(self, n=1)
move index to the next nth available record
source code
 
top(self)
sets record index to top of table (beginning of table)
source code

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

Class Variables [hide private]
  _index = -1
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

bof(self)

source code 

returns True if no more usable records towards the beginning of the table

Decorators:
  • @property

current_record(self)

source code 

returns current record (deleted or not)

Decorators:
  • @property

current(self)

source code 

returns current index

Decorators:
  • @property

eof(self)

source code 

returns True if no more usable records towards the end of the table

Decorators:
  • @property

first_record(self)

source code 

returns first available record (does not move index)

Decorators:
  • @property

goto(self, where)

source code 

changes the record pointer to the first matching (deleted) record where should be either an integer, or 'top' or 'bottom'. top -> before first record bottom -> after last record

last_record(self)

source code 

returns last available record (does not move index)

Decorators:
  • @property

next_record(self)

source code 

returns next available record (does not move index)

Decorators:
  • @property

prev_record(self)

source code 

returns previous available record (does not move index)

Decorators:
  • @property