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

Class _Navigation

source code

object --+
         |
        _Navigation
Known Subclasses:

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
 
bottom(self)
sets record index to bottom of table (end of table)
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
 
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]
  bof
returns True if no more usable records towards the beginning of the table
  current_record
returns current record (deleted or not)
  current
returns current index
  eof
returns True if no more usable records towards the end of the table
  first_record
returns first available record (does not move index)
  last_record
returns last available record (does not move index)
  next_record
returns next available record (does not move index)
  prev_record
returns previous available record (does not move index)

Inherited from object: __class__

Method Details [hide private]

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


Property Details [hide private]

bof

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

Get Method:
unreachable.bof(self) - returns True if no more usable records towards the beginning of the table

current_record

returns current record (deleted or not)

Get Method:
unreachable.current_record(self) - returns current record (deleted or not)

current

returns current index

Get Method:
unreachable.current(self) - returns current index

eof

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

Get Method:
unreachable.eof(self) - returns True if no more usable records towards the end of the table

first_record

returns first available record (does not move index)

Get Method:
unreachable.first_record(self) - returns first available record (does not move index)

last_record

returns last available record (does not move index)

Get Method:
unreachable.last_record(self) - returns last available record (does not move index)

next_record

returns next available record (does not move index)

Get Method:
unreachable.next_record(self) - returns next available record (does not move index)

prev_record

returns previous available record (does not move index)

Get Method:
unreachable.prev_record(self) - returns previous available record (does not move index)