23b3884e83
Still to do: Rewrite import code to do something similar, and refactor unit tests accordingly.
15 lines
532 B
Python
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(); } );
|
|
"""
|