Package dbf :: Module ver_2 :: 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]
 
__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
 
index(yo) source code
 
one_or_many(yo, table) source code

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

Static 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
Class Variables [hide private]
  relations = {}
Properties [hide private]
  src_table
name of source table
  src_field
name of source field
  src_table_name
  src_field_name
  tgt_table
name of target table
  tgt_field
name of target field
  tgt_table_name
  tgt_field_name

Inherited from object: __class__

Method Details [hide private]

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

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)

index(yo)

source code 
Decorators:
  • @LazyAttr

Property Details [hide private]

src_table

name of source table

Get Method:
unreachable.src_table(yo) - name of source table

src_field

name of source field

Get Method:
unreachable.src_field(yo) - name of source field

src_table_name

Get Method:
unreachable.src_table_name(yo)

src_field_name

Get Method:
unreachable.src_field_name(yo)

tgt_table

name of target table

Get Method:
unreachable.tgt_table(yo) - name of target table

tgt_field

name of target field

Get Method:
unreachable.tgt_field(yo) - name of target field

tgt_table_name

Get Method:
unreachable.tgt_table_name(yo)

tgt_field_name

Get Method:
unreachable.tgt_field_name(yo)