fd0e91ea39
1. In progress(), around the time when the file starts uploading. This causes an upload that's too large to bail before the whole file uploads, but the quota calculation is only an estimate and relies on the client actually calling progress(). 2. In upload(), when the file finishes uploading. This quota calculation is exact, but only happens after the entire upload completes.
22 lines
437 B
Python
22 lines
437 B
Python
from Tags import Html, Head, Body, Script
|
|
|
|
|
|
class Blank_page( Html ):
|
|
def __init__( self, script = None ):
|
|
if script:
|
|
Html.__init__(
|
|
self,
|
|
Head(
|
|
Script( type = u"text/javascript", src = u"/static/js/MochiKit.js" ),
|
|
),
|
|
Body(
|
|
Script( script, type = u"text/javascript" ),
|
|
),
|
|
)
|
|
else:
|
|
Html.__init__(
|
|
self,
|
|
Head(),
|
|
Body(),
|
|
)
|