Opened 10 years ago
Last modified 10 years ago
#4345 new defect
Activity doesn't stop
Reported by: | fdanesse | Owned by: | dsd |
---|---|---|---|
Priority: | Unspecified by Maintainer | Milestone: | Unspecified |
Component: | Record | Version: | 0.98.x |
Severity: | Unspecified | Keywords: | |
Cc: | Distribution/OS: | Unspecified | |
Bug Status: | Unconfirmed |
Description
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.
Change History (2)
comment:1 in reply to: ↑ description Changed 10 years ago by fdanesse
comment:2 Changed 10 years ago by godiard
- Component changed from sugar-toolkit-gtk3 to Record
- Owner changed from erikos to dsd
Record should not re implement close() Look at activity.py docs
Note: See
TracTickets for help on using
tickets.
Replying to fdanesse:
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.