def to_dict(self):
        return {
            'successful': self.successful,
            'error_msg': self.error_msg,
            'blob_key': str(self.blob_key),
            'name': self.name,
            'type': self.type,
            'size': self.size,
            # these two are commented out so the class is easily json serializable..
            # 'field': self.field,
            # 'value': self.value,
        }
Factory method for the 'MOTD' service.
dataset/ETHPy150Open gregorynicholas/flask-gae_blobstore/flask_gae_blobstore.py/BlobUploadResult.to_dict--crossover with--dataset/ETHPy150Open enthought/envisage/examples/MOTD/acme/motd/motd_plugin.py/MOTDPlugin._create_motd_service