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

Class FpTable

source code

object --+    
         |    
  DbfTable --+
             |
            FpTable

Provides an interface for working with FoxPro 2 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 = 'Foxpro'
  _versionabbv = 'fp'
  _fieldtypes = {'0': {'Blank': <type 'int'>, 'Init': None, 'Ret...
  _memoext = '.fpt'
  _memotypes = ('G', 'M', 'P')
  _yesMemoMask = '\xf5'
  _noMemoMask = '\x03'
  _fixed_fields = ('B', 'D', 'G', 'I', 'L', 'M', 'P', 'T', 'Y')
  _variable_fields = ('C', 'F', 'N')
  _character_fields = ('C', 'M')
  _decimal_fields = ('F', 'N')
  _numeric_fields = ('B', 'F', 'I', 'N', 'Y')
  _supported_tables = ('\x03', '\xf5')
  _dbfTableHeader = '0\x00\x00\x00\x00\x00\x00\x00(\x01\x01\x00\...
  _dbfTableHeaderExtra = '\x00\x00\x00\x00\x00\x00\x00\x00\x00\x...
  _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, _meta_only, _read_only

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

_checkMemoIntegrity(yo)

source code 

dBase III specific

Overrides: DbfTable._checkMemoIntegrity
(inherited documentation)

_initializeFields(yo)

source code 

builds the FieldList of names, types, and descriptions

Overrides: DbfTable._initializeFields

Class Variable Details [hide private]

_fieldtypes

Value:
{'0': {'Blank': <type 'int'>,
       'Init': None,
       'Retrieve': <function unsupportedType at 0x00EB8930>,
       'Type': '_NullFlags',
       'Update': <function unsupportedType at 0x00EB8930>},
 'C': {'Blank': <type 'str'>,
       'Init': <function addCharacter at 0x00EB8E70>,
       'Retrieve': <function retrieveCharacter at 0x00EB8970>,
...

_dbfTableHeader

Value:
'0\x00\x00\x00\x00\x00\x00\x00(\x01\x01\x00\x00\x00\x00\x00\x00\x00\x0\
0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x03\x00\x00'

_dbfTableHeaderExtra

Value:
'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\\
x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0\
0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\\
x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0\
0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\\
x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0\
0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\\
x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0\
...