Hi,
the (novice) admin of one of my trackers has erroneously created a
user that has two email addresses in his email field, separated by a
comma. Trying to view the user list web page now results in the error
message below, and I am unable to change that field. The web
interface should probably check for such illegal characters when
creating new database entries.
Templating Error
exceptions.ValueError: too many values to unpack
Debugging information follows
In python expression "user.address.email() or default"
While evaluating the expression on line 29
Current variables:
templates <roundup.cgi.templating.Templates instance at 0x88896ec>
repeat <roundup.cgi.PageTemplates.TALES.SafeMapping instance
at 0x899630c>
false 0
context <HTMLClass(0x899624c) user>
utils <roundup.cgi.templating.TemplatingUtils instance at 0x899606c>
db <roundup.cgi.templating.HTMLDatabase instance at 0x89961ec>
nothing None
i18n <roundup.cgi.TranslationService.TranslationService instance at
0x8986b0c>
true 1
default <roundup.cgi.PageTemplates.TALES.Default instance at
0x8454ecc>
request <roundup.cgi.templating.HTMLRequest instance at
0x89924cc>
tracker <roundup.instance.Tracker instance at 0x8831c8c>
template <Roundup PageTemplate 'user.index.html'>
config <roundup.configuration.CoreConfig instance at 0x8751fec>
options {'ok_message': [], 'error_message': []}
loop <roundup.cgi.PageTemplates.TALES.SafeMapping instance at
0x899630c>
attrs {'tal:content': 'python:user.address.email() or default'}
user <HTMLItem(0x89a606c) user 10>
A problem occurred in your template "user.index.html".
Full traceback:
Traceback (most recent call last):
File "/usr/local/lib/python2.4/site-packages/roundup/cgi/client.py", line
686, in renderContext
result = pt.render(self, None, None, **args)
File "/usr/local/lib/python2.4/site-packages/roundup/cgi/templating.py",
line 318, in render
getEngine().getContext(c), output, tal=1, strictinsert=0)()
File "/usr/local/lib/python2.4/site-packages/roundup/cgi/TAL/
TALInterpreter.py", line 192, in __call__
self.interpret(self.program)
File "/usr/local/lib/python2.4/site-packages/roundup/cgi/TAL/
TALInterpreter.py", line 236, in interpret
handlers[opcode](self, args)
File "/usr/local/lib/python2.4/site-packages/roundup/cgi/TAL/
TALInterpreter.py", line 666, in do_useMacro
self.interpret(macro)
File "/usr/local/lib/python2.4/site-packages/roundup/cgi/TAL/
TALInterpreter.py", line 236, in interpret
handlers[opcode](self, args)
File "/usr/local/lib/python2.4/site-packages/roundup/cgi/TAL/
TALInterpreter.py", line 411, in do_optTag_tal
self.do_optTag(stuff)
File "/usr/local/lib/python2.4/site-packages/roundup/cgi/TAL/
TALInterpreter.py", line 396, in do_optTag
return self.no_tag(start, program)
File "/usr/local/lib/python2.4/site-packages/roundup/cgi/TAL/
TALInterpreter.py", line 391, in no_tag
self.interpret(program)
File "/usr/local/lib/python2.4/site-packages/roundup/cgi/TAL/
TALInterpreter.py", line 236, in interpret
handlers[opcode](self, args)
File "/usr/local/lib/python2.4/site-packages/roundup/cgi/TAL/
TALInterpreter.py", line 689, in do_defineSlot
self.interpret(slot)
File "/usr/local/lib/python2.4/site-packages/roundup/cgi/TAL/
TALInterpreter.py", line 236, in interpret
handlers[opcode](self, args)
File "/usr/local/lib/python2.4/site-packages/roundup/cgi/TAL/
TALInterpreter.py", line 632, in do_condition
self.interpret(block)
File "/usr/local/lib/python2.4/site-packages/roundup/cgi/TAL/
TALInterpreter.py", line 236, in interpret
handlers[opcode](self, args)
File "/usr/local/lib/python2.4/site-packages/roundup/cgi/TAL/
TALInterpreter.py", line 608, in do_loop_tal
self.interpret(block)
File "/usr/local/lib/python2.4/site-packages/roundup/cgi/TAL/
TALInterpreter.py", line 236, in interpret
handlers[opcode](self, args)
File "/usr/local/lib/python2.4/site-packages/roundup/cgi/TAL/
TALInterpreter.py", line 411, in do_optTag_tal
self.do_optTag(stuff)
File "/usr/local/lib/python2.4/site-packages/roundup/cgi/TAL/
TALInterpreter.py", line 396, in do_optTag
return self.no_tag(start, program)
File "/usr/local/lib/python2.4/site-packages/roundup/cgi/TAL/
TALInterpreter.py", line 391, in no_tag
self.interpret(program)
File "/usr/local/lib/python2.4/site-packages/roundup/cgi/TAL/
TALInterpreter.py", line 236, in interpret
handlers[opcode](self, args)
File "/usr/local/lib/python2.4/site-packages/roundup/cgi/TAL/
TALInterpreter.py", line 486, in do_insertText_tal
text = self.engine.evaluateText(stuff[0])
File "/usr/local/lib/python2.4/site-packages/roundup/cgi/
PageTemplates/TALES.py", line 233, in evaluateText
text = self.evaluate(expr)
File "/usr/local/lib/python2.4/site-packages/roundup/cgi/
PageTemplates/TALES.py", line 227, in evaluate
return expression(self)
File "/usr/local/lib/python2.4/site-packages/roundup/cgi/
PageTemplates/PythonExpr.py", line 69, in __call__
return f()
File "<string>", line 2, in f
File "/usr/local/lib/python2.4/site-packages/roundup/cgi/templating.py",
line 1238, in email
name, domain = value.split('@')
ValueError: too many values to unpack
|