[sugar] Trial-3 journal problem
Bert Freudenberg
bert
Wed Sep 19 13:12:38 EDT 2007
Not quite ... what happens now is this:
- Open activity instance A1
- Get implicit journal entry a1
- Press keep in A1, saved as journal entry a2
- Close A1, implicitly saved as a1'
Neither A1 or A2 are open, a1' and a2 are in Journal.
- Open journal entry a2 as activity A2
- Close A2
- Get implicit journal entry a2'
We SHOULD have a1' and a2 in Journal, neither open. But actually our
"good save" a2 is gone and replaced by a2'. We end up with a1' and a2'.
- Bert -
On Sep 19, 2007, at 18:14 , Eben Eliason wrote:
> Hi Bert -
>
> I want to clarify this a bit to be sure I understand what's going on:
>
> - Open activity instance A1
> - Get implicit journal entry a1
> - Press keep in A1, creating A2 and journal entry a2
> - Close A2
>
> (neither A1 or A2 are open, a1 and a2 are in Journal)
>
> - Open journal entry a2 as activity A2
> - Close A2
> - Get implicit journal entry a2'
>
> (We SHOULD have a1 and a2' in Journal, neither open)
>
> Now, the problem as I read it is that the remaining Journal entries
> are a2 and a2' instead of a1 and a2' as it should be. Am I
> understanding you correctly?
>
> - Eben
>
> On 9/19/07, Bert Freudenberg <bert at freudenbergs.de> wrote:
>> Hi,
>>
>> for etoys we implemented the storing to the Journal as suggested,
>> namely, on an explicit save (pressing keep button) we create a copy
>> in the datastore, whereas when exiting, we update the existing entry.
>> This is to workaround the missing versioning support.
>>
>> However, in testing we found a flaw in that scheme: When you resume
>> an explicitly saved entry and then just exit the activity, it will do
>> an implicit save and overwrite the saved one, resulting in losing the
>> "good" copy.
>>
>> Is there any idea about how to work around this problem?
>>
>> - Bert -
>>
>>
>> _______________________________________________
>> Sugar mailing list
>> Sugar at lists.laptop.org
>> http://lists.laptop.org/listinfo/sugar
>>
More information about the Sugar-devel
mailing list