code: def relations_of(self, target, include_object=False):
          ''' list all relations the originate from target '''
          if include_object:
              _ = self._execute('''
                  select relations.name, ob2.code from relations, objects as ob1, objects as ob2 where relations.src=ob1.id and ob2.id=relations.dst and ob1.code=?
              ''', (self.serialize(target),))
              for i in _:
                  yield i[0], self.deserialize(i[1])
          else:
  
              _ = self._execute('''
                  select distinct relations.name from relations, objects where relations.src=objects.id and objects.code=?
              ''', (self.serialize(target),))
              for i in _:
                  yield i[0f relations_of(self, target, include_object=False):
          ''' list all relations the originate from target '''
          if include_object:
              _ = self._execute('''
                  select relations.name, ob2.code from relations, objects as ob1, objects as ob2 where relations.src=ob1.id and ob2.id=relations.dst and ob1.code=?
              ''', (self.serialize(target),))
              for i in _:
                  yield i[0], self.deserialize(i[1])
          else:
  
              _ = self._execute('''
                  select distinct relations.name from relations, objects where relations.src=objects.id and objects.code=?
              ''', (self.serialize(target),))
              for i in _:
                  yield i[0]
docs: list all relations the originate from target