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

Class VfpTable

source code

object --+    
         |    
  DbfTable --+
             |
            VfpTable

Nested Classes [hide private]
  _memoClass
Provides access to memo files
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, 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 = 'Visual FoxPro 6'
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\x00\x00\x01\x...
  _dbfTableHeaderExtra = '\x00\x00\x00\x00\x00\x00\x00\x00\x00\x...
  use_deleted = True

Inherited from DbfTable (private): _metaonly, _readonly, _version

Properties [hide private]

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

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 0x0100F530>,
       'Slicable': False,
       'Type': '_NullFlags',
       'Update': <function _unsupportedType at 0x0100F530>},
 'B': {'Blank': <type 'float'>,
       'Init': <function _addVfpDouble at 0x0100FC30>,
...

_dbfTableHeader

Value:
'0\x00\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'

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