Example #1
0
def dropbox_form(request):
    """ generates a dropbox uid and renders the submission form with a signed version of that id"""
    from briefkasten import generate_post_token
    token = generate_post_token(secret=request.registry.settings['post_secret'])
    return dict(
        action=request.route_url('dropbox_form_submit', token=token),
        fileupload_url=request.route_url('dropbox_fileupload', token=token),
        **defaults(request))
Example #2
0
def dropbox_form(request):
    """ generates a dropbox uid and renders the submission form with a signed version of that id"""
    from briefkasten import generate_post_token
    token = generate_post_token(
        secret=request.registry.settings['post_secret'])
    return dict(action=request.route_url('dropbox_form_submit', token=token),
                fileupload_url=request.route_url('dropbox_fileupload',
                                                 token=token),
                **defaults(request))
Example #3
0
def post_token(dropbox_container, config):
    from briefkasten import generate_post_token
    return generate_post_token(secret=config.registry.settings['post_secret'])
Example #4
0
def post_token(dropbox_container, config):
    from briefkasten import generate_post_token
    return generate_post_token(secret=config.registry.settings['post_secret'])