diff options
author | Holger Levsen <holger@debian.org> | 2014-09-15 19:08:32 +0000 |
---|---|---|
committer | Holger Levsen <holger@debian.org> | 2014-09-15 19:08:32 +0000 |
commit | d512b7f70c9834e1e87197c644d2e44d1f28d0ad (patch) | |
tree | 2b5be068e47172a20d79a76596f2a760f3c28d80 /lib | |
parent | 53b2200e10c199317084bb581c886cb1ebdf8c7d (diff) |
tracker_service.py: add support for external css files
git-svn-id: svn+ssh://svn.debian.org/svn/secure-testing@28797 e39458fd-73e7-0310-bf30-c45bca0a0e42
Diffstat (limited to 'lib')
-rw-r--r-- | lib/python/web_support.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/python/web_support.py b/lib/python/web_support.py index f1663a33e9..1e220505c8 100644 --- a/lib/python/web_support.py +++ b/lib/python/web_support.py @@ -625,7 +625,7 @@ class RedirectResult(Result): class HTMLResult(Result): """An object of this class combines a status code with HTML contents.""" - def __init__(self, contents, status=200, doctype=''): + def __init__(self, contents, doctype='', status=200): self.contents = contents self.status = status self.doctype = doctype @@ -654,8 +654,8 @@ class HTMLResult(Result): class BinaryResult(Result): """An object of this class combines a status code with HTML contents.""" - def __init__(self, contents, status=200, - mimetype='application/octet-stream'): + def __init__(self, contents, + mimetype='application/octet-stream', status=200): self.contents = contents self.status = status self.mimetype = mimetype |