[Bugs] #4345 sugar-toolkit-gtk3 UNSP: Activity doesn't stop
Sugar Labs Bugs
bugtracker-noreply at sugarlabs.org
Mon Dec 17 15:37:24 EST 2012
#4345: Activity doesn't stop
------------------------------------------+---------------------------------
Reporter: fdanesse | Owner: erikos
Type: defect | Status: new
Priority: Unspecified by Maintainer | Milestone: Unspecified by Release Team
Component: sugar-toolkit-gtk3 | Version: 0.98.x
Severity: Unspecified | Keywords:
Distribution: Unspecified | Status_field: Unconfirmed
------------------------------------------+---------------------------------
Comment(by fdanesse):
Replying to [ticket:4345 fdanesse]:
> When an application fails and you want to close from the corresponding
button occurs:
>
> Traceback (most recent call last):
> File "/usr/lib/python2.7/site-packages/sugar3/activity/activity.py",
line 890, in _keep_failed_dialog_response_cb
> self.close(skip_save=True)
> TypeError: close() got an unexpected keyword argument 'skip_save'
>
> And the activity is not closed, nor can restart sugar as alert reappears
again and again, you need to stop.
'''Este error se produce por lo siguiente:'''
Cuando una clase B hereda de una clase A y
en B se sobreescribe una función de A,
La función de A ya no se ejecuta,
sino que en su lugar se ejecuta la funcion de la clase B,
incluso cuando se llama explicitamente a la función de A desde B.
'''Un ejemplo es:'''
record.py: super(Record, self).close()
Esto provoca un bucle infinito en la función.
'''This error is caused by the following:'''
When a class B inherits from class A, and
in B is overwritten a function of A,
A function is no longer running,
but instead runs the function of the class B,
even when explicitly call function A from B.
'''An example is:'''
record.py: super (Record, self). close ()
This causes an infinite loop in the function.
--
Ticket URL: <http://bugs.sugarlabs.org/ticket/4345#comment:1>
Sugar Labs <http://sugarlabs.org/>
Sugar Labs bug tracking system
More information about the Bugs
mailing list