From: Michiel N. <m.d...@he...> - 2010-07-30 20:18:01
|
Hi Jerome, Well Doug answered most of it. You do need handles to tie the data together. It is not the Gramps Exhibit that adds handles, it is the user-scripts that generate them. At present Gramps Exhibits just display the GrampsXML you feed them. Since the situation with duplicate handles is unclear, the user-scripts will generate different handles every time you search for the same data. Perhaps in the future when Gramps has decided how to handle duplicate handles and archives give certificates some kind of global ID, the handles may be unique per certificate. But that is still far in the future. Michiel Doug Blank wrote: > On Fri, Jul 30, 2010 at 2:18 AM, jerome <rom...@ya...> wrote: >>> What about duplicated handles [1][2], which should not be merged ? >> Oh, stupid Jérôme ! >> We do not need to set handles for import, right ? > > No, not stupid :) > > There are two uses for handles on XML import: > > 1) to link items in the XML file together > 2) to provide a UID (global unique identifier) > > Looks like Michiel is creating UID's in the process, and thus they > shouldn't collide with items in your Gramps database. So, every > imported object from Gramps Exhibit will be unique. > > In the future we need to better handle the case where imported XML > handles are imported. For example, currently if you import the same > XML twice (or any XML that has overlapping handles with your db), > you'll end up corrupting your data... but Michiel's code is immune > from this. > > -Doug > >> --- En date de : Ven 30.7.10, jerome <rom...@ya...> a écrit : >> >>> De: jerome <rom...@ya...> >>> Objet: [Gramps-devel] Re : Easy access to test-data >>> À: gra...@li..., "Michiel Nauta" <m.d...@he...> >>> Date: Vendredi 30 juillet 2010, 8h15 >>> Hi, >>> >>> >>> Very interesting. :) >>> What about duplicated handles [1][2], which should not be >>> merged ? >>> >>> [1] http://www.gramps-project.org/bugs/view.php?id=3002 >>> [2] http://gramps-project.org/wiki/index.php?title=Handle.bash >>> >>> >>> Regards, >>> Jérôme >>> |