Ejemplo n.º 1
0
 def _set(self, key, value, identity="image"):
     """
     Serializing, prefix wrapper for _set_raw
     """
     if identity == "image":
         s = serialize_image_file(value)
     else:
         s = serialize(value)
     self._set_raw(add_prefix(key, identity), s)
Ejemplo n.º 2
0
 def _set(self, key, value, identity='image'):
     """
     Serializing, prefix wrapper for _set_raw
     """
     if identity == 'image':
         s = serialize_image_file(value)
     else:
         s = serialize(value)
     self._set_raw(add_prefix(key, identity), s)