|
From: Ralf M. <Ra...@t-...> - 2016-02-16 21:59:52
|
Am 27.01.2016 um 15:27 schrieb Nick Hall:
> On 26/01/16 22:55, Ralf M. wrote:
>> I can change the individuals
>> referenced by a form. However when I tried that it did funny things to
>> the eventrefs of the individuals involved, so it may not be a good idea.)
>
> It is quite possible that you later decide that you have selected the
> wrong person as a participant in an event. In this case, using the Form
> editor to change the person is correct. It should move the event
> reference attributes for you. Let me know if you have any problems.
Yesterday I managed to reproduce the "funny" behavior I noticed first
some weeks ago.
In short: When A is a person in a form, and I replace him with B, then B
correctly gets the event ref attributes (i.e. the form data), but A
loses event refs that don't have anything to do with the form.
Further down I describe the steps necessary to reproduce the effect. As
the steps are numerous, I made a backup just before the critical step.
The effect can be reproduced by importing the backup into a new database
and then doing the critical step. I attach the backup file, hoping that
the list allows attachments. If not, let me know if anyone is interested
in the file.
Info about my Gramps:
GRAMPS: GrampsAIO64-4.2.1-2
Python: 3.5.0 (default, Oct 8 2015, 12:30:29) [...
BSDDB: 6.1.0 (6, 0, 30)
LANG: de_DE.UTF-8
OS: win32
Form Gramplet version 2.0.2
Some other addons installed, but not loaded in bottom- or sidebar.
Here are the steps:
New database "Formtest3"
Sources View, + (new source), title "TestB",
Attribute tab, + (new attribute) "Form", value "UKBirth", OK,
OK
Person View, Forms tab in bottombar, New
Select Form Birth - TestB, OK
Reference "Form1", Date "1811-01-01"
Details tab
Child + (new person) name "C, F1" sex "male" OK
Father + (new person) name "F, F1" sex "male" OK
Mother + (new person) name "M, F1" sex "female" OK
Informant + (new person) name "I, F1" sex "female" OK
Child Sex "F"
Father Occupation "Focc1"
Mother Occupation "Mocc1"
Informant Description "What1", Residence "Where1"
OK
Person View, toolbar at top
+ (new person), name "Person, Other" sex "female"
Events tab
+ (new event) Type Occupation
Date "1811-01-01" Description "Other Occ"
OK
+ (new event) Type Religion
Date "1811-01-01" Description "ev"
OK
OK
Person View, Forms tab in bottombar, New
Select Form Birth - TestB, OK
Reference "Form2", Date "1822-02-02"
Details tab
Child + (new person) name "C, F2" sex "male" OK
Father + (new person) name "F, F2" sex "male" OK
Mother + (new person) name "M, F2" sex "female" OK
Informant select "Person, Other" OK
Child Sex "F"
Father Occupation "Focc2"
Mother Occupation "Mocc2"
Informant Description "What2", Residence "Where2"
OK
# Looking around:
# There are 8 persons, each with one form.
# There are 4 events,
# 2 births created by the form gramplet with C, F1 and
# C, F2 respectively as primary participants,
# occupation and religion with Person, Other as the main participant.
# Now proceed ...
Menu, Family Trees, Make Backup..., without media, OK
Person View, select "Person, Other"
Forms tab in bottombar, select form (there is only the 1822 one), edit
Details tab
Informant select other person "I, F1" OK
(only the name of the informant changed in the form)
OK
==> Forms tab in bottombar is not empty, but shows form dated *1811*!!!
Person View, select "I, F1"
==> Forms tab in bottombar shows both forms as expected.
Person View, select "Person, Other"
Forms tab in bottombar, select form (there is only one,
dated 1811, role Informant), edit
==> Informant in form is "I, F1" and all fields contain info of form 1
Cancel
Double click on "Person, Other" such that Person Editor opens
==> Events tab shows *only* the birth event of Form1 (and Person, Other
has role Informant)
==> I.e. the Occupation and Religion events are *gone*!!!
Cancel
Event View
==> Occupation and Religion Event are still there, main
participant Person, Other (??? update problem, see below)
Double click an Occupation event, References tab:
==> Is *empty*!
Cancel
Double click on Birth event of 1811, References tab:
==> 5 Persons listed, the four expected "X, F1" plus Person, Other
Cancel
Menu, Family Trees, Manage Family Trees, open other database
Menu, Family Trees, Manage Family Trees, open Formtest3 again
Event View
==> Occupation and Religion Event are still there, but have no main
participant any more (thus participants shown before may have
been update problem)
# Conclusion:
# *Replacing person A by person B in a form wreaks havoc on the
event refs of person A.*
Retry:
New database "Formtest3_from_Backup"
Import backup created previously
Replace Informant in Form2 as described above
==> Same result
Regards
Ralf M.
|