Ejemplo n.º 1
0
 def setDataAccessor(self, accessor):
     """ Sets the DataAccessor from which the object properties are read.
     
     You need to call updateContent() in order to make the changes visible.
     """
     if not isinstance(accessor, BasicDataAccessor):
         raise TypeError(__name__ + " requires data accessor of type BasicDataAccessor.")
     AbstractView.setDataAccessor(self, accessor)
Ejemplo n.º 2
0
 def setDataAccessor(self, accessor):
     """ Sets the DataAccessor from which the nodes are created.
     
     You need to call updateContent() in order to make the changes visible.   
     """
     if not isinstance(accessor, BasicDataAccessor):
         raise TypeError(__name__ + " requires data accessor of type BasicDataAccessor.")
     AbstractView.setDataAccessor(self, accessor)