Roundup Tracker - Issues

Issue 952932

classification
DEFAULT_TIMEZONE exception in user edit page
Type: Severity: normal
Components: Web interface Versions:
process
Status: closed fixed
:
: richard : richard, swelljoe
Priority: normal :

Created on 2004-05-13 00:07 by swelljoe, last changed 2004-05-13 00:07 by swelljoe.

Messages
msg1241 Author: [hidden] (swelljoe) Date: 2004-05-13 00:07
Clicking on any user in the User List in 0.7.1 results
in the following exception:

Templating Error

exceptions.AttributeError: 'module' object has no
attribute 'DEFAULT_TIMEZONE'

Debugging information follows

   1. Looking for "DEFAULT_TIMEZONE", current path:
         1. "config" (<module
'_roundup_tracker_1.config' from
'/www/roundup/trackers-2/test/config.pyo'>)
   2. In path expression "config/DEFAULT_TIMEZONE"
   3. While evaluating the
standard:'db/config/DEFAULT_TIMEZONE' expression on line 60
      Current variables:
      templates	<roundup.cgi.templating.Templates
instance at 0x4082f44c>
      repeat
<roundup.cgi.PageTemplates.TALES.SafeMapping instance
at 0x4082f6ec>
      template	<Roundup PageTemplate 'user.item.html'>
      default	<roundup.cgi.PageTemplates.TALES.Default
instance at 0x4076de0c>
      db	<roundup.cgi.templating.HTMLDatabase instance
at 0x4082d1ec>
      utils	<roundup.cgi.templating.utils instance at
0x4082f32c>
      request	<roundup.cgi.templating.HTMLRequest
instance at 0x40782dcc>
      tracker	<module '_roundup_tracker_1' from
'/www/roundup/trackers-2/test/__init__.pyo'>
      context	<HTMLItem(0x4082f42c) user 3>
      nothing	None
      config	<module '_roundup_tracker_1.config' from
'/www/roundup/trackers-2/test/config.pyo'>
      options	{'ok_message': [], 'error_message': []}
      loop	<roundup.cgi.PageTemplates.TALES.SafeMapping
instance at 0x4082f6ec>
      attrs	{'tal:replace': 'db/config/DEFAULT_TIMEZONE'}
   4. A problem occurred in your template "user.item.html".

Full traceback:

Traceback (most recent call last):
  File
"/usr/local/python2.3.2-ee-1004.1/lib/python2.3/site-packages/roundup/cgi/client.py",
line 519, in renderContext
    result = pt.render(self, None, None, **args)
  File
"/usr/local/python2.3.2-ee-1004.1/lib/python2.3/site-packages/roundup/cgi/templating.py",
line 246, in render
    getEngine().getContext(c), output, tal=1,
strictinsert=0)()
  File
"/usr/local/python2.3.2-ee-1004.1/lib/python2.3/site-packages/roundup/cgi/TAL/TALInterpreter.py",
line 154, in __call__
    self.interpret(self.program)
  File
"/usr/local/python2.3.2-ee-1004.1/lib/python2.3/site-packages/roundup/cgi/TAL/TALInterpreter.py",
line 186, in interpret
    handlers[opcode](self, args)
  File
"/usr/local/python2.3.2-ee-1004.1/lib/python2.3/site-packages/roundup/cgi/TAL/TALInterpreter.py",
line 525, in do_useMacro
    self.interpret(macro)
  File
"/usr/local/python2.3.2-ee-1004.1/lib/python2.3/site-packages/roundup/cgi/TAL/TALInterpreter.py",
line 186, in interpret
    handlers[opcode](self, args)
  File
"/usr/local/python2.3.2-ee-1004.1/lib/python2.3/site-packages/roundup/cgi/TAL/TALInterpreter.py",
line 345, in do_optTag_tal
    self.do_optTag(stuff)
  File
"/usr/local/python2.3.2-ee-1004.1/lib/python2.3/site-packages/roundup/cgi/TAL/TALInterpreter.py",
line 330, in do_optTag
    return self.no_tag(start, program)
  File
"/usr/local/python2.3.2-ee-1004.1/lib/python2.3/site-packages/roundup/cgi/TAL/TALInterpreter.py",
line 325, in no_tag
    self.interpret(program)
  File
"/usr/local/python2.3.2-ee-1004.1/lib/python2.3/site-packages/roundup/cgi/TAL/TALInterpreter.py",
line 186, in interpret
    handlers[opcode](self, args)
  File
"/usr/local/python2.3.2-ee-1004.1/lib/python2.3/site-packages/roundup/cgi/TAL/TALInterpreter.py",
line 549, in do_defineSlot
    self.interpret(slot)
  File
"/usr/local/python2.3.2-ee-1004.1/lib/python2.3/site-packages/roundup/cgi/TAL/TALInterpreter.py",
line 186, in interpret
    handlers[opcode](self, args)
  File
"/usr/local/python2.3.2-ee-1004.1/lib/python2.3/site-packages/roundup/cgi/TAL/TALInterpreter.py",
line 413, in do_insertText_tal
    text = self.engine.evaluateText(stuff[0])
  File
"/usr/local/python2.3.2-ee-1004.1/lib/python2.3/site-packages/roundup/cgi/PageTemplates/TALES.py",
line 233, in evaluateText
    text = self.evaluate(expr)
  File
"/usr/local/python2.3.2-ee-1004.1/lib/python2.3/site-packages/roundup/cgi/PageTemplates/TALES.py",
line 226, in evaluate
    v = expression(self)
  File
"/usr/local/python2.3.2-ee-1004.1/lib/python2.3/site-packages/roundup/cgi/PageTemplates/Expressions.py",
line 189, in __call__
    return self._eval(econtext)
  File
"/usr/local/python2.3.2-ee-1004.1/lib/python2.3/site-packages/roundup/cgi/PageTemplates/Expressions.py",
line 177, in _eval
    ob = self._subexprs[-1](econtext)
  File
"/usr/local/python2.3.2-ee-1004.1/lib/python2.3/site-packages/roundup/cgi/PageTemplates/Expressions.py",
line 133, in _eval
    ob = restrictedTraverse(ob, path, getSecurityManager())
  File
"/usr/local/python2.3.2-ee-1004.1/lib/python2.3/site-packages/roundup/cgi/PageTemplates/Expressions.py",
line 329, in restrictedTraverse
    get(object, name)
AttributeError: 'module' object has no attribute
'DEFAULT_TIMEZONE'

 
msg1242 Author: [hidden] (richard) Date: 2004-05-13 00:24
Logged In: YES 
user_id=6405

You're just finding all the bugs at the moment, aren't you? :) 
 
This is a configuration issue. There needed to be a mention of the 
DEFAULT_TIMEZONE requirement in the upgrading doc. I've ammended 
the documentation now. See the configuration doc for how to set it. 
 
Thanks for the report. 
msg1243 Author: [hidden] (swelljoe) Date: 2004-05-13 00:44
Logged In: YES 
user_id=32533

> You're just finding all the bugs at the moment, aren't you? :)

We've got a lot of roundups here.  They get lots of abuse.

Thanks for the quick response.
History
Date User Action Args
2004-05-13 00:07:25swelljoecreate