incubator-bloodhound-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Apache Bloodhound" <bloodhound-...@incubator.apache.org>
Subject Re: [Apache Bloodhound] #366: TypeError: unsupported operand type(s) for -: 'str' and 'int'
Date Thu, 07 Feb 2013 05:27:40 GMT
#366: TypeError: unsupported operand type(s) for -: 'str' and 'int'
------------------------+-------------------------------
  Reporter:  olemis     |      Owner:  nobody
      Type:  defect     |     Status:  new
  Priority:  blocker    |  Milestone:  Release 5
 Component:  ui design  |    Version:  0.4.0
Resolution:             |   Keywords:  ticket responsive
------------------------+-------------------------------

Comment (by olemis):

 Hint

 {{{

     File "/path/to/bloodhound/trac/trac/util/presentation.py", line 110,
 in group

     Code fragment:
     Line
     105 buf.append(item)
     106 if flush or len(buf) == num:
     107 yield tuple(buf)
     108 del buf[:]
     109 if buf:
     110 buf += [None] * (num - len(buf))
     111 yield tuple(buf)
     112
     113
     114 def istext(text):
     115 """`True` for text (`unicode` and `str`), but `False` for
 `Markup`."""

     Local variables:
     Name        Value
     buf         [{'rendered': <Markup u'<p>\n<a class="wiki" ...
     flush       None
     item        {'name': u'test_six', 'format': 'plain', 'optional':
 False, 'label': ...
     iterable    [{'rendered': <Markup u'<p>\n<a class="wiki" ...
     num         'span8'
     predicate   None

 }}}

 ... so it seems `num = 'span8' ` is the root cause of the problem

 PS: I confirm I could not reproduce this issue on a fresh installation

-- 
Ticket URL: <https://issues.apache.org/bloodhound/ticket/366#comment:9>
Apache Bloodhound <https://issues.apache.org/bloodhound/>
The Apache Bloodhound (incubating) issue tracker

Mime
View raw message