Archived
1
0
This repository has been archived on 2023-12-16. You can view files and clone it, but cannot push or open issues or pull requests.
luminotes/view/Progress_bar.py
Dan Helfman 23b3884e83 Rewrote upload code to do progress bar updating from the UI via polling, rather than streaming the progress bar ticks from the server.
Still to do: Rewrite import code to do something similar, and refactor unit tests accordingly.
2009-03-19 16:52:53 -07:00

15 lines
532 B
Python

import cgi
from config.Version import VERSION
general_error_script = \
"""
withDocument( window.parent.document, function () { var frame = getFirstElementByTagAndClassName( "iframe", "upload_frame" ); if ( frame && frame.pulldown ) frame.pulldown.cancel_due_to_error( "%s" ); } );
"""
quota_error_script = \
"""
withDocument( window.parent.document, function () { var frame = getFirstElementByTagAndClassName( "iframe", "upload_frame" ); if ( frame && frame.pulldown ) frame.pulldown.cancel_due_to_quota(); } );
"""