def get_publish_status(self, status):
        if (status.complete and not status.error):
            pubStatus="Done"
        elif status.error:
            pubStatus="Error"
        elif status.cancelled:
            pubStatus="Canceled"
        else:
            pubStatus="In progress ("+str(status.percentage)+"%)"
        return pubStatus
dataset/ETHPy150Open usharesoft/hammr/src/hammr/commands/image/image.py/Image.get_publish_status/original