Package dbf :: Module ver_33 :: Class Relation
[hide private]
[frames] | no frames]

Class Relation

source code

object --+
         |
        Relation

establishes a relation between two dbf tables (not persistent)

Instance Methods [hide private]
a new object with type S, a subtype of T
__new__(cls, src, tgt, src_names=None, tgt_names=None) source code
 
__eq__(yo, other) source code
 
__getitem__(yo, record)
record should be from the source table
source code
 
__hash__(yo)
hash(x)
source code
 
__ne__(yo, other) source code
 
__repr__(yo)
repr(x)
source code
 
__str__(yo)
str(x)
source code
 
src_table(yo)
name of source table
source code
 
src_field(yo)
name of source field
source code
 
src_table_name(yo) source code
 
src_field_name(yo) source code
 
tgt_table(yo)
name of target table
source code
 
tgt_field(yo)
name of target field
source code
 
tgt_table_name(yo) source code
 
tgt_field_name(yo) source code
 
index(yo) source code
 
one_or_many(yo, table) source code

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

Class Variables [hide private]
  relations = {}
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__new__(cls, src, tgt, src_names=None, tgt_names=None)

source code 
Returns: a new object with type S, a subtype of T
Overrides: object.__new__
(inherited documentation)

__hash__(yo)
(Hashing function)

source code 

hash(x)

Overrides: object.__hash__
(inherited documentation)

__repr__(yo)
(Representation operator)

source code 

repr(x)

Overrides: object.__repr__
(inherited documentation)

__str__(yo)
(Informal representation operator)

source code 

str(x)

Overrides: object.__str__
(inherited documentation)

src_table(yo)

source code 

name of source table

Decorators:
  • @property

src_field(yo)

source code 

name of source field

Decorators:
  • @property

src_table_name(yo)

source code 
Decorators:
  • @property

src_field_name(yo)

source code 
Decorators:
  • @property

tgt_table(yo)

source code 

name of target table

Decorators:
  • @property

tgt_field(yo)

source code 

name of target field

Decorators:
  • @property

tgt_table_name(yo)

source code 
Decorators:
  • @property

tgt_field_name(yo)

source code 
Decorators:
  • @property

index(yo)

source code 
Decorators:
  • @LazyAttr