CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions
Vispa.Share.RelativeDataAccessor.RelativeDataAccessor Class Reference
Inheritance diagram for Vispa.Share.RelativeDataAccessor.RelativeDataAccessor:
Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor Vispa.Plugins.EdmBrowser.EdmDataAccessor.EdmDataAccessor

Public Member Functions

def allDaughterRelations
 
def allMotherRelations
 
def daughterRelations
 
def hasRelations
 
def motherRelations
 

Detailed Description

This class provides access to the underlying data model.

Definition at line 1 of file RelativeDataAccessor.py.

Member Function Documentation

def Vispa.Share.RelativeDataAccessor.RelativeDataAccessor.allDaughterRelations (   self,
  object,
  list = None 
)
def Vispa.Share.RelativeDataAccessor.RelativeDataAccessor.allMotherRelations (   self,
  object,
  list = None 
)

Definition at line 24 of file RelativeDataAccessor.py.

References Vispa.Share.RelativeDataAccessor.RelativeDataAccessor.allMotherRelations(), Vispa.Share.RelativeDataAccessor.RelativeDataAccessor.motherRelations(), Vispa.Plugins.EdmBrowser.EdmDataAccessor.EdmDataAccessor.motherRelations(), and Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor.motherRelations().

Referenced by Vispa.Share.RelativeDataAccessor.RelativeDataAccessor.allMotherRelations().

24 
25  def allMotherRelations(self,object, list=None):
26  motherRelations=[]
27  for mother in self.motherRelations(object):
28  if list==None or not mother in list:
29  motherRelations+=[mother]
30  for grandmother in self.allMotherRelations(motherRelations):
31  motherRelations+=[grandmother]
32  return motherRelations
def Vispa.Share.RelativeDataAccessor.RelativeDataAccessor.daughterRelations (   self,
  object 
)
Return a list of the daughter relations of an object.

Definition at line 5 of file RelativeDataAccessor.py.

Referenced by Vispa.Share.RelativeDataAccessor.RelativeDataAccessor.allDaughterRelations().

5 
6  def daughterRelations(self, object):
7  """ Return a list of the daughter relations of an object.
8  """
9  raise NotImplementedError
def Vispa.Share.RelativeDataAccessor.RelativeDataAccessor.hasRelations (   self,
  object 
)
Return if object has relations.

Definition at line 33 of file RelativeDataAccessor.py.

33 
34  def hasRelations(self,object):
35  """ Return if object has relations.
36  """
37  return True
def Vispa.Share.RelativeDataAccessor.RelativeDataAccessor.motherRelations (   self,
  object 
)
Return a list of the mother relations of an object.

Definition at line 10 of file RelativeDataAccessor.py.

Referenced by Vispa.Share.RelativeDataAccessor.RelativeDataAccessor.allMotherRelations().

10 
11  def motherRelations(self, object):
12  """ Return a list of the mother relations of an object.
13  """
14  raise NotImplementedError