(self, o, oid)
return actual_id
Stores an object and returns its ID.

        :param o: the object
        :param oid: an ID to use
Stores an object and returns its ID.
Stores an object and returns its ID .
def _store(self, o, oid): #pylint:disable=redefined-builtin
        """
        Stores an object and returns its ID.

        :param o: the object
        :param oid: an ID to use
        """

        actual_id = oid

        # l.debug("STORE: %s %s", o, actual_id)

        # this handles recursive objects
        if actual_id in self.storing:
            return actual_id

        if self.is_stored(actual_id):
            # l.debug("... already stored")
            return actual_id

        with self._write_context(actual_id) as output:
            self.storing.add(actual_id)
            VaultPickler(self, output, assigned_objects=(o,)).dump(o)
            self.stored.add(actual_id)

        return actual_id
def _store ( self , o , oid ) : #pylint:disable=redefined-builtin actual_id = oid # l.debug("STORE: %s %s", o, actual_id) # this handles recursive objects if actual_id in self . storing : return actual_id if self . is_stored ( actual_id ) : # l.debug("... already stored") return actual_id with self . _write_context ( actual_id ) as output : self . storing . add ( actual_id ) VaultPickler ( self , output , assigned_objects = ( o , ) ) . dump ( o ) self . stored . add ( actual_id ) return actual_id