Roundup Tracker - Issues

Issue 1096027

classification
cgi/templating.py:indexargs_url references undefined global
Type: Severity: normal
Components: Web interface Versions:
process
Status: closed fixed
:
: richard : bruceguenter, richard
Priority: normal :

Created on 2005-01-04 20:49 by bruceguenter, last changed 2005-01-05 21:46 by richard.

Messages
msg1792 Author: [hidden] (bruceguenter) Date: 2005-01-04 20:49
I just installed version 0.7.10.  I could successfully
view the unauthenticated login page, but after login I
get the following error (full traceback):

Traceback (most recent call last):
  File
"/home/roundup/lib/python/roundup/cgi/client.py", line
527, in renderContext
    result = pt.render(self, None, None, **args)
  File
"/home/roundup/lib/python/roundup/cgi/templating.py",
line 258, in render
    getEngine().getContext(c), output, tal=1,
strictinsert=0)()
  File
"/home/roundup/lib/python/roundup/cgi/TAL/TALInterpreter.py",
line 154, in __call__
    self.interpret(self.program)
  File
"/home/roundup/lib/python/roundup/cgi/TAL/TALInterpreter.py",
line 186, in interpret
    handlers[opcode](self, args)
  File
"/home/roundup/lib/python/roundup/cgi/TAL/TALInterpreter.py",
line 432, in do_insertStructure_tal
    structure = self.engine.evaluateStructure(expr)
  File
"/home/roundup/lib/python/roundup/cgi/PageTemplates/TALES.py",
line 226, in evaluate
    v = expression(self)
  File
"/home/roundup/lib/python/roundup/cgi/PageTemplates/PythonExpr.py",
line 72, in __call__
    return f()
  File "<string>", line 2, in f
  File
"/home/roundup/lib/python/roundup/cgi/templating.py",
line 618, in renderWith
    return pt.render(self._client, self.classname, req,
**args)
  File
"/home/roundup/lib/python/roundup/cgi/templating.py",
line 258, in render
    getEngine().getContext(c), output, tal=1,
strictinsert=0)()
  File
"/home/roundup/lib/python/roundup/cgi/TAL/TALInterpreter.py",
line 154, in __call__
    self.interpret(self.program)
  File
"/home/roundup/lib/python/roundup/cgi/TAL/TALInterpreter.py",
line 186, in interpret
    handlers[opcode](self, args)
  File
"/home/roundup/lib/python/roundup/cgi/TAL/TALInterpreter.py",
line 525, in do_useMacro
    self.interpret(macro)
  File
"/home/roundup/lib/python/roundup/cgi/TAL/TALInterpreter.py",
line 186, in interpret
    handlers[opcode](self, args)
  File
"/home/roundup/lib/python/roundup/cgi/TAL/TALInterpreter.py",
line 345, in do_optTag_tal
    self.do_optTag(stuff)
  File
"/home/roundup/lib/python/roundup/cgi/TAL/TALInterpreter.py",
line 330, in do_optTag
    return self.no_tag(start, program)
  File
"/home/roundup/lib/python/roundup/cgi/TAL/TALInterpreter.py",
line 325, in no_tag
    self.interpret(program)
  File
"/home/roundup/lib/python/roundup/cgi/TAL/TALInterpreter.py",
line 186, in interpret
    handlers[opcode](self, args)
  File
"/home/roundup/lib/python/roundup/cgi/TAL/TALInterpreter.py",
line 491, in do_condition
    self.interpret(block)
  File
"/home/roundup/lib/python/roundup/cgi/TAL/TALInterpreter.py",
line 186, in interpret
    handlers[opcode](self, args)
  File
"/home/roundup/lib/python/roundup/cgi/TAL/TALInterpreter.py",
line 238, in do_startTag
    ok, name, s = attrAction(self, item)
  File
"/home/roundup/lib/python/roundup/cgi/TAL/TALInterpreter.py",
line 303, in attrAction_tal
    evalue = self.engine.evaluateText(item[3])
  File
"/home/roundup/lib/python/roundup/cgi/PageTemplates/TALES.py",
line 233, in evaluateText
    text = self.evaluate(expr)
  File
"/home/roundup/lib/python/roundup/cgi/PageTemplates/TALES.py",
line 226, in evaluate
    v = expression(self)
  File
"/home/roundup/lib/python/roundup/cgi/PageTemplates/PythonExpr.py",
line 72, in __call__
    return f()
  File "<string>", line 2, in f
  File
"/home/roundup/lib/python/roundup/cgi/templating.py",
line 2037, in indexargs_url
    l.append(s%(k, ','.join(v)))
NameError: global name 's' is not defined

msg1793 Author: [hidden] (richard) Date: 2005-01-05 21:46
Logged In: YES 
user_id=6405

Ugh, I was sure I tested this. Sorry! 
 
Fixed up url quoting while I was at it. 
History
Date User Action Args
2005-01-04 20:49:15bruceguentercreate