1.1 --- a/imipweb/env.py Mon Sep 11 22:31:35 2017 +0200
1.2 +++ b/imipweb/env.py Mon Sep 11 22:50:42 2017 +0200
1.3 @@ -3,7 +3,7 @@
1.4 """
1.5 Web interface utilities.
1.6
1.7 -Copyright (C) 2014, 2015 Paul Boddie <paul@boddie.org.uk>
1.8 +Copyright (C) 2014, 2015, 2017 Paul Boddie <paul@boddie.org.uk>
1.9
1.10 This program is free software; you can redistribute it and/or modify it under
1.11 the terms of the GNU General Public License as published by the Free Software
1.12 @@ -37,6 +37,10 @@
1.13 self.user = None
1.14 self.query_string = None
1.15
1.16 + # Retain computed state.
1.17 +
1.18 + self.state = {}
1.19 +
1.20 def get_args(self):
1.21 if self.args is None:
1.22 if self.get_method() != "POST":
1.23 @@ -91,4 +95,7 @@
1.24 path = self.get_path()
1.25 return "%s/%s" % (path.rstrip("/"), path_info.lstrip("/"))
1.26
1.27 + def get_state(self):
1.28 + return self.state
1.29 +
1.30 # vim: tabstop=4 expandtab shiftwidth=4