Skip to main content

HTML and Javascript progress bar for Plone

Project description

collective.progressbar

This product provides a basic html and javascript progress bar for Plone that are useful for long running server side processes like imports or exports.

To use it, you simply have to fire two events. The first event initialises the progress bar view:

from collective.progressbar.events import InitialiseProgressBar
from collective.progressbar.events import ProgressBar

title = 'Importing file'
bar = ProgressBar(self.context, self.request, title)
notify(InitialiseProgressBar(bar))

The ProgressBar class above can take an optional view parameter if you want to customise the view that renders the progress bar further. You only have to include the progressbar macro in your custom view.

To update progress, you simply have to fire the appropriate event:

from collective.progressbar.events import UpdateProgressEvent
from collective.progressbar.events import ProgressState

for index in range(101):
    progress = ProgressState(self.request, index)
    notify(UpdateProgressEvent(progress))

To see how the progress bar works, install the package and browse to the demo view eg.: http://localhost:8080/plone/@@collective.progressbar-demo

Changelog

0.5 - 2009-09-18

  • Initial release

Project details


Release history Release notifications | RSS feed

This version

0.5

Download files

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

Source Distribution

collective.progressbar-0.5.tar.gz (4.7 kB view details)

Uploaded Source

Built Distribution

collective.progressbar-0.5-py2.4.egg (10.7 kB view details)

Uploaded Source

File details

Details for the file collective.progressbar-0.5.tar.gz.

File metadata

File hashes

Hashes for collective.progressbar-0.5.tar.gz
Algorithm Hash digest
SHA256 55a80025a8cf0da56c4d4344280f37b6131721989aff9edd94523bad5e436f50
MD5 06d5019b84403a49971573697fcffd31
BLAKE2b-256 f0be52aa0f53a74b9928aa1cb0c7b35ed9dea921732603a98f9460a998ab2a92

See more details on using hashes here.

File details

Details for the file collective.progressbar-0.5-py2.4.egg.

File metadata

File hashes

Hashes for collective.progressbar-0.5-py2.4.egg
Algorithm Hash digest
SHA256 4f28161df04651565fbefb6efac88c5cffba88e507e494ce0bdb1d904fc8d318
MD5 186545d6346dba8858bd1bb8e1b7e763
BLAKE2b-256 31c5ef8d183585740135f3f3a4b92202220cc5a67f620e0e640e575d72d7cf45

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page