Issue134

Title Exception viewing issue with superseder - should superseder be Link or Multilink
Priority bug Status chatting
Superseder Nosy List ehuss
Assigned To Topics

Created on 2007-08-23.18:16:40 by ehuss, last changed 2007-08-23.18:31:57 by gbrandl.

Messages
msg701 (view) Author: gbrandl Date: 2007-08-23.18:31:57
Erik Forsberg schrieb:

> If we do want a superseder to a be a Multilink, we need to change the
> schema. And the latter needs to be done after asking some roundup
> übergurus if that can be done safely.

I think a Multilink is not necessary. You seldomly need a superseder
anyway, and I can only imagine the other direction (two issues superseded
by the same third issue).

Georg
msg700 (view) Author: forsberg Date: 2007-08-23.18:25:27
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Eric Huss <metatracker@psf.upfronthosting.co.za> writes:

> I do not
> know what the underlying problem is.  

I know :-).

In our schema, 'superseder' on issue is a Link, not a Multilink as in
the default schema. This made the page template code confused, which
caused the traceback. 

In non-roundup-guru speak, this means that you can only have _one_
superseder for an issue, not several.

If this is what we want, then my temporary fix (checked in and
implemented at bugs.python.org) is OK. 

If we do want a superseder to a be a Multilink, we need to change the
schema. And the latter needs to be done after asking some roundup
übergurus if that can be done safely.

\EF
- -- 
Erik Forsberg                 http://efod.se
GPG/PGP Key: 1024D/0BAC89D9
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Processed by Mailcrypt 3.5.8+ <http://mailcrypt.sourceforge.net/>

iD8DBQFGzdEUrJurFAusidkRAlvxAJsFcvu/bEbAAF0rBhryfC4OZagwbwCeMAjI
FximlzgqdXuQ5T/r+0aXKRQ=
=ZIaS
-----END PGP SIGNATURE-----
msg699 (view) Author: ehuss Date: 2007-08-23.18:16:40
An issue on the Python tracker was recently closed.  Afterwards, trying to view
the issue caused a traceback to be displayed.  The URL was
http://bugs.python.org/issue1744398.  Erik Forsberg took a quick look at it and
made a workaround, but suggested that I file a bug to track the issue.  I do not
know what the underlying problem is.  The error was:


exceptions.AttributeError: 'int' object has no attribute 'split'

Debugging information follows

   1. A problem occurred in your template "issue.item.html".

Full traceback:

Traceback (most recent call last):
  File
"/home/roundup/roundup-production//lib/python2.4/site-packages/roundup/cgi/client.py",
line 770, in renderContext
    result = pt.render(self, None, None, **args)
  File
"/home/roundup/roundup-production//lib/python2.4/site-packages/roundup/cgi/templating.py",
line 323, in render
    getEngine().getContext(c), output, tal=1, strictinsert=0)()
  File
"/home/roundup/roundup-production//lib/python2.4/site-packages/roundup/cgi/TAL/TALInterpreter.py",
line 192, in __call__
    self.interpret(self.program)
  File
"/home/roundup/roundup-production//lib/python2.4/site-packages/roundup/cgi/TAL/TALInterpreter.py",
line 236, in interpret
    handlers[opcode](self, args)
  File
"/home/roundup/roundup-production//lib/python2.4/site-packages/roundup/cgi/TAL/TALInterpreter.py",
line 666, in do_useMacro
    self.interpret(macro)
  File
"/home/roundup/roundup-production//lib/python2.4/site-packages/roundup/cgi/TAL/TALInterpreter.py",
line 236, in interpret
    handlers[opcode](self, args)
  File
"/home/roundup/roundup-production//lib/python2.4/site-packages/roundup/cgi/TAL/TALInterpreter.py",
line 411, in
do_optTag_tal
    self.do_optTag(stuff)
  File
"/home/roundup/roundup-production//lib/python2.4/site-packages/roundup/cgi/TAL/TALInterpreter.py",
line 396, in do_optTag
    return self.no_tag(start, program)
  File
"/home/roundup/roundup-production//lib/python2.4/site-packages/roundup/cgi/TAL/TALInterpreter.py",
line 391, in no_tag
    self.interpret(program)
  File
"/home/roundup/roundup-production//lib/python2.4/site-packages/roundup/cgi/TAL/TALInterpreter.py",
line 236, in interpret
    handlers[opcode](self, args)
  File
"/home/roundup/roundup-production//lib/python2.4/site-packages/roundup/cgi/TAL/TALInterpreter.py",
line 689, in
do_defineSlot
    self.interpret(slot)
  File
"/home/roundup/roundup-production//lib/python2.4/site-packages/roundup/cgi/TAL/TALInterpreter.py",
line 236, in interpret
    handlers[opcode](self, args)
  File
"/home/roundup/roundup-production//lib/python2.4/site-packages/roundup/cgi/TAL/TALInterpreter.py",
line 632, in do_condition
    self.interpret(block)
  File
"/home/roundup/roundup-production//lib/python2.4/site-packages/roundup/cgi/TAL/TALInterpreter.py",
line 236, in interpret
    handlers[opcode](self, args)
  File
"/home/roundup/roundup-production//lib/python2.4/site-packages/roundup/cgi/TAL/TALInterpreter.py",
line 632, in do_condition
    self.interpret(block)
  File
"/home/roundup/roundup-production//lib/python2.4/site-packages/roundup/cgi/TAL/TALInterpreter.py",
line 236, in interpret
    handlers[opcode](self, args)
  File
"/home/roundup/roundup-production//lib/python2.4/site-packages/roundup/cgi/TAL/TALInterpreter.py",
line 632, in do_condition
    self.interpret(block)
  File
"/home/roundup/roundup-production//lib/python2.4/site-packages/roundup/cgi/TAL/TALInterpreter.py",
line 236, in interpret
    handlers[opcode](self, args)
  File
"/home/roundup/roundup-production//lib/python2.4/site-packages/roundup/cgi/TAL/TALInterpreter.py",
line 607, in do_loop_tal
    while iterator.next():
  File
"/home/roundup/roundup-production//lib/python2.4/site-packages/roundup/cgi/PageTemplates/TALES.py",
line 77, in next
    if ZTUtils.Iterator.next(self):
  File
"/home/roundup/roundup-production//lib/python2.4/site-packages/roundup/cgi/ZTUtils/Iterator.py",
line 46, in next
    if not (hasattr(self, '_next') or self._prep_next(self)):
  File
"/home/roundup/roundup-production//lib/python2.4/site-packages/roundup/cgi/ZTUtils/Iterator.py",
line 173, in prep_next
    it._next = it.seq.next()
  File
"/home/roundup/roundup-production//lib/python2.4/site-packages/roundup/cgi/templating.py",
line 797, in __getitem__
    items = item.split('.', 1)
AttributeError: 'int' object has no attribute 'split'
History
Date User Action Args
2007-08-23 18:31:57gbrandlsetmessages: + msg701
title: Exception viewing issue with superseder - should superseder be Link or Multilink? -> Exception viewing issue with superseder - should superseder be Link or Multilink
2007-08-23 18:28:53forsbergsettitle: Exception viewing issue with superseder - should superseder be Link or Multilink -> Exception viewing issue with superseder - should superseder be Link or Multilink?
2007-08-23 18:25:27forsbergsetstatus: unread -> chatting
messages: + msg700
title: Exception viewing closed issue -> Exception viewing issue with superseder - should superseder be Link or Multilink
2007-08-23 18:16:40ehusscreate