code: def store_relation(self, src, name, dst):
          ''' use this to store a relation between two objects '''
          self.__require_string__(name)
          #print('storing relation', src, name, dst)
          # make sure both items are stored
          self.store_item(src)
          self.store_item(dst)
          with self._write_lock:
              #print(locals())
              # run the insertion
              self._execute(
                  'insert into relations select ob1.id, ?, ob2.id from objects as ob1, objects as ob2 where ob1.code=? and ob2.code=?;',
                  (name, self.serialize(src), self.serialize(dst))
              )
              self.autocommit(f store_relation(self, src, name, dst):
          ''' use this to store a relation between two objects '''
          self.__require_string__(name)
          #print('storing relation', src, name, dst)
          # make sure both items are stored
          self.store_item(src)
          self.store_item(dst)
          with self._write_lock:
              #print(locals())
              # run the insertion
              self._execute(
                  'insert into relations select ob1.id, ?, ob2.id from objects as ob1, objects as ob2 where ob1.code=? and ob2.code=?;',
                  (name, self.serialize(src), self.serialize(dst))
              )
              self.autocommit()
docs: use this to store a relation between two objects