~ubuntu-branches/ubuntu/utopic/gramps/utopic

« back to all changes in this revision

Viewing changes to src/plugins/quickview/References.py

  • Committer: Package Import Robot
  • Author(s): James A. Treacy
  • Date: 2012-05-22 17:18:36 UTC
  • mfrom: (39.1.4 sid)
  • Revision ID: package-import@ubuntu.com-20120522171836-35fi62lp4w7jnrd7
Tags: 3.4.0-1
* New upstream version
* Updated desktop file. Closes: #667472

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
#
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
6
7
#
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
20
21
#
21
22
#
22
 
# $Id: References.py 17127 2011-04-15 16:18:58Z dsblank $
 
23
# $Id: References.py 18548 2011-12-04 17:09:17Z kulath $
23
24
#
24
25
 
25
26
"""
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"))