Package dbf :: Module tables :: Class Db3Table
[hide private]

Class Db3Table

source code

object --+    
         |    
  DbfTable --+
             |
            Db3Table

Provides an interface for working with dBase III tables.

Nested Classes [hide private]
  _memoClass
Provides access to memo fields as dictionaries must override _init, _get_memo, and _put_memo to store memo contents to disk

Inherited from DbfTable: DbfIterator

Inherited from DbfTable (private): _MetaData, _Table, _TableHeader

Instance Methods [hide private]
 
_checkMemoIntegrity(yo)
dBase III specific
source code
 
_initializeFields(yo)
builds the FieldList of names, types, and descriptions
source code

Inherited from DbfTable: __contains__, __enter__, __exit__, __getattr__, __getitem__, __init__, __iter__, __len__, __nonzero__, __repr__, __str__, add_fields, append, bof, bottom, close, create_backup, current, delete_fields, eof, export, get_record, goto, index, is_memotype, new, next, pack, prev, query, rename_field, search, size, structure, top, type, zap

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __setattr__

Class Variables [hide private]
  _version = 'dBase III Plus'
  _versionabbv = 'db3'
  _fieldtypes = {'C': {'Blank': <type 'str'>, 'Init': <function ...
  _memoext = '.dbt'
  _memotypes = 'M',
  _yesMemoMask = '\x80'
  _noMemoMask = '\x7f'
  _fixed_fields = ('D', 'L', 'M')
  _variable_fields = ('C', 'N')
  _character_fields = ('C', 'M')
  _decimal_fields = ('N')
  _numeric_fields = ('N')
  _dbfTableHeader = '\x03\x00\x00\x00\x00\x00\x00\x00!\x00\x01\x...
  _dbfTableHeaderExtra = ''
  _supported_tables = ['\x03', '\x83']
  _read_only = False
  _meta_only = False
  _use_deleted = True

Inherited from DbfTable: codepage, field_count, field_names, filename, last_update, memoname, record_length, record_number, supported_tables, use_deleted, version

Inherited from DbfTable (private): _backed_up

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

_checkMemoIntegrity(yo)

source code 

dBase III specific

Overrides: DbfTable._checkMemoIntegrity

_initializeFields(yo)

source code 

builds the FieldList of names, types, and descriptions

Overrides: DbfTable._initializeFields

Class Variable Details [hide private]

_fieldtypes

Value:
{'C': {'Type': 'Character', 'Retrieve': io.retrieveCharacter, 'Update'\
: io.updateCharacter, 'Blank': str, 'Init': io.addCharacter}, 'D': {'T\
ype': 'Date', 'Retrieve': io.retrieveDate, 'Update': io.updateDate, 'B\
lank': Date.today, 'Init': io.addDate}, 'L': {'Type': 'Logical', 'Retr\
ieve': io.retrieveLogical, 'Update': io.updateLogical, 'Blank': bool, \
'Init': io.addLogical}, 'M': {'Type': 'Memo', 'Retrieve': io.retrieveM\
emo, 'Update': io.updateMemo, 'Blank': str, 'Init': io.addMemo}, 'N': \
{'Type': 'Numeric', 'Retrieve': io.retrieveNumeric, 'Update': io.updat\
...

_dbfTableHeader

Value:
'\x03\x00\x00\x00\x00\x00\x00\x00!\x00\x01\x00\x00\x00\x00\x00\x00\x00\
\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x03\x00\x00'