@property
    def can_delete(self):
        return (
            self.parent['status'].lower() == 'drafts' or
            len(self.parent.get('files', [])) > 1
        )
Shift path fragments from PATH_INFO to SCRIPT_NAME and vice versa.
dataset/ETHPy150Open CenterForOpenScience/waterbutler/waterbutler/providers/figshare/metadata.py/FigshareFileMetadata.can_delete--crossover with--dataset/ETHPy150Open Arelle/Arelle/arelle/webserver/bottle.py/path_shift