CSS parsing errors with cssutils ≥ 0.9.6
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Elisa Media Center |
Invalid
|
High
|
Olivier Tilloy | ||
Moovida |
Invalid
|
High
|
Unassigned |
Bug Description
When running the latest moovida with cssutils version: cssutils-
<type 'exceptions.
Python 2.5.2: /opt/fluoh/
Fri May 22 14:28:20 2009
A problem occurred in a Python script. Here is the sequence of
function calls leading up to the error, in the order they occurred.
/opt/fluoh/
73
74 def do_mapped(self):
75 self._update_size()
76 self._layout()
77
self = <BackButtonPanel object at 0xa5ac694 (elisa+
self._update_size = <bound method BackButtonPanel
/opt/fluoh/
147 if not self.is_mapped:
148 return
149 self._compute_
150 self.top_
151 self.top_
self = <BackButtonPanel object at 0xa5ac694 (elisa+
self._compute_
/opt/fluoh/
138 self._right_width = fx*self.
139
140 fx, fy = self.get_
141 self._top_height = fy*self.
142
fx = 0.3125
fy = 0.31927710771560669
self = <BackButtonPanel object at 0xa5ac694 (elisa+
self.get_
self.top_height = 0
self.top_
<type 'exceptions.
__class__ = <type 'exceptions.
__delattr__ = <method-wrapper '__delattr__' of exceptions.
__dict__ = {}
__doc__ = 'Attribute not found.'
__getattrib
__getitem__ = <method-wrapper '__getitem__' of exceptions.
__getslice__ = <method-wrapper '__getslice__' of exceptions.
__hash__ = <method-wrapper '__hash__' of exceptions.
__init__ = <method-wrapper '__init__' of exceptions.
__new__ = <built-in method __new__ of type object at 0xb7fe05e0>
__reduce__ = <built-in method __reduce__ of exceptions.
__reduce_ex__ = <built-in method __reduce_ex__ of exceptions.
__repr__ = <method-wrapper '__repr__' of exceptions.
__setattr__ = <method-wrapper '__setattr__' of exceptions.
__setstate__ = <built-in method __setstate__ of exceptions.
__str__ = <method-wrapper '__str__' of exceptions.
args = ("'int' object has no attribute 'unit'",)
message = "'int' object has no attribute 'unit'"
The above is a description of an error in a Python program. Here is
the original traceback:
Traceback (most recent call last):
File "/opt/fluoh/
self.
File "/opt/fluoh/
self.
File "/opt/fluoh/
fx, fy = self.get_
AttributeError: 'int' object has no attribute 'unit'
Related branches
- Florian Boucault: Approve
- Jonathan Rauprich: Approve
-
Diff: 26 lines (+14/-2)1 file modifiedelisa-plugins/elisa/plugins/pigment/widgets/panel.py (+14/-2)
Changed in elisa: | |
importance: | Undecided → High |
status: | New → Confirmed |
summary: |
- wrong parsing of styles for BackButtonPanel + CSS parsing errors with cssutils ≥ 0.9.6 |
tags: | added: developers |
Changed in elisa: | |
status: | Confirmed → In Progress |
Changed in elisa: | |
status: | In Progress → Fix Committed |
The version of cssutils used seems to be an important factor: the bug is observed with 0.9.6 but not with 0.9.5.