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/Blank_page.py
Dan Helfman fd0e91ea39 Implemented quota enforcement when uploading a file. This occurs in two places:
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.
2008-02-20 20:21:54 +00:00

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(),
)