Skip to main content

upload files with progress informations

Project description

Detailed Documentation

tw.uploadify documentation

tw.uploadify is a tosca widget wrapper around jquery uploadify plugin
which can be found here :

http://www.uploadify.com/

the version released with this package is 2.1.4

using the widget

in the widget lib

from tw.forms import TableFieldSet
from tw.uploadify import Uploadify

class UploadFieldset(TableFieldSet):
    label_text = "upload files"
    fields = [
        Uploadify('upload_file', label_text='upload File',
                  script='upload',
                  fileDataName='upload_file',
                  scriptData={'_method': 'PUT'},
                  removeCompleted=False,
                  ),
            ]

upload_fieldset = UploadFieldset("upload_fieldset")

in the view controller

from widgetlib import upload_fieldset

...

class UploadController(BaseController):

    @expose('project.templates.upload')
    def index(self):
        params = { 'child_args' : {
                      'upload_file': dict(script="foobarbaz"),
                    }
                  }
        tmpl_context.file_form = upload_fieldset
        return dict(params=params)

in the template

<div py:replace="tmpl_context.file_form(**params)">Files Form</div>

options

only some options are implemented now, please refer to the widgets.py source code

Change history

New in 0.1

0.1a4 partial events support

0.1a3 corrected example

0.1a2 nice test and debugging contrib from Diez Roggisch better example

0.1a1 CHANGES.txt wasn’t including, stopping easy_install

0.1a0 First Release

Project details


Release history Release notifications

This version
History Node

0.1a4

History Node

0.1a3

History Node

0.1a2

History Node

0.1a1

History Node

0.1a0

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
tw.uploadify-0.1a4.tar.gz (40.7 kB) Copy SHA256 hash SHA256 Source None Jul 22, 2011

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page