Atlas  0.7.0
Networking protocol for the Worldforge system.
test_atlas.test4 Class Reference
Inheritance diagram for test_atlas.test4:
Collaboration diagram for test_atlas.test4:

Public Member Functions

def __setattr__ (self, name, value)
 
def __getattr__ (self, name)
 
def is_plain_attribute (self, name)
 
def get_plain_attribute (self, name)
 
def get_attr_pos (self, a)
 
def key_func (self, value)
 
def items (self, convert2plain_flag=1, original_order=1, all=0)
 
def get_attributes (self, convert2plain_flag=1)
 
def get_all_attributes (self, result_dict=None, convert2plain_flag=1)
 
def attribute_definition (self, name)
 
def has_parent (self, parent)
 
def get_objtype (self)
 
def __repr__ (self)
 
def __str__ (self)
 

Public Attributes

 id
 

Detailed Description

Definition at line 78 of file test_atlas.py.

Member Function Documentation

◆ __getattr__()

def atlas.Object.__getattr__ (   self,
  name 
)
inherited
look first for attribute at this object
   if not available, then go trough all parent object looking
   for attrbiutes

Definition at line 57 of file __init__.py.

References atlas.Object.__dict__.

◆ attribute_definition()

def atlas.Object.attribute_definition (   self,
  name 
)
inherited

◆ get_all_attributes()

def atlas.Object.get_all_attributes (   self,
  result_dict = None,
  convert2plain_flag = 1 
)
inherited
list all attributes including inherited ones:
   returns dictionary: use get_all_attributes().items() for list

Definition at line 150 of file __init__.py.

References atlas.Object.__dict__, and atlas.Object.get_attributes().

Referenced by atlas.Object.items().

◆ get_attributes()

def atlas.Object.get_attributes (   self,
  convert2plain_flag = 1 
)
inherited
list all attributes defined in this object:
   returns dictionary: use items() for list

Definition at line 137 of file __init__.py.

References atlas.Object.__dict__, and atlas.Object.items().

Referenced by atlas.Object.attribute_definition(), atlas.Object.get_all_attributes(), and atlas.Object.items().

◆ get_plain_attribute()

def atlas.Object.get_plain_attribute (   self,
  name 
)
inherited
convert all references to parents, etc.. objects to string ids

Definition at line 101 of file __init__.py.

References atlas.Object.get_attr_pos().

◆ is_plain_attribute()

def atlas.Object.is_plain_attribute (   self,
  name 
)
inherited
is attribute plain?

Definition at line 96 of file __init__.py.

◆ items()

def atlas.Object.items (   self,
  convert2plain_flag = 1,
  original_order = 1,
  all = 0 
)
inherited
like dictionary items method:
   original_order: tries to preserver specification order if possible
   all: list also inherited attributes (if possible)

Definition at line 122 of file __init__.py.

References atlas.Object.get_all_attributes(), atlas.Object.get_attributes(), and atlas.Object.key_func().

Referenced by atlas.Object.attribute_definition(), and atlas.Object.get_attributes().


The documentation for this class was generated from the following file: