[issue555] Bug in BTS.

Erwan David mercurial-bugs at selenic.com
Thu May 3 07:09:29 CDT 2007


New submission from Erwan David <erwan+hg at rail.eu.org>:

I tried to set my time zone in the BTS and now cannot access any more to my
account page. Here is the trace :
Erreur de modèle

exceptions.ValueError: tzinfo.utcoffset() returned 1440; must be in -1439 .. 1439

Les informations de déboguage suivent

   1. Lors de l'évaluation de l'expression standard:'context/history' à la ligne 157
      Variables courantes:
      templates	<roundup.cgi.templating.Templates instance at 0xf793ddec>
      repeat	<roundup.cgi.PageTemplates.TALES.SafeMapping instance at 0xf783d6ac>
      false	0
      context	<HTMLItem(0x-87c31b4) user 251>
      utils	<roundup.cgi.templating.TemplatingUtils instance at 0xf783cfec>
      db	<roundup.cgi.templating.HTMLDatabase instance at 0xf783cf8c>
      nothing	None
      i18n	<roundup.cgi.TranslationService.TranslationService instance at
0xf78d9fec>
      true	1
      default	<roundup.cgi.PageTemplates.TALES.Default instance at 0xf7a08a6c>
      request	<HTMLRequest FieldStorage(None, None, [])>
      tracker	<roundup.instance.Tracker instance at 0xf7af4b6c>
      template	<Roundup PageTemplate 'user.item.html'>
      config	<roundup.configuration.CoreConfig instance at 0xf7afa3ec>
      options	{'ok_message': [], 'error_message': []}
      loop	<roundup.cgi.PageTemplates.TALES.SafeMapping instance at 0xf783d6ac>
      status_notresolved	'-1,1,2,3,4,5,6,7'
      columns_showall	'id,activity,title,creator,assignedto,status'
      attrs	{'tal:condition': 'context/id', 'tal:replace': 'structure
context/history'}
      kw_edit	1
      kw_edit_link	[<HTMLItem(0x-88079b4) keyword 14>, <HTMLItem(0x-8807234)
keyword 15>, <HTMLItem(0x-8807174) keyword 10>, <HTMLItem(0x-88070b4) keyword
1>, <HTMLItem(0x-8807034) keyword 3>, <HTMLItem(0x-8804f14) keyword 6>,
<HTMLItem(0x-8804e54) keyword 11>, <HTMLItem(0x-8804d94) keyword 18>,
<HTMLItem(0x-8804cd4) keyword 7>, <HTMLItem(0x-8804c14) keyword 13>,
<HTMLItem(0x-8804b54) keyword 9>, <HTMLItem(0x-8804a94) keyword 5>,
<HTMLItem(0x-88049d4) keyword 8>, <HTMLItem(0x-8804914) keyword 4>,
<HTMLItem(0x-8804854) keyword 16>, <HTMLItem(0x-8804794) keyword 12>,
<HTMLItem(0x-88046d4) keyword 2>]
      kw_create	1
      columns	'id,activity,title,creator,status'
   2. Un problème est apparu dans votre modèle "user.item.html".

Historique complet:

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 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 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 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/Expressions.py",
line 194, in __call__
    return self._eval(econtext)
  File
"/usr/lib/python2.4/site-packages/roundup/cgi/PageTemplates/Expressions.py",
line 189, in _eval
    return render(ob, econtext.vars)
  File
"/usr/lib/python2.4/site-packages/roundup/cgi/PageTemplates/Expressions.py",
line 95, in render
    ob = ob()
  File "/usr/lib/python2.4/site-packages/roundup/cgi/templating.py", line 868,
in history
    current[prop_n] = prop.plain()
  File "/usr/lib/python2.4/site-packages/roundup/cgi/templating.py", line 1524,
in plain
    return str(self._value.local(offset))
  File "/usr/lib/python2.4/site-packages/roundup/date.py", line 523, in local
    self.hour, self.minute, self.second, offset)
  File "/usr/lib/python2.4/site-packages/roundup/date.py", line 161, in
_utc_to_local
    y,m,d,H,M,S = dt.astimezone(TZ).timetuple()[:6]
ValueError: tzinfo.utcoffset() returned 1440; must be in -1439 .. 1439

----------
messages: 3056
nosy: edavid
priority: bug
status: unread
title: Bug in BTS.

____________________________________________________
Mercurial issue tracker <mercurial-bugs at selenic.com>
<http://www.selenic.com/mercurial/bts/issue555>
____________________________________________________



More information about the Mercurial-devel mailing list