Exemplo n.º 1
0
def deferred_upload_header_widget(node, kw):
    request = kw['request']
    tmpstore = files.SessionDBFileUploadTempStore(
        request,
        filters=HEADER_RESIZER.complete
    )
    return files.CustomFileUploadWidget(tmpstore)
Exemplo n.º 2
0
def deferred_upload_header_widget(node, kw):
    request = kw['request']
    tmpstore = files.SessionDBFileUploadTempStore(
        request, filters=HEADER_RESIZER.complete)
    return files.CustomFileUploadWidget(tmpstore,
                                        template=forms.TEMPLATES_PATH +
                                        "fileupload.pt")