# (c) 2005 Ian Bicking and contributors; written for Paste
(http://pythonpaste.org) # Licensed under the MIT license:
http://www.opensource.org/licenses/mit-license.php # (c) 2005
Clark C. Evans # This module is part of the Python Paste Project
and is released under # the MIT License:
http://www.opensource.org/licenses/mit-license.php # This code
was written with funding by http://prometheusresearch.com """
Upload Progress Monitor This is a WSGI middleware component
which monitors the status of files being uploaded. It includes a
small query application which will return a list of all files
being uploaded by particular session/user. >>> from
paste.httpserver import serve >>> from paste.urlmap import
URLMap >>> from paste.auth.basic import AuthBasicHandler >>>
from paste.debug.debugapp import SlowConsumer, SimpleApplication
>>> # from paste.progress import * >>> realm = 'Test Realm' >>>
def authfunc(username, password): ... return username ==
password >>> map = URLMap({}) >>> ups =
UploadProgressMonitor(map, t