Example #1
0
    def get(self, obj_uuid, **kwargs):
        how = kwargs.get('how')
        if how == 'decoded':
            return jloads(self._storage[obj_uuid])
        elif how == 'undecoded':
            return self._storage[obj_uuid]

        return self.inflate(obj_uuid)
Example #2
0
 def from_object(self, obj):
     return jloads(self._storage[self.uuid_from_id(obj)])