From: erickson Date: Fri, 28 Dec 2007 15:39:31 +0000 (+0000) Subject: mild cleanup X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=cabdf9a96fa398d210a036f54eb14d2e60ed4ccb;p=Evergreen.git mild cleanup git-svn-id: svn://svn.open-ils.org/ILS/branches/acq-experiment@8284 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/web/oilsweb/oilsweb/lib/context.py b/Open-ILS/web/oilsweb/oilsweb/lib/context.py index 38d4610b76..0eceea40c6 100644 --- a/Open-ILS/web/oilsweb/oilsweb/lib/context.py +++ b/Open-ILS/web/oilsweb/oilsweb/lib/context.py @@ -1,7 +1,9 @@ from oilsweb.lib.util import childInit import cgi +# global context _context = None +# global collection of sub-contexts _subContexts = {} class ContextItem(object): @@ -51,10 +53,7 @@ class Context(object): if isinstance(val, str) or isinstance(val, unicode): q += f.cgi_name+'='+cgi.escape(val)+'&' - if len(q) > 0: - q = q[:-1] # strip the trailing & - - return q + return q[:-1] # strip the trailing & def apply_cookies(self): for f in self._fields: