PRs #599 / #605 Clone Event

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

PRs #599 / #605 Clone Event

"Alois Pöttker"
Pull request #599 and #605 describe the feature enhancement to double an event in different ways. Use case are eg. marriage banns in ancient parish books, which reference with the same event typically two places. In general this functionality is used to derive instances from blueprints of events.
 
#599 clones an event out of the event list. Its doubles an event with all the related tags, citations, media, attributes and notes, but without the references. The functionality works like an event addition, but with default values.
 
Workflow: The user press the new Clone button (one arrow splits into two branches). A copy of the actual event is inside the known uppoping event dialog, but w/o references and Gramps Id. If OK button is pressed, a new Id will be given and the event stored w/o referenced persons / families.
 
Implementation: This PR have a small code footprint, mainly the integration of the new Clone symbol, connection to the GUI, copy of an existing event w/o handle & Id, and save it afterwards like an event created with the 'Add' function. A third party addon is overkill and makes this small functionality far to complex to implement.
 
#605 clones an event inside the person / family embedded event reference editor. Its doubles an event with all related tags, citations, media, attributes, notes and with the references. Again it works like an event addition, but with default values.
 
Workflow: After pressing the Clone button, next the known event reference dialogue with a copy of actual selected event pops up. Gramps Id is blank, but reference to the person / family is still there in background. If accepted, event will be stored in DB and embedded event list refreshed.
 
Implementation: This PR needs some (minor) adjustments in several files to achieve a seamless integration. Again integration of the new Clone symbol, connection the GUI, copy of an existing event w/o Id - but with handle!, and save it afterwards like an event created with the 'Add' function.
 
Reg. our new pull request policy therefore a request for approval.
 
KR
Alois
 
 

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Gramps-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gramps-devel