diff options
author | Aleksey Lim <alsroot@sugarlabs.org> | 2013-12-31 21:02:48 (GMT) |
---|---|---|
committer | Aleksey Lim <alsroot@sugarlabs.org> | 2013-12-31 21:31:06 (GMT) |
commit | 499eb6e121dfe7cef521553eba3f85e9122a6cea (patch) | |
tree | 16ddaf5e024c62cb9dad542976cb4453c9521441 /sugar_network/toolkit/router.py | |
parent | fc98d378a6726923daa994e0d96efa8ede13073a (diff) |
Use stubs for missed context images; rename context types
Diffstat (limited to 'sugar_network/toolkit/router.py')
-rw-r--r-- | sugar_network/toolkit/router.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/sugar_network/toolkit/router.py b/sugar_network/toolkit/router.py index 6309301..7f2c268 100644 --- a/sugar_network/toolkit/router.py +++ b/sugar_network/toolkit/router.py @@ -214,6 +214,10 @@ class Request(dict): if value is not None: return int(value) + @content_length.setter + def content_length(self, value): + self.environ['CONTENT_LENGTH'] = str(value) + @property def content_stream(self): if self._content_stream is _NOT_SET: @@ -224,6 +228,10 @@ class Request(dict): self._content_stream = _ContentStream(s, self.content_length) return self._content_stream + @content_stream.setter + def content_stream(self, value): + self._content_stream = value + @property def resource(self): if self.path: |