Package dbf :: Module tables :: Class VfpTable
[hide private]
[frames] | no frames]

Class VfpTable

source code

object --+    
         |    
  DbfTable --+
             |
            VfpTable

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

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__, __getattr__, __getitem__, __init__, __iter__, __len__, __repr__, __str__, add_fields, append, bof, bottom, close, current, delete_fields, eof, export, field_count, field_names, filename, goto, index, is_memotype, last_update, memoname, new, next, pack, prev, query, record_length, record_number, rename_field, search, size, structure, supported_tables, top, type, use_deleted, zap

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

Class Variables [hide private]
  version = 'Provides an interface for working with Visual FoxPr...
returns the dbf type of the table
  _versionabbv = 'vfp'
  _fieldtypes = {'0': {'Blank': <type 'int'>, 'Init': None, 'Ret...
  _memoext = '.fpt'
  _memotypes = ('G', 'M', 'P')
  _yesMemoMask = '0'
  _noMemoMask = '0'
  _fixedFields = ('B', 'D', 'G', 'I', 'L', 'M', 'P', 'T', 'Y')
  _decimalFields = ('F', 'N')
  _variableFields = ('C')
  _numericFields = ('B', 'F', 'I', 'N', 'Y')
  _supported_tables = ('0')
  _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 (private): _meta_only, _read_only, _version

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]

version

returns the dbf type of the table

Value:
'Provides an interface for working with Visual FoxPro 6 tables'

_fieldtypes

Value:
{'0': {'Blank': <type 'int'>,
       'Init': None,
       'Retrieve': <function unsupportedType at 0x0119A5B0>,
       'Type': '_NullFlags',
       'Update': <function unsupportedType at 0x0119A5B0>},
 'B': {'Blank': <type 'float'>,
       'Init': <function addVfpDouble at 0x0119ACB0>,
       'Retrieve': <function retrieveDouble at 0x0119A770>,
...

_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\
...