Package dbf :: Module ver_33 :: Class List
[hide private]
[frames] | no frames]

Class List

source code

 object --+    
          |    
_Navigation --+
              |
             List

list of Dbf records, with set-like behavior

Instance Methods [hide private]
 
__init__(self, records=None, desc=None, key=None)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
__add__(self, other) source code
 
__contains__(self, data) source code
 
__delitem__(self, key) source code
 
__getitem__(self, key) source code
 
__iter__(self) source code
 
__len__(self) source code
 
__bool__(self) source code
 
__radd__(self, other) source code
 
__repr__(self)
repr(x)
source code
 
__rsub__(self, other) source code
 
__sub__(self, other) source code
 
_maybe_add(self, item) source code
 
_get_record(self, table=None, rec_no=None, value=None) source code
 
_purge(self, record, old_record_number, offset) source code
 
_still_valid_check(self)
implemented by subclass; must return True if underlying structure meets need
source code
 
_nav_check(self)
implemented by subclass; must return True if underlying structure meets need
source code
 
append(self, record) source code
 
clear(self) source code
 
extend(self, records) source code
 
index(self, record, start=None, stop=None)
returns the index of record between start and stop start and stop default to the first and last record
source code
 
insert(self, i, record) source code
 
key(self, record)
table_name, record_number
source code
 
pop(self, index=None) source code
 
query(self, criteria)
criteria is a callback that returns a truthy value for matching record
source code
 
remove(self, data) source code
 
reverse(self) source code
 
sort(self, key=None, reverse=False) source code

Inherited from _Navigation: bof, bottom, current, current_record, eof, first_record, goto, last_record, next_record, prev_record, skip, top

Inherited from _Navigation (private): _get_index

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

Class Variables [hide private]
  _desc = ''

Inherited from _Navigation (private): _index

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, records=None, desc=None, key=None)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)

__repr__(self)
(Representation operator)

source code 

repr(x)

Overrides: object.__repr__
(inherited documentation)

_nav_check(self)

source code 

implemented by subclass; must return True if underlying structure meets need

Overrides: _Navigation._nav_check
(inherited documentation)