4
4
# Copyright (C) 2000-2007 Donald N. Allingham
5
5
# Copyright (C) 2007-2008 Brian G. Matherly
6
# Copyright (C) 2011 Tim G L Lyons
7
8
# This program is free software; you can redistribute it and/or modify
8
9
# it under the terms of the GNU General Public License as published by
19
20
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
22
# $Id: References.py 17127 2011-04-15 16:18:58Z dsblank $
23
# $Id: References.py 18548 2011-12-04 17:09:17Z kulath $
41
42
ref = db.get_event_from_handle(handle)
42
43
elif objclass == 'Source':
43
44
ref = db.get_source_from_handle(handle)
45
elif objclass == 'Citation':
46
ref = db.get_citation_from_handle(handle)
44
47
elif objclass == 'Place':
45
48
ref = db.get_place_from_handle(handle)
46
49
elif objclass == 'Note':
83
86
run_family = lambda db, doc, obj: run(db, doc, obj, 'family', _("Family"))
84
87
run_event = lambda db, doc, obj: run(db, doc, obj, 'event', _("Event"))
85
88
run_source = lambda db, doc, obj: run(db, doc, obj, 'source', _("Source"))
89
run_citation = lambda db, doc, obj: run(db, doc, obj, 'citation', _("Citation"))
90
run_source_or_citation = lambda db, doc, obj: run(db, doc, obj,
91
'source or citation', _("Source or Citation"))
86
92
run_place = lambda db, doc, obj: run(db, doc, obj, 'place', _("Place"))
87
93
run_media = lambda db, doc, obj: run(db, doc, obj, 'media', _("Media"))
88
94
run_note = lambda db, doc, obj: run(db, doc, obj, 'note', _("Note"))