

@classmethod
def _actions(cls, document, **args):
    qargs = (('?' + urllib.parse.urlencode(args)) if args else '')
    return {
        'preview': '/preview/{}{}'.format(document.working_name, qargs),
        'save': '{}{}'.format(cls._make_save_url(document), qargs),
        'edit': '/edit/{}{}'.format(document.working_name, qargs),
        'preview_fragment': '/preview_fragment/{}{}'.format(document.working_name, qargs),
    }

dataset/ETHPy150Open KeepSafe/ks-email-parser/email_parser/gui/gui.py Server._actions/original