Closed quozl closed 5 years ago
I am sorry I am not able to understand what exactly do you mean by journal entry and journal object? Thanks!
https://help.sugarlabs.org/en/journal.html should help to explain. Every Sugar activity creates a Journal Entry. Internally, a Journal Entry is implemented as a Journal Object in Python. Look at the activity API sources in the toolkit.
@quozl I am sorry but still I am not able to understand what's the difference between Journal entry and user's activity instance data directory.I don't know much about journal entry but as per my knowledge of user's activity instance data directory won't it be better to save this dimensions and units at user's activity instance data directory.I worked on it and made a pull request I request you to once review it and decide :smile: .Thanks!
@Aniket21mathur, the difference is profound and yet subtle.
I suggest you read one of the guides to writing Sugar activities.
Is this issue still open?
Reproducer: start, change dimension and units, stop, restart from journal entry.
Expected: dimension and units preserved.
Observed: dimension and units are reset to Length - Cables.
At the same time, add a reset button to restore dimension and units to defaults.