Package dbf :: Module ver_32 :: Class Record
[hide private]
[frames] | no frames]

Class Record

source code

object --+
         |
        Record

Provides routines to extract and save data within the fields of a dbf record.

Instance Methods [hide private]
a new object with type S, a subtype of T
__new__(cls, recnum, layout, kamikaze=b'', _fromdisk=False)
record = ascii array of entire record; layout=record specification; memo = memo object for table
source code
 
__contains__(self, value) source code
 
__enter__(self) source code
 
__eq__(self, other) source code
 
__exit__(self, *args) source code
 
__iter__(self) source code
 
__getattr__(self, name) source code
 
__getitem__(self, item) source code
 
__len__(self) source code
 
__ne__(self, other) source code
 
__setattr__(self, name, value)
x.__setattr__('name', value) <==> x.name = value
source code
 
__setitem__(self, name, value) source code
 
__str__(self)
str(x)
source code
 
__repr__(self)
repr(x)
source code
 
_commit_flux(self)
stores field updates to disk; if any errors restores previous contents and propogates exception
source code
 
_reindex_record(self)
rerun all indices with this record
source code
 
_retrieve_field_value(self, index, name)
calls appropriate routine to convert value stored in field from array
source code
 
_rollback_flux(self)
discards all changes since ._start_flux()
source code
 
_start_flux(self)
Allows record.field_name = ...
source code
 
_update_field_value(self, index, name, value)
calls appropriate routine to convert value to bytes, and save it in record
source code
 
_update_disk(self, location='', data=None) source code
 
_write(self) source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __init__, __reduce__, __reduce_ex__, __sizeof__, __subclasshook__

Class Methods [hide private]
 
_create_blank_data(cls, layout)
creates a blank record data chunk
source code
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__new__(cls, recnum, layout, kamikaze=b'', _fromdisk=False)

source code 

record = ascii array of entire record; layout=record specification; memo = memo object for table

Returns: a new object with type S, a subtype of T
Overrides: object.__new__

__setattr__(self, name, value)

source code 

x.__setattr__('name', value) <==> x.name = value

Overrides: object.__setattr__
(inherited documentation)

__str__(self)
(Informal representation operator)

source code 

str(x)

Overrides: object.__str__
(inherited documentation)

__repr__(self)
(Representation operator)

source code 

repr(x)

Overrides: object.__repr__
(inherited documentation)

_start_flux(self)

source code 

Allows record.field_name = ... and record[...] = ...; must use ._commit_flux() to commit changes