[Bugs] #516 UNSP: Inequality yields traceback
SugarLabs Bugs
bugtracker-noreply at sugarlabs.org
Tue Mar 10 09:14:42 EDT 2009
#516: Inequality yields traceback
------------------------------------------+---------------------------------
Reporter: sascha_silbe | Owner: wadeb
Type: defect | Status: new
Priority: Unspecified by Maintainer | Milestone: Unspecified by Release Team
Component: Calculate | Version: Git as of bugdate
Severity: Unspecified | Keywords:
Distribution: Unspecified | Status_field: Unconfimed
------------------------------------------+---------------------------------
Using inequality (!=, Boolean) will yield the following traceback:
1236690580.130710 DEBUG Calculate: process(): parsing u'1!=0', label: u''
1236690580.138846 DEBUG root: Parsing preprocessed equation: u'1!=0'
Traceback (most recent call last):
File "/home/sugar/sugar-
jhbuild/install/share/sugar/activities/Calculate.activity/layout.py", line
70, in <lambda>
[3, 3, 3, _('Enter'), self.col_gray1, lambda w:
self._parent.process()],
File "/home/sugar/sugar-
jhbuild/install/share/sugar/activities/Calculate.activity/calculate.py",
line 437, in process
res = self.parser.evaluate(tree)
File "/home/sugar/sugar-
jhbuild/install/share/sugar/activities/Calculate.activity/astparser.py",
line 586, in evaluate
ret = self._process_node(eqn.body, state)
File "/home/sugar/sugar-
jhbuild/install/share/sugar/activities/Calculate.activity/astparser.py",
line 401, in _process_node
func = self.CMPOP_MAP[type(node.ops[0])]
KeyError: <class '_ast.NotEq'>
When using Return (keyboard), there's no visual indication at all (i.e.
it's as if Return had not been pressed). When using the Enter button, it's
similar, though focus will change normally.
--
Ticket URL: <http://dev.sugarlabs.org/ticket/516>
Sugar Labs <http://sugarlabs.org/>
Sugar Labs bug tracking system
More information about the Bugs
mailing list