2,186
edits
Changes
→Analysis: the run function
Now lets analyse the [[Quick_Views#siblings.py|siblings.py]] file.
If the user clicks in the quick view report menu on your report, the run function is executed with the following three parameters:
<code>run(database, document, person)</code>
So, your report received receives from gramps Gramps the currently opened database name on which to work, the document on which to write, and the person of the object the user is on. For a person quick view report, this is a person, for family, a family.
In this example, the function called is