From: Benny M. <ben...@gm...> - 2012-09-17 07:32:04
|
2012/9/17 Ron Johnson <ron...@co...> > On 09/16/2012 06:09 AM, Doug Blank wrote: > > On Sun, Sep 16, 2012 at 4:45 AM, Benny Malengier > [snip] > >> Doug added family tree to the clipboard, but I don't know if that can > >> actually be used already. > > > > No, the clipboard can't be used for that. But it is an idea worth > considering. > > > [snip] > > > > To allow a paste into another tree, we just need an XML representation > > of the objects in the clipboard. > > > > What about a Pickle? Clump all relevant data into a single complex Python > dictionary, pickle it up and RPC it to the other instance. The other > instance would have to know to listen for incoming method calls. It > wouldn't scale well, so you'd have to limit it to a single person and all > their attendant objects. > This is not needed. The drag and drop protocol already has everything to obtain the data that is dropped. We actually use a pickle, but not of the entire object, just the pieces needed to retrieve it from the database. We would need to recognize it is from another running gramps instance, and pickle the entire object in the drag object, so that dropping it on a listview adds the item. Quite some work involved, but everything is available to do it. Benny > Or is XML preferred so that you can reuse XML Family Tree import routines? > > -- > If adults of legally sound mind must be told what foods they > are not allowed to buy, then those people are not competent > to choose (i.e. vote for) their own leaders. > > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Gramps-users mailing list > Gra...@li... > https://lists.sourceforge.net/lists/listinfo/gramps-users > |