Changes

From Gramps

Simple Access API/he

152 bytes added, 14:28, 8 October 2024
m
מה זמין?: translation
==מה זמין?==
ניתן להציג את ה־API ב־בעמוד [https://github.com/gramps-project/gramps/blob/master/gramps/gen/simple/_simpleaccess.py _simpleaccess.pyגישה פשוטה].
{{stub/he}}<!-- הרחב כדי לדבר על קוד ה-API הפשוט ודוגמה לעדכון עבור gramps 5.1.x -->
Example useשימוש לדוגמה:<div dir="ltr">
<pre>
from __future__ מ־__future__ import print_function
from simple import simpleaccessמגישה פשוטה לייבא
sdb = simpleaccess(databaseמסד נתונים)
# grab our current id, so we can filter the active person outלכידת המזהה הנוכחי כדי שניתן יהיה לסנן את האדם הפעיל מתוך# of the dataמהנתונים
person = database.active_person()
gid = sdb.gid(database.active_person())
# loop through each family in which the person is a childביצוע לולאה דרך כל משפחה שבה האדם הוא צאצאfor family in sdbלמשפחה ב־sdb.child_in(person):
# loop through each child in the familyביצוע לולאה דרך כל צאצא במשפחה for child in sdb לצאצא ב־sdb.children(familyמשפחה):
#print something to terminalהדפסת כל דבר שהוא למסוף print(sdb.name(child),sdb.gender(child), sdb.birth_date(child)))
</pre>
</div>
==See also==
6,817
edits

Navigation menu