From: Jérôme <rom...@ya...> - 2011-08-31 07:51:30
|
Tim, I just see that there is an "SourceTemplates" project: http://sourcetemplates.org/details.php I did not test GEPS 023 yet, but I guess current citation model could be compliant with this project or their work could be improved by your investigations, isn' it ? Regards, Jérôme Tim Lyons a écrit : > I have made a start on implementing GEPS 023 under: > https://gramps.svn.sourceforge.net/svnroot/gramps/branches/geps/gep-023-large-sources > > But I have some problems with implementing the database upgrade. In > particular, I would appreciate some help in adding and removing the > backlinks in the reference map. I have looked at update_reference_map > in write.py, but this has not helped me enough in implementing the > upgrade when the database is not yet fully connected. > > As a temporary measure, I have modified write.py to connect the > secondary tables, and have used update-reference_map in upgrade.py, > but this is clearly too inefficient. (I guess I also need to do all > the backlink upgrades where the new object is created). > > I also have a number of questions which are interspersed in the draft > code in upgrade.py. > > (1) Does nesting BSDDBTxn inside DbTxn as I have done mean that the > whole of the upgrade of each object instance is done as one > transaction (and have I passed the correct transaction parameters?) > (2) Do I need to upgrade any other secondary tables (specifically the > reference_map_primary_map) > (3) Have I implemented the creation of the new citation object in > upgrade.py in the appropriate way? > (4) The way I find the next gramps id for the new citation is almost > certainly not the most efficient approach, and I also don't understand > how cmap_index should be used and maintained (it doesn't seem to be > initialised or updated). > > I am sorry that my code in upgrade.py is so untidy at present, but I > am trying to work through how it should be implemented. > > Many thanks if you are able to help. > > ------------------------------------------------------------------------------ > Get a FREE DOWNLOAD! and learn more about uberSVN rich system, > user administration capabilities and model configuration. Take > the hassle out of deploying and managing Subversion and the > tools developers use with it. http://p.sf.net/sfu/wandisco-d2d-2 > _______________________________________________ > Gramps-devel mailing list > Gra...@li... > https://lists.sourceforge.net/lists/listinfo/gramps-devel > |