Personal wiki notebook (not under development)

Progress_bar.py 532B

1234567891011121314
  1. import cgi
  2. from config.Version import VERSION
  3. general_error_script = \
  4. """
  5. withDocument( window.parent.document, function () { var frame = getFirstElementByTagAndClassName( "iframe", "upload_frame" ); if ( frame && frame.pulldown ) frame.pulldown.cancel_due_to_error( "%s" ); } );
  6. """
  7. quota_error_script = \
  8. """
  9. withDocument( window.parent.document, function () { var frame = getFirstElementByTagAndClassName( "iframe", "upload_frame" ); if ( frame && frame.pulldown ) frame.pulldown.cancel_due_to_quota(); } );
  10. """