[darcs-users] bugs.darcs.net issues

Eric Kow eric.kow at gmail.com
Sun May 11 15:58:13 UTC 2008


Here's what I get if I visit http://bugs.darcs.net

Templating Error

exceptions.NameError: global name 'escape' is not defined

Debugging information follows

   1. In python expression "str(i[g]) or '(no %s set)'%g"
   2. While evaluating the expression on line 42
      Current variables:
      templates	<roundup.cgi.templating.Templates instance at 0xa97332ec>
      repeat	<roundup.cgi.PageTemplates.TALES.SafeMapping instance at
0xa9a0164c>
      false	0
      context	<HTMLClass(0x-565fe2f4) issue>
      utils	<roundup.cgi.templating.TemplatingUtils instance at 0xa9a0122c>
      db	<roundup.cgi.templating.HTMLDatabase instance at 0xa9a015ac>
      nothing	None
      i18n	<roundup.cgi.TranslationService.TranslationService instance
at 0xa973336c>
      true	1
      default	<roundup.cgi.PageTemplates.TALES.Default instance at 0xa9b403ac>
      request	<HTMLRequest FieldStorage(None, None, [])>
      tracker	<roundup.instance.Tracker instance at 0xa98798ec>
      template	<Roundup PageTemplate 'issue.index.html'>
      config	<roundup.configuration.CoreConfig instance at 0xa987930c>
      options	{'ok_message': [], 'error_message': []}
      loop	<roundup.cgi.PageTemplates.TALES.SafeMapping instance at 0xa9a0164c>
      status_notresolved	'-1,1,2,3,4,5,6'
      columns_showall	'id,activity,title,creator,assignedto,status'
      group	['priority']
      g	'priority'
      i	<HTMLItem(0x-566f0834) issue 770>
      columns_topic	'id,activity,title,creator,assignedto,priority'
      batch	<roundup.cgi.templating.Batch instance at 0xa9a01b4c>
      kw_edit	0
      attrs	{'tal:content': "python:str(i[g]) or '(no %s set)'%g"}
      kw_edit_link	0
      kw_create	0
      columns	'id,activity,title,creator,status'
   3. A problem occurred in your template "issue.index.html".
   4. In python expression "db.issue.renderWith('index', sort=[('-',
'activity')], group=[('+', 'priority')], filter=['status'],
columns=['id','activity','title','creator','assignedto','status'],
filterspec={'status':['-1','1','3','4','5','6']})"
   5. While evaluating the expression on line 7
      Current variables:
      templates	<roundup.cgi.templating.Templates instance at 0xa97332ec>
      repeat	<roundup.cgi.PageTemplates.TALES.SafeMapping instance at
0xa983760c>
      false	0
      context	None
      utils	<roundup.cgi.templating.TemplatingUtils instance at 0xa983734c>
      db	<roundup.cgi.templating.HTMLDatabase instance at 0xa983746c>
      nothing	None
      i18n	<roundup.cgi.TranslationService.TranslationService instance
at 0xa973336c>
      true	1
      default	<roundup.cgi.PageTemplates.TALES.Default instance at 0xa9b403ac>
      request	<HTMLRequest FieldStorage(None, None, [])>
      tracker	<roundup.instance.Tracker instance at 0xa98798ec>
      template	<Roundup PageTemplate 'home.html'>
      config	<roundup.configuration.CoreConfig instance at 0xa987930c>
      options	{'ok_message': [], 'error_message': []}
      loop	<roundup.cgi.PageTemplates.TALES.SafeMapping instance at 0xa983760c>
      attrs	{'tal:replace': "structure
python:db.issue.renderWith('index',\n sort=[('-', 'activity')],
group=[('+', 'priority')], filter=['status'],\n
columns=['id','activity','title','creator','assignedto','status'],\n
filterspec={'status':['-1','1','3','4','5','6']})"}
   6. A problem occurred in your template "home.html".

Full traceback:

Traceback (most recent call last):
  File "/usr/lib/python2.4/site-packages/roundup/cgi/client.py", line
730, in renderContext
    result = pt.render(self, None, None, **args)
  File "/usr/lib/python2.4/site-packages/roundup/cgi/templating.py",
line 323, in render
    getEngine().getContext(c), output, tal=1, strictinsert=0)()
  File "/usr/lib/python2.4/site-packages/roundup/cgi/TAL/TALInterpreter.py",
line 192, in __call__
    self.interpret(self.program)
  File "/usr/lib/python2.4/site-packages/roundup/cgi/TAL/TALInterpreter.py",
line 236, in interpret
    handlers[opcode](self, args)
  File "/usr/lib/python2.4/site-packages/roundup/cgi/TAL/TALInterpreter.py",
line 564, in do_insertStructure_tal
    structure = self.engine.evaluateStructure(expr)
  File "/usr/lib/python2.4/site-packages/roundup/cgi/PageTemplates/TALES.py",
line 227, in evaluate
    return expression(self)
  File "/usr/lib/python2.4/site-packages/roundup/cgi/PageTemplates/PythonExpr.py",
line 69, in __call__
    return f()
  File "<string>", line 2, in f
  File "/usr/lib/python2.4/site-packages/roundup/cgi/templating.py",
line 745, in renderWith
    return pt.render(self._client, self.classname, req, **args)
  File "/usr/lib/python2.4/site-packages/roundup/cgi/templating.py",
line 323, in render
    getEngine().getContext(c), output, tal=1, strictinsert=0)()
  File "/usr/lib/python2.4/site-packages/roundup/cgi/TAL/TALInterpreter.py",
line 192, in __call__
    self.interpret(self.program)
  File "/usr/lib/python2.4/site-packages/roundup/cgi/TAL/TALInterpreter.py",
line 236, in interpret
    handlers[opcode](self, args)
  File "/usr/lib/python2.4/site-packages/roundup/cgi/TAL/TALInterpreter.py",
line 666, in do_useMacro
    self.interpret(macro)
  File "/usr/lib/python2.4/site-packages/roundup/cgi/TAL/TALInterpreter.py",
line 236, in interpret
    handlers[opcode](self, args)
  File "/usr/lib/python2.4/site-packages/roundup/cgi/TAL/TALInterpreter.py",
line 411, in do_optTag_tal
    self.do_optTag(stuff)
  File "/usr/lib/python2.4/site-packages/roundup/cgi/TAL/TALInterpreter.py",
line 396, in do_optTag
    return self.no_tag(start, program)
  File "/usr/lib/python2.4/site-packages/roundup/cgi/TAL/TALInterpreter.py",
line 391, in no_tag
    self.interpret(program)
  File "/usr/lib/python2.4/site-packages/roundup/cgi/TAL/TALInterpreter.py",
line 236, in interpret
    handlers[opcode](self, args)
  File "/usr/lib/python2.4/site-packages/roundup/cgi/TAL/TALInterpreter.py",
line 689, in do_defineSlot
    self.interpret(slot)
  File "/usr/lib/python2.4/site-packages/roundup/cgi/TAL/TALInterpreter.py",
line 236, in interpret
    handlers[opcode](self, args)
  File "/usr/lib/python2.4/site-packages/roundup/cgi/TAL/TALInterpreter.py",
line 632, in do_condition
    self.interpret(block)
  File "/usr/lib/python2.4/site-packages/roundup/cgi/TAL/TALInterpreter.py",
line 236, in interpret
    handlers[opcode](self, args)
  File "/usr/lib/python2.4/site-packages/roundup/cgi/TAL/TALInterpreter.py",
line 411, in do_optTag_tal
    self.do_optTag(stuff)
  File "/usr/lib/python2.4/site-packages/roundup/cgi/TAL/TALInterpreter.py",
line 396, in do_optTag
    return self.no_tag(start, program)
  File "/usr/lib/python2.4/site-packages/roundup/cgi/TAL/TALInterpreter.py",
line 391, in no_tag
    self.interpret(program)
  File "/usr/lib/python2.4/site-packages/roundup/cgi/TAL/TALInterpreter.py",
line 236, in interpret
    handlers[opcode](self, args)
  File "/usr/lib/python2.4/site-packages/roundup/cgi/TAL/TALInterpreter.py",
line 632, in do_condition
    self.interpret(block)
  File "/usr/lib/python2.4/site-packages/roundup/cgi/TAL/TALInterpreter.py",
line 236, in interpret
    handlers[opcode](self, args)
  File "/usr/lib/python2.4/site-packages/roundup/cgi/TAL/TALInterpreter.py",
line 608, in do_loop_tal
    self.interpret(block)
  File "/usr/lib/python2.4/site-packages/roundup/cgi/TAL/TALInterpreter.py",
line 236, in interpret
    handlers[opcode](self, args)
  File "/usr/lib/python2.4/site-packages/roundup/cgi/TAL/TALInterpreter.py",
line 411, in do_optTag_tal
    self.do_optTag(stuff)
  File "/usr/lib/python2.4/site-packages/roundup/cgi/TAL/TALInterpreter.py",
line 396, in do_optTag
    return self.no_tag(start, program)
  File "/usr/lib/python2.4/site-packages/roundup/cgi/TAL/TALInterpreter.py",
line 391, in no_tag
    self.interpret(program)
  File "/usr/lib/python2.4/site-packages/roundup/cgi/TAL/TALInterpreter.py",
line 236, in interpret
    handlers[opcode](self, args)
  File "/usr/lib/python2.4/site-packages/roundup/cgi/TAL/TALInterpreter.py",
line 632, in do_condition
    self.interpret(block)
  File "/usr/lib/python2.4/site-packages/roundup/cgi/TAL/TALInterpreter.py",
line 236, in interpret
    handlers[opcode](self, args)
  File "/usr/lib/python2.4/site-packages/roundup/cgi/TAL/TALInterpreter.py",
line 608, in do_loop_tal
    self.interpret(block)
  File "/usr/lib/python2.4/site-packages/roundup/cgi/TAL/TALInterpreter.py",
line 236, in interpret
    handlers[opcode](self, args)
  File "/usr/lib/python2.4/site-packages/roundup/cgi/TAL/TALInterpreter.py",
line 411, in do_optTag_tal
    self.do_optTag(stuff)
  File "/usr/lib/python2.4/site-packages/roundup/cgi/TAL/TALInterpreter.py",
line 396, in do_optTag
    return self.no_tag(start, program)
  File "/usr/lib/python2.4/site-packages/roundup/cgi/TAL/TALInterpreter.py",
line 391, in no_tag
    self.interpret(program)
  File "/usr/lib/python2.4/site-packages/roundup/cgi/TAL/TALInterpreter.py",
line 236, in interpret
    handlers[opcode](self, args)
  File "/usr/lib/python2.4/site-packages/roundup/cgi/TAL/TALInterpreter.py",
line 411, in do_optTag_tal
    self.do_optTag(stuff)
  File "/usr/lib/python2.4/site-packages/roundup/cgi/TAL/TALInterpreter.py",
line 396, in do_optTag
    return self.no_tag(start, program)
  File "/usr/lib/python2.4/site-packages/roundup/cgi/TAL/TALInterpreter.py",
line 391, in no_tag
    self.interpret(program)
  File "/usr/lib/python2.4/site-packages/roundup/cgi/TAL/TALInterpreter.py",
line 236, in interpret
    handlers[opcode](self, args)
  File "/usr/lib/python2.4/site-packages/roundup/cgi/TAL/TALInterpreter.py",
line 486, in do_insertText_tal
    text = self.engine.evaluateText(stuff[0])
  File "/usr/lib/python2.4/site-packages/roundup/cgi/PageTemplates/TALES.py",
line 233, in evaluateText
    text = self.evaluate(expr)
  File "/usr/lib/python2.4/site-packages/roundup/cgi/PageTemplates/TALES.py",
line 227, in evaluate
    return expression(self)
  File "/usr/lib/python2.4/site-packages/roundup/cgi/PageTemplates/PythonExpr.py",
line 69, in __call__
    return f()
  File "<string>", line 2, in f
  File "/usr/lib/python2.4/site-packages/roundup/cgi/templating.py",
line 1200, in __str__
    return self.plain()
  File "/usr/lib/python2.4/site-packages/roundup/cgi/templating.py",
line 1760, in plain
    if escape:
NameError: global name 'escape' is not defined

-- 
Eric Kow <http://www.nltg.brighton.ac.uk/home/Eric.Kow>
PGP Key ID: 08AC04F9


More information about the darcs-users mailing list