[Sugar-devel] Datastore

Tony Anderson tony_anderson at usa.net
Wed Jun 29 09:50:54 EDT 2016


HI, Utkarsh

I am happy to report that I've given up on the 'toggle'. We'll go with 
your solution. I've spent a lot of time (as you have) with nothing to 
show for it.
Tomorrow I'll send an updated webconsole.py that solves the title and 
BeautifulSoup issues. I'll also look for the 'open' problem in version 16.

On datastore, the metadata is a python dictionary. For example, you can 
print the keys to see what is there. So a clone is just to set the new 
metadata to
match the original. Currently, an effort is to keep track of activity 
launches as a list. You will need to update the list (in activity.py at 
the time of cloning).

Tony

On 06/29/2016 11:56 AM, Ütkarsh Tiwari wrote:
> Hi,
>      How to make the exact clone of a datastore entry into a new
> datastore object?
>   The clone should be exactly same as the parent object ['title',
> 'filepath, 'etc'].
>
>
> On 6/27/16, Tony Anderson <tony_anderson at usa.net> wrote:
>> Hi, Utkarsh
>>
>> See
>> http://wiki.sugarlabs.org/go/Development_Team/Almanac/sugar.datastore.datastore
>>
>> Tony
>>
>> On 06/26/2016 10:18 PM, Ütkarsh Tiwari wrote:
>>> Hi,
>>>       I want to copy the properties[ 'title', 'filepath', etc] of one
>>> jobject to another. How to do that?
>>>
>> _______________________________________________
>> Sugar-devel mailing list
>> Sugar-devel at lists.sugarlabs.org
>> http://lists.sugarlabs.org/listinfo/sugar-devel
>>
>



More information about the Sugar-devel mailing list