* various: pyflakes fixes
svn: r6982
This commit is contained in:
parent
0114cd0bff
commit
e593f5fd33
@ -1,4 +1,5 @@
|
|||||||
2006-07-02 Don Allingham <don@gramps-project.org>
|
2006-07-02 Don Allingham <don@gramps-project.org>
|
||||||
|
* various: pyflakes fixes
|
||||||
* src/DataViews/_PedigreeView.py: add filter editor support
|
* src/DataViews/_PedigreeView.py: add filter editor support
|
||||||
* src/DataViews/_Relationship.py: add filter editor support
|
* src/DataViews/_Relationship.py: add filter editor support
|
||||||
* src/DataViews/_PersonView.py: move filter editor support to PageView
|
* src/DataViews/_PersonView.py: move filter editor support to PageView
|
||||||
|
@ -25,7 +25,6 @@
|
|||||||
#
|
#
|
||||||
#-------------------------------------------------------------------------
|
#-------------------------------------------------------------------------
|
||||||
import gtk
|
import gtk
|
||||||
import gtk.gdk
|
|
||||||
|
|
||||||
#-------------------------------------------------------------------------
|
#-------------------------------------------------------------------------
|
||||||
#
|
#
|
||||||
@ -35,13 +34,12 @@ import gtk.gdk
|
|||||||
import RelLib
|
import RelLib
|
||||||
import PageView
|
import PageView
|
||||||
import DisplayModels
|
import DisplayModels
|
||||||
import const
|
|
||||||
import Utils
|
import Utils
|
||||||
import Errors
|
import Errors
|
||||||
import Bookmarks
|
import Bookmarks
|
||||||
|
|
||||||
from DdTargets import DdTargets
|
from DdTargets import DdTargets
|
||||||
from QuestionDialog import QuestionDialog, ErrorDialog
|
from QuestionDialog import QuestionDialog
|
||||||
from Editors import EditEvent, DelEventQuery
|
from Editors import EditEvent, DelEventQuery
|
||||||
|
|
||||||
#-------------------------------------------------------------------------
|
#-------------------------------------------------------------------------
|
||||||
|
@ -19,14 +19,6 @@
|
|||||||
|
|
||||||
# $Id$
|
# $Id$
|
||||||
|
|
||||||
#-------------------------------------------------------------------------
|
|
||||||
#
|
|
||||||
# GTK/Gnome modules
|
|
||||||
#
|
|
||||||
#-------------------------------------------------------------------------
|
|
||||||
import gtk
|
|
||||||
import gtk.gdk
|
|
||||||
|
|
||||||
#-------------------------------------------------------------------------
|
#-------------------------------------------------------------------------
|
||||||
#
|
#
|
||||||
# gramps modules
|
# gramps modules
|
||||||
@ -36,9 +28,7 @@ import RelLib
|
|||||||
import PageView
|
import PageView
|
||||||
import DisplayModels
|
import DisplayModels
|
||||||
import Bookmarks
|
import Bookmarks
|
||||||
import const
|
|
||||||
import Errors
|
import Errors
|
||||||
from QuestionDialog import QuestionDialog, ErrorDialog
|
|
||||||
|
|
||||||
#-------------------------------------------------------------------------
|
#-------------------------------------------------------------------------
|
||||||
#
|
#
|
||||||
|
@ -32,7 +32,6 @@ from gettext import gettext as _
|
|||||||
#
|
#
|
||||||
#-------------------------------------------------------------------------
|
#-------------------------------------------------------------------------
|
||||||
import gtk
|
import gtk
|
||||||
import gtk.gdk
|
|
||||||
|
|
||||||
#-------------------------------------------------------------------------
|
#-------------------------------------------------------------------------
|
||||||
#
|
#
|
||||||
@ -47,7 +46,7 @@ import Utils
|
|||||||
import Bookmarks
|
import Bookmarks
|
||||||
from Editors import EditMedia
|
from Editors import EditMedia
|
||||||
import Errors
|
import Errors
|
||||||
from QuestionDialog import QuestionDialog, ErrorDialog
|
from QuestionDialog import QuestionDialog
|
||||||
|
|
||||||
column_names = [
|
column_names = [
|
||||||
_('Title'),
|
_('Title'),
|
||||||
|
@ -51,7 +51,6 @@ from gtk.gdk import ACTION_COPY, BUTTON1_MASK
|
|||||||
import RelLib
|
import RelLib
|
||||||
from DisplayModels import PeopleModel
|
from DisplayModels import PeopleModel
|
||||||
import PageView
|
import PageView
|
||||||
import GrampsWidgets
|
|
||||||
import NameDisplay
|
import NameDisplay
|
||||||
import Utils
|
import Utils
|
||||||
import QuestionDialog
|
import QuestionDialog
|
||||||
@ -59,10 +58,9 @@ import TreeTips
|
|||||||
import Errors
|
import Errors
|
||||||
import Config
|
import Config
|
||||||
import const
|
import const
|
||||||
from QuestionDialog import ErrorDialog
|
|
||||||
|
|
||||||
from Editors import EditPerson
|
from Editors import EditPerson
|
||||||
from Filters import SearchBar, GenericFilter, PersonSidebarFilter
|
from Filters import SearchBar, PersonSidebarFilter
|
||||||
from DdTargets import DdTargets
|
from DdTargets import DdTargets
|
||||||
|
|
||||||
column_names = [
|
column_names = [
|
||||||
@ -147,7 +145,7 @@ class PersonView(PageView.PersonNavView):
|
|||||||
mlist = self.get_selected_objects()
|
mlist = self.get_selected_objects()
|
||||||
|
|
||||||
if len(mlist) != 2:
|
if len(mlist) != 2:
|
||||||
ErrorDialog(
|
QuestionDialog.ErrorDialog(
|
||||||
_("Cannot merge people"),
|
_("Cannot merge people"),
|
||||||
_("Exactly two people must be selected to perform a merge. "
|
_("Exactly two people must be selected to perform a merge. "
|
||||||
"A second person can be selected by holding down the "
|
"A second person can be selected by holding down the "
|
||||||
@ -159,7 +157,7 @@ class PersonView(PageView.PersonNavView):
|
|||||||
if p1 and p2:
|
if p1 and p2:
|
||||||
Merge.PersonCompare(self.dbstate, self.uistate, p1, p2)
|
Merge.PersonCompare(self.dbstate, self.uistate, p1, p2)
|
||||||
else:
|
else:
|
||||||
ErrorDialog(
|
QuestionDialog.ErrorDialog(
|
||||||
_("Cannot merge people"),
|
_("Cannot merge people"),
|
||||||
_("Exactly two people must be selected to perform a "
|
_("Exactly two people must be selected to perform a "
|
||||||
"merge. A second person can be selected by holding "
|
"merge. A second person can be selected by holding "
|
||||||
@ -170,7 +168,7 @@ class PersonView(PageView.PersonNavView):
|
|||||||
mlist = self.get_selected_objects()
|
mlist = self.get_selected_objects()
|
||||||
|
|
||||||
if len(mlist) != 2:
|
if len(mlist) != 2:
|
||||||
ErrorDialog(
|
QuestionDialog.ErrorDialog(
|
||||||
_("Cannot merge people"),
|
_("Cannot merge people"),
|
||||||
_("Exactly two people must be selected to perform a merge. "
|
_("Exactly two people must be selected to perform a merge. "
|
||||||
"A second person can be selected by holding down the "
|
"A second person can be selected by holding down the "
|
||||||
@ -183,7 +181,7 @@ class PersonView(PageView.PersonNavView):
|
|||||||
if p1 and p2:
|
if p1 and p2:
|
||||||
Merge.MergePeopleUI(self.dbstate, self.uistate, p1, p2)
|
Merge.MergePeopleUI(self.dbstate, self.uistate, p1, p2)
|
||||||
else:
|
else:
|
||||||
ErrorDialog(
|
QuestionDialog.ErrorDialog(
|
||||||
_("Cannot merge people"),
|
_("Cannot merge people"),
|
||||||
_("Exactly two people must be selected to perform a merge. "
|
_("Exactly two people must be selected to perform a merge. "
|
||||||
"A second person can be selected by holding down the "
|
"A second person can be selected by holding down the "
|
||||||
|
@ -25,7 +25,6 @@
|
|||||||
#
|
#
|
||||||
#-------------------------------------------------------------------------
|
#-------------------------------------------------------------------------
|
||||||
import gtk
|
import gtk
|
||||||
import gtk.gdk
|
|
||||||
|
|
||||||
#-------------------------------------------------------------------------
|
#-------------------------------------------------------------------------
|
||||||
#
|
#
|
||||||
@ -35,7 +34,6 @@ import gtk.gdk
|
|||||||
import RelLib
|
import RelLib
|
||||||
import PageView
|
import PageView
|
||||||
import DisplayModels
|
import DisplayModels
|
||||||
import const
|
|
||||||
import Utils
|
import Utils
|
||||||
import Errors
|
import Errors
|
||||||
import Bookmarks
|
import Bookmarks
|
||||||
|
@ -25,7 +25,6 @@
|
|||||||
#
|
#
|
||||||
#-------------------------------------------------------------------------
|
#-------------------------------------------------------------------------
|
||||||
import gtk
|
import gtk
|
||||||
import gtk.gdk
|
|
||||||
|
|
||||||
#-------------------------------------------------------------------------
|
#-------------------------------------------------------------------------
|
||||||
#
|
#
|
||||||
@ -35,14 +34,13 @@ import gtk.gdk
|
|||||||
import RelLib
|
import RelLib
|
||||||
import PageView
|
import PageView
|
||||||
import DisplayModels
|
import DisplayModels
|
||||||
import const
|
|
||||||
import Utils
|
import Utils
|
||||||
import Bookmarks
|
import Bookmarks
|
||||||
import Errors
|
import Errors
|
||||||
from Editors import EditRepository, DelRepositoryQuery
|
from Editors import EditRepository, DelRepositoryQuery
|
||||||
from DdTargets import DdTargets
|
from DdTargets import DdTargets
|
||||||
|
|
||||||
from QuestionDialog import QuestionDialog, ErrorDialog
|
from QuestionDialog import QuestionDialog
|
||||||
|
|
||||||
#-------------------------------------------------------------------------
|
#-------------------------------------------------------------------------
|
||||||
#
|
#
|
||||||
|
@ -25,7 +25,6 @@
|
|||||||
#
|
#
|
||||||
#-------------------------------------------------------------------------
|
#-------------------------------------------------------------------------
|
||||||
import gtk
|
import gtk
|
||||||
import gtk.gdk
|
|
||||||
|
|
||||||
#-------------------------------------------------------------------------
|
#-------------------------------------------------------------------------
|
||||||
#
|
#
|
||||||
@ -35,7 +34,6 @@ import gtk.gdk
|
|||||||
import RelLib
|
import RelLib
|
||||||
import PageView
|
import PageView
|
||||||
import DisplayModels
|
import DisplayModels
|
||||||
import const
|
|
||||||
import Utils
|
import Utils
|
||||||
import Bookmarks
|
import Bookmarks
|
||||||
import Errors
|
import Errors
|
||||||
|
@ -27,6 +27,7 @@
|
|||||||
import time
|
import time
|
||||||
import logging
|
import logging
|
||||||
log = logging.getLogger(".")
|
log = logging.getLogger(".")
|
||||||
|
|
||||||
try:
|
try:
|
||||||
set()
|
set()
|
||||||
except:
|
except:
|
||||||
@ -44,7 +45,6 @@ import gtk
|
|||||||
# GRAMPS modules
|
# GRAMPS modules
|
||||||
#
|
#
|
||||||
#-------------------------------------------------------------------------
|
#-------------------------------------------------------------------------
|
||||||
import const
|
|
||||||
import ToolTips
|
import ToolTips
|
||||||
import GrampsLocale
|
import GrampsLocale
|
||||||
import DateHandler
|
import DateHandler
|
||||||
|
@ -38,11 +38,6 @@ import cgi
|
|||||||
import sys
|
import sys
|
||||||
import locale
|
import locale
|
||||||
|
|
||||||
try:
|
|
||||||
set()
|
|
||||||
except:
|
|
||||||
from sets import Set as set
|
|
||||||
|
|
||||||
#-------------------------------------------------------------------------
|
#-------------------------------------------------------------------------
|
||||||
#
|
#
|
||||||
# set up logging
|
# set up logging
|
||||||
|
@ -24,7 +24,6 @@
|
|||||||
# python modules
|
# python modules
|
||||||
#
|
#
|
||||||
#-------------------------------------------------------------------------
|
#-------------------------------------------------------------------------
|
||||||
import time
|
|
||||||
import logging
|
import logging
|
||||||
log = logging.getLogger(".")
|
log = logging.getLogger(".")
|
||||||
|
|
||||||
@ -45,9 +44,6 @@ import gtk
|
|||||||
# GRAMPS modules
|
# GRAMPS modules
|
||||||
#
|
#
|
||||||
#-------------------------------------------------------------------------
|
#-------------------------------------------------------------------------
|
||||||
import const
|
|
||||||
import ToolTips
|
|
||||||
import GrampsLocale
|
|
||||||
import RelLib
|
import RelLib
|
||||||
from _BaseModel import BaseModel
|
from _BaseModel import BaseModel
|
||||||
|
|
||||||
@ -220,8 +216,3 @@ class RepositoryModel(BaseModel):
|
|||||||
|
|
||||||
def column_tooltip(self,data):
|
def column_tooltip(self,data):
|
||||||
return ""
|
return ""
|
||||||
# try:
|
|
||||||
# t = ToolTips.TipFromFunction(self.db, lambda: self.db.get_repository_from_handle(data[0]))
|
|
||||||
# except:
|
|
||||||
# log.error("Failed to create tooltip.", exc_info=True)
|
|
||||||
# return t
|
|
||||||
|
@ -32,7 +32,6 @@ from gettext import gettext as _
|
|||||||
# GRAMPS classes
|
# GRAMPS classes
|
||||||
#
|
#
|
||||||
#-------------------------------------------------------------------------
|
#-------------------------------------------------------------------------
|
||||||
from DdTargets import DdTargets
|
|
||||||
from _DataModel import DataModel
|
from _DataModel import DataModel
|
||||||
from _EmbeddedList import EmbeddedList
|
from _EmbeddedList import EmbeddedList
|
||||||
|
|
||||||
|
@ -20,13 +20,6 @@
|
|||||||
|
|
||||||
# $Id$
|
# $Id$
|
||||||
|
|
||||||
#-------------------------------------------------------------------------
|
|
||||||
#
|
|
||||||
# Python classes
|
|
||||||
#
|
|
||||||
#-------------------------------------------------------------------------
|
|
||||||
from gettext import gettext as _
|
|
||||||
|
|
||||||
#-------------------------------------------------------------------------
|
#-------------------------------------------------------------------------
|
||||||
#
|
#
|
||||||
# GRAMPS classes
|
# GRAMPS classes
|
||||||
|
@ -20,13 +20,6 @@
|
|||||||
|
|
||||||
# $Id$
|
# $Id$
|
||||||
|
|
||||||
#-------------------------------------------------------------------------
|
|
||||||
#
|
|
||||||
# Python classes
|
|
||||||
#
|
|
||||||
#-------------------------------------------------------------------------
|
|
||||||
from gettext import gettext as _
|
|
||||||
|
|
||||||
#-------------------------------------------------------------------------
|
#-------------------------------------------------------------------------
|
||||||
#
|
#
|
||||||
# GRAMPS classes
|
# GRAMPS classes
|
||||||
|
@ -20,6 +20,13 @@
|
|||||||
|
|
||||||
# $Id$
|
# $Id$
|
||||||
|
|
||||||
|
#-------------------------------------------------------------------------
|
||||||
|
#
|
||||||
|
# python libraries
|
||||||
|
#
|
||||||
|
#-------------------------------------------------------------------------
|
||||||
|
from gettext import gettext as _
|
||||||
|
|
||||||
#-------------------------------------------------------------------------
|
#-------------------------------------------------------------------------
|
||||||
#
|
#
|
||||||
# GTK libraries
|
# GTK libraries
|
||||||
|
@ -20,13 +20,6 @@
|
|||||||
|
|
||||||
# $Id$
|
# $Id$
|
||||||
|
|
||||||
#-------------------------------------------------------------------------
|
|
||||||
#
|
|
||||||
# Python classes
|
|
||||||
#
|
|
||||||
#-------------------------------------------------------------------------
|
|
||||||
from gettext import gettext as _
|
|
||||||
|
|
||||||
#-------------------------------------------------------------------------
|
#-------------------------------------------------------------------------
|
||||||
#
|
#
|
||||||
# GRAMPS classes
|
# GRAMPS classes
|
||||||
|
@ -20,20 +20,12 @@
|
|||||||
|
|
||||||
# $Id$
|
# $Id$
|
||||||
|
|
||||||
#-------------------------------------------------------------------------
|
|
||||||
#
|
|
||||||
# Python classes
|
|
||||||
#
|
|
||||||
#-------------------------------------------------------------------------
|
|
||||||
from gettext import gettext as _
|
|
||||||
|
|
||||||
#-------------------------------------------------------------------------
|
#-------------------------------------------------------------------------
|
||||||
#
|
#
|
||||||
# GRAMPS classes
|
# GRAMPS classes
|
||||||
#
|
#
|
||||||
#-------------------------------------------------------------------------
|
#-------------------------------------------------------------------------
|
||||||
import RelLib
|
import RelLib
|
||||||
from DdTargets import DdTargets
|
|
||||||
from _EventEmbedList import EventEmbedList
|
from _EventEmbedList import EventEmbedList
|
||||||
|
|
||||||
_std_types = [
|
_std_types = [
|
||||||
|
@ -20,13 +20,6 @@
|
|||||||
|
|
||||||
# $Id$
|
# $Id$
|
||||||
|
|
||||||
#-------------------------------------------------------------------------
|
|
||||||
#
|
|
||||||
# Python classes
|
|
||||||
#
|
|
||||||
#-------------------------------------------------------------------------
|
|
||||||
from gettext import gettext as _
|
|
||||||
|
|
||||||
#-------------------------------------------------------------------------
|
#-------------------------------------------------------------------------
|
||||||
#
|
#
|
||||||
# GRAMPS classes
|
# GRAMPS classes
|
||||||
|
@ -20,13 +20,6 @@
|
|||||||
|
|
||||||
# $Id$
|
# $Id$
|
||||||
|
|
||||||
#-------------------------------------------------------------------------
|
|
||||||
#
|
|
||||||
# Python classes
|
|
||||||
#
|
|
||||||
#-------------------------------------------------------------------------
|
|
||||||
from gettext import gettext as _
|
|
||||||
|
|
||||||
#-------------------------------------------------------------------------
|
#-------------------------------------------------------------------------
|
||||||
#
|
#
|
||||||
# GRAMPS classes
|
# GRAMPS classes
|
||||||
|
@ -48,8 +48,6 @@ import gtk.glade
|
|||||||
#
|
#
|
||||||
#-------------------------------------------------------------------------
|
#-------------------------------------------------------------------------
|
||||||
import const
|
import const
|
||||||
import RelLib
|
|
||||||
import GrampsDisplay
|
|
||||||
from _EditSecondary import EditSecondary
|
from _EditSecondary import EditSecondary
|
||||||
|
|
||||||
from DisplayTabs import SourceEmbedList, NoteTab
|
from DisplayTabs import SourceEmbedList, NoteTab
|
||||||
|
@ -45,7 +45,6 @@ import gtk.glade
|
|||||||
#
|
#
|
||||||
#-------------------------------------------------------------------------
|
#-------------------------------------------------------------------------
|
||||||
import const
|
import const
|
||||||
import RelLib
|
|
||||||
from _EditSecondary import EditSecondary
|
from _EditSecondary import EditSecondary
|
||||||
|
|
||||||
from DisplayTabs import SourceEmbedList, NoteTab
|
from DisplayTabs import SourceEmbedList, NoteTab
|
||||||
|
@ -27,18 +27,12 @@
|
|||||||
#-------------------------------------------------------------------------
|
#-------------------------------------------------------------------------
|
||||||
from gettext import gettext as _
|
from gettext import gettext as _
|
||||||
|
|
||||||
try:
|
|
||||||
set()
|
|
||||||
except:
|
|
||||||
from sets import Set as set
|
|
||||||
|
|
||||||
#-------------------------------------------------------------------------
|
#-------------------------------------------------------------------------
|
||||||
#
|
#
|
||||||
# GTK/Gnome modules
|
# GTK/Gnome modules
|
||||||
#
|
#
|
||||||
#-------------------------------------------------------------------------
|
#-------------------------------------------------------------------------
|
||||||
import gtk
|
import gtk
|
||||||
import gtk.glade
|
|
||||||
|
|
||||||
#-------------------------------------------------------------------------
|
#-------------------------------------------------------------------------
|
||||||
#
|
#
|
||||||
@ -46,12 +40,11 @@ import gtk.glade
|
|||||||
#
|
#
|
||||||
#-------------------------------------------------------------------------
|
#-------------------------------------------------------------------------
|
||||||
import const
|
import const
|
||||||
import AutoComp
|
|
||||||
import RelLib
|
import RelLib
|
||||||
import GrampsDisplay
|
import GrampsDisplay
|
||||||
from _EditPrimary import EditPrimary
|
from _EditPrimary import EditPrimary
|
||||||
|
|
||||||
from QuestionDialog import WarningDialog, ErrorDialog
|
from QuestionDialog import ErrorDialog
|
||||||
from DisplayTabs import SourceEmbedList, NoteTab, GalleryTab, EventBackRefList
|
from DisplayTabs import SourceEmbedList, NoteTab, GalleryTab, EventBackRefList
|
||||||
from GrampsWidgets import *
|
from GrampsWidgets import *
|
||||||
|
|
||||||
|
@ -27,18 +27,12 @@
|
|||||||
#-------------------------------------------------------------------------
|
#-------------------------------------------------------------------------
|
||||||
from gettext import gettext as _
|
from gettext import gettext as _
|
||||||
|
|
||||||
try:
|
|
||||||
set()
|
|
||||||
except:
|
|
||||||
from sets import Set as set
|
|
||||||
|
|
||||||
#-------------------------------------------------------------------------
|
#-------------------------------------------------------------------------
|
||||||
#
|
#
|
||||||
# GTK/Gnome modules
|
# GTK/Gnome modules
|
||||||
#
|
#
|
||||||
#-------------------------------------------------------------------------
|
#-------------------------------------------------------------------------
|
||||||
import gtk
|
import gtk
|
||||||
import gtk.glade
|
|
||||||
|
|
||||||
#-------------------------------------------------------------------------
|
#-------------------------------------------------------------------------
|
||||||
#
|
#
|
||||||
|
@ -52,9 +52,7 @@ log = logging.getLogger(".")
|
|||||||
# GTK/Gnome modules
|
# GTK/Gnome modules
|
||||||
#
|
#
|
||||||
#-------------------------------------------------------------------------
|
#-------------------------------------------------------------------------
|
||||||
import gobject
|
|
||||||
import gtk
|
import gtk
|
||||||
import gtk.glade
|
|
||||||
|
|
||||||
#-------------------------------------------------------------------------
|
#-------------------------------------------------------------------------
|
||||||
#
|
#
|
||||||
@ -64,10 +62,7 @@ import gtk.glade
|
|||||||
import const
|
import const
|
||||||
import Utils
|
import Utils
|
||||||
import NameDisplay
|
import NameDisplay
|
||||||
import Spell
|
|
||||||
import GrampsDisplay
|
|
||||||
import RelLib
|
import RelLib
|
||||||
import AutoComp
|
|
||||||
import Config
|
import Config
|
||||||
import Errors
|
import Errors
|
||||||
|
|
||||||
|
@ -49,7 +49,6 @@ import gtk.glade
|
|||||||
#-------------------------------------------------------------------------
|
#-------------------------------------------------------------------------
|
||||||
import const
|
import const
|
||||||
import RelLib
|
import RelLib
|
||||||
import GrampsDisplay
|
|
||||||
import NameDisplay
|
import NameDisplay
|
||||||
import LdsUtils
|
import LdsUtils
|
||||||
|
|
||||||
|
@ -26,7 +26,6 @@
|
|||||||
#
|
#
|
||||||
#-------------------------------------------------------------------------
|
#-------------------------------------------------------------------------
|
||||||
import gtk
|
import gtk
|
||||||
import gtk.glade
|
|
||||||
|
|
||||||
#-------------------------------------------------------------------------
|
#-------------------------------------------------------------------------
|
||||||
#
|
#
|
||||||
|
@ -33,9 +33,7 @@ import os
|
|||||||
# GTK/Gnome modules
|
# GTK/Gnome modules
|
||||||
#
|
#
|
||||||
#-------------------------------------------------------------------------
|
#-------------------------------------------------------------------------
|
||||||
import gobject
|
|
||||||
import gtk
|
import gtk
|
||||||
import gtk.glade
|
|
||||||
|
|
||||||
#-------------------------------------------------------------------------
|
#-------------------------------------------------------------------------
|
||||||
#
|
#
|
||||||
@ -49,7 +47,6 @@ import ImgManip
|
|||||||
from _EditPrimary import EditPrimary
|
from _EditPrimary import EditPrimary
|
||||||
|
|
||||||
from GrampsWidgets import *
|
from GrampsWidgets import *
|
||||||
from QuestionDialog import ErrorDialog
|
|
||||||
from DisplayTabs import SourceEmbedList,AttrEmbedList,NoteTab,MediaBackRefList
|
from DisplayTabs import SourceEmbedList,AttrEmbedList,NoteTab,MediaBackRefList
|
||||||
|
|
||||||
#-------------------------------------------------------------------------
|
#-------------------------------------------------------------------------
|
||||||
|
@ -32,9 +32,7 @@ from gettext import gettext as _
|
|||||||
# GTK/Gnome modules
|
# GTK/Gnome modules
|
||||||
#
|
#
|
||||||
#-------------------------------------------------------------------------
|
#-------------------------------------------------------------------------
|
||||||
import gobject
|
|
||||||
import gtk
|
import gtk
|
||||||
import gtk.glade
|
|
||||||
|
|
||||||
#-------------------------------------------------------------------------
|
#-------------------------------------------------------------------------
|
||||||
#
|
#
|
||||||
@ -42,7 +40,6 @@ import gtk.glade
|
|||||||
#
|
#
|
||||||
#-------------------------------------------------------------------------
|
#-------------------------------------------------------------------------
|
||||||
import const
|
import const
|
||||||
import RelLib
|
|
||||||
import Mime
|
import Mime
|
||||||
import ImgManip
|
import ImgManip
|
||||||
|
|
||||||
|
@ -42,8 +42,6 @@ from gettext import gettext as _
|
|||||||
#
|
#
|
||||||
#-------------------------------------------------------------------------
|
#-------------------------------------------------------------------------
|
||||||
import gtk
|
import gtk
|
||||||
import gtk.glade
|
|
||||||
import gtk.gdk
|
|
||||||
|
|
||||||
try:
|
try:
|
||||||
set()
|
set()
|
||||||
@ -60,7 +58,6 @@ import Utils
|
|||||||
import Mime
|
import Mime
|
||||||
import RelLib
|
import RelLib
|
||||||
import GrampsWidgets
|
import GrampsWidgets
|
||||||
import Config
|
|
||||||
|
|
||||||
from GrampsDb import set_birth_death_index
|
from GrampsDb import set_birth_death_index
|
||||||
|
|
||||||
@ -140,16 +137,6 @@ class EditPerson(EditPrimary):
|
|||||||
else:
|
else:
|
||||||
self.surname_field.grab_focus()
|
self.surname_field.grab_focus()
|
||||||
|
|
||||||
# if not Config.get(Config.HIDE_EP_MSG):
|
|
||||||
# MessageHideDialog(
|
|
||||||
# _('Editing a person'),
|
|
||||||
# _('This window allows you to enter information about '
|
|
||||||
# 'a person. You can add events, including birth and '
|
|
||||||
# 'death information under the Events tab. Similarly, '
|
|
||||||
# 'you can add additional information, such as sources, '
|
|
||||||
# 'names, and images on other tabs.'),
|
|
||||||
# Config.HIDE_EP_MSG)
|
|
||||||
|
|
||||||
def _connect_signals(self):
|
def _connect_signals(self):
|
||||||
"""
|
"""
|
||||||
Connects any signals that need to be connected. Called by the
|
Connects any signals that need to be connected. Called by the
|
||||||
|
@ -35,9 +35,7 @@ log = logging.getLogger(".")
|
|||||||
# GTK/Gnome modules
|
# GTK/Gnome modules
|
||||||
#
|
#
|
||||||
#-------------------------------------------------------------------------
|
#-------------------------------------------------------------------------
|
||||||
import gobject
|
|
||||||
import gtk
|
import gtk
|
||||||
import gtk.glade
|
|
||||||
|
|
||||||
#-------------------------------------------------------------------------
|
#-------------------------------------------------------------------------
|
||||||
#
|
#
|
||||||
@ -45,7 +43,6 @@ import gtk.glade
|
|||||||
#
|
#
|
||||||
#-------------------------------------------------------------------------
|
#-------------------------------------------------------------------------
|
||||||
import const
|
import const
|
||||||
import Utils
|
|
||||||
import RelLib
|
import RelLib
|
||||||
from _EditPrimary import EditPrimary
|
from _EditPrimary import EditPrimary
|
||||||
|
|
||||||
|
@ -20,36 +20,12 @@
|
|||||||
|
|
||||||
# $Id: _EditSourceRef.py 6068 2006-03-04 06:34:48Z dallingham $
|
# $Id: _EditSourceRef.py 6068 2006-03-04 06:34:48Z dallingham $
|
||||||
|
|
||||||
#-------------------------------------------------------------------------
|
|
||||||
#
|
|
||||||
# Python modules
|
|
||||||
#
|
|
||||||
#-------------------------------------------------------------------------
|
|
||||||
from gettext import gettext as _
|
|
||||||
|
|
||||||
try:
|
|
||||||
set()
|
|
||||||
except:
|
|
||||||
from sets import Set as set
|
|
||||||
|
|
||||||
#-------------------------------------------------------------------------
|
|
||||||
#
|
|
||||||
# GTK/Gnome modules
|
|
||||||
#
|
|
||||||
#-------------------------------------------------------------------------
|
|
||||||
import gtk
|
|
||||||
import gtk.glade
|
|
||||||
|
|
||||||
#-------------------------------------------------------------------------
|
#-------------------------------------------------------------------------
|
||||||
#
|
#
|
||||||
# gramps modules
|
# gramps modules
|
||||||
#
|
#
|
||||||
#-------------------------------------------------------------------------
|
#-------------------------------------------------------------------------
|
||||||
import const
|
|
||||||
import RelLib
|
|
||||||
import ManagedWindow
|
import ManagedWindow
|
||||||
|
|
||||||
from QuestionDialog import WarningDialog, ErrorDialog
|
|
||||||
from GrampsWidgets import *
|
from GrampsWidgets import *
|
||||||
|
|
||||||
#-------------------------------------------------------------------------
|
#-------------------------------------------------------------------------
|
||||||
|
@ -27,18 +27,12 @@
|
|||||||
#-------------------------------------------------------------------------
|
#-------------------------------------------------------------------------
|
||||||
from gettext import gettext as _
|
from gettext import gettext as _
|
||||||
|
|
||||||
try:
|
|
||||||
set()
|
|
||||||
except:
|
|
||||||
from sets import Set as set
|
|
||||||
|
|
||||||
#-------------------------------------------------------------------------
|
#-------------------------------------------------------------------------
|
||||||
#
|
#
|
||||||
# GTK/Gnome modules
|
# GTK/Gnome modules
|
||||||
#
|
#
|
||||||
#-------------------------------------------------------------------------
|
#-------------------------------------------------------------------------
|
||||||
import gtk
|
import gtk
|
||||||
import gtk.glade
|
|
||||||
|
|
||||||
#-------------------------------------------------------------------------
|
#-------------------------------------------------------------------------
|
||||||
#
|
#
|
||||||
@ -46,7 +40,6 @@ import gtk.glade
|
|||||||
#
|
#
|
||||||
#-------------------------------------------------------------------------
|
#-------------------------------------------------------------------------
|
||||||
import const
|
import const
|
||||||
import RelLib
|
|
||||||
|
|
||||||
from DisplayTabs import NoteTab,AddrEmbedList,WebEmbedList,SourceBackRefList
|
from DisplayTabs import NoteTab,AddrEmbedList,WebEmbedList,SourceBackRefList
|
||||||
from GrampsWidgets import *
|
from GrampsWidgets import *
|
||||||
|
@ -33,7 +33,6 @@ from gettext import gettext as _
|
|||||||
#
|
#
|
||||||
#-------------------------------------------------------------------------
|
#-------------------------------------------------------------------------
|
||||||
import gtk
|
import gtk
|
||||||
import gtk.glade
|
|
||||||
|
|
||||||
#-------------------------------------------------------------------------
|
#-------------------------------------------------------------------------
|
||||||
#
|
#
|
||||||
|
@ -20,10 +20,7 @@
|
|||||||
|
|
||||||
# $Id$
|
# $Id$
|
||||||
|
|
||||||
from gettext import gettext as _
|
|
||||||
|
|
||||||
import ManagedWindow
|
import ManagedWindow
|
||||||
import Config
|
|
||||||
import GrampsDisplay
|
import GrampsDisplay
|
||||||
|
|
||||||
class EditSecondary(ManagedWindow.ManagedWindow):
|
class EditSecondary(ManagedWindow.ManagedWindow):
|
||||||
|
@ -35,7 +35,6 @@ log = logging.getLogger(".")
|
|||||||
# GTK/Gnome modules
|
# GTK/Gnome modules
|
||||||
#
|
#
|
||||||
#-------------------------------------------------------------------------
|
#-------------------------------------------------------------------------
|
||||||
import gobject
|
|
||||||
import gtk.glade
|
import gtk.glade
|
||||||
|
|
||||||
#-------------------------------------------------------------------------
|
#-------------------------------------------------------------------------
|
||||||
@ -45,9 +44,6 @@ import gtk.glade
|
|||||||
#-------------------------------------------------------------------------
|
#-------------------------------------------------------------------------
|
||||||
import const
|
import const
|
||||||
import RelLib
|
import RelLib
|
||||||
import NameDisplay
|
|
||||||
import Spell
|
|
||||||
import GrampsDisplay
|
|
||||||
from _EditPrimary import EditPrimary
|
from _EditPrimary import EditPrimary
|
||||||
|
|
||||||
from DisplayTabs import \
|
from DisplayTabs import \
|
||||||
|
@ -27,18 +27,12 @@
|
|||||||
#-------------------------------------------------------------------------
|
#-------------------------------------------------------------------------
|
||||||
from gettext import gettext as _
|
from gettext import gettext as _
|
||||||
|
|
||||||
try:
|
|
||||||
set()
|
|
||||||
except:
|
|
||||||
from sets import Set as set
|
|
||||||
|
|
||||||
#-------------------------------------------------------------------------
|
#-------------------------------------------------------------------------
|
||||||
#
|
#
|
||||||
# GTK/Gnome modules
|
# GTK/Gnome modules
|
||||||
#
|
#
|
||||||
#-------------------------------------------------------------------------
|
#-------------------------------------------------------------------------
|
||||||
import gtk
|
import gtk
|
||||||
import gtk.glade
|
|
||||||
|
|
||||||
#-------------------------------------------------------------------------
|
#-------------------------------------------------------------------------
|
||||||
#
|
#
|
||||||
|
@ -26,7 +26,6 @@
|
|||||||
#
|
#
|
||||||
#-------------------------------------------------------------------------
|
#-------------------------------------------------------------------------
|
||||||
from gettext import gettext as _
|
from gettext import gettext as _
|
||||||
from cgi import escape
|
|
||||||
|
|
||||||
#-------------------------------------------------------------------------
|
#-------------------------------------------------------------------------
|
||||||
#
|
#
|
||||||
|
@ -31,7 +31,6 @@ __author__ = "Don Allingham"
|
|||||||
# Python modules
|
# Python modules
|
||||||
#
|
#
|
||||||
#-------------------------------------------------------------------------
|
#-------------------------------------------------------------------------
|
||||||
import os
|
|
||||||
from gettext import gettext as _
|
from gettext import gettext as _
|
||||||
|
|
||||||
#------------------------------------------------------------------------
|
#------------------------------------------------------------------------
|
||||||
@ -42,25 +41,15 @@ from gettext import gettext as _
|
|||||||
import logging
|
import logging
|
||||||
log = logging.getLogger(".FilterEdit")
|
log = logging.getLogger(".FilterEdit")
|
||||||
|
|
||||||
#-------------------------------------------------------------------------
|
|
||||||
#
|
|
||||||
# GTK/GNOME
|
|
||||||
#
|
|
||||||
#-------------------------------------------------------------------------
|
|
||||||
import gtk
|
|
||||||
import GrampsDisplay
|
|
||||||
|
|
||||||
#-------------------------------------------------------------------------
|
#-------------------------------------------------------------------------
|
||||||
#
|
#
|
||||||
# GRAMPS modules
|
# GRAMPS modules
|
||||||
#
|
#
|
||||||
#-------------------------------------------------------------------------
|
#-------------------------------------------------------------------------
|
||||||
import const
|
import const
|
||||||
import RelLib
|
|
||||||
from Filters import GenericFilter, FilterList, Rules, \
|
|
||||||
reload_custom_filters, reload_system_filters
|
|
||||||
import ListModel
|
import ListModel
|
||||||
import ManagedWindow
|
import ManagedWindow
|
||||||
|
import GrampsDisplay
|
||||||
|
|
||||||
#-------------------------------------------------------------------------
|
#-------------------------------------------------------------------------
|
||||||
#
|
#
|
||||||
|
@ -31,7 +31,6 @@ __author__ = "Don Allingham"
|
|||||||
# Python modules
|
# Python modules
|
||||||
#
|
#
|
||||||
#-------------------------------------------------------------------------
|
#-------------------------------------------------------------------------
|
||||||
import os
|
|
||||||
from gettext import gettext as _
|
from gettext import gettext as _
|
||||||
|
|
||||||
#------------------------------------------------------------------------
|
#------------------------------------------------------------------------
|
||||||
@ -58,8 +57,7 @@ import GrampsDisplay
|
|||||||
#-------------------------------------------------------------------------
|
#-------------------------------------------------------------------------
|
||||||
import const
|
import const
|
||||||
import RelLib
|
import RelLib
|
||||||
from Filters import GenericFilter, FilterList, Rules, \
|
from Filters import Rules
|
||||||
reload_custom_filters, reload_system_filters
|
|
||||||
import AutoComp
|
import AutoComp
|
||||||
from Selectors import selector_factory
|
from Selectors import selector_factory
|
||||||
SelectPerson = selector_factory('Person')
|
SelectPerson = selector_factory('Person')
|
||||||
|
@ -31,7 +31,6 @@ __author__ = "Don Allingham"
|
|||||||
# Python modules
|
# Python modules
|
||||||
#
|
#
|
||||||
#-------------------------------------------------------------------------
|
#-------------------------------------------------------------------------
|
||||||
import os
|
|
||||||
from gettext import gettext as _
|
from gettext import gettext as _
|
||||||
|
|
||||||
#------------------------------------------------------------------------
|
#------------------------------------------------------------------------
|
||||||
@ -47,7 +46,6 @@ log = logging.getLogger(".FilterEdit")
|
|||||||
# GTK/GNOME
|
# GTK/GNOME
|
||||||
#
|
#
|
||||||
#-------------------------------------------------------------------------
|
#-------------------------------------------------------------------------
|
||||||
import gtk
|
|
||||||
import GrampsDisplay
|
import GrampsDisplay
|
||||||
|
|
||||||
#-------------------------------------------------------------------------
|
#-------------------------------------------------------------------------
|
||||||
@ -56,7 +54,6 @@ import GrampsDisplay
|
|||||||
#
|
#
|
||||||
#-------------------------------------------------------------------------
|
#-------------------------------------------------------------------------
|
||||||
import const
|
import const
|
||||||
import RelLib
|
|
||||||
from Filters import GenericFilter, FilterList, \
|
from Filters import GenericFilter, FilterList, \
|
||||||
reload_custom_filters, reload_system_filters
|
reload_custom_filters, reload_system_filters
|
||||||
import ListModel
|
import ListModel
|
||||||
|
@ -24,13 +24,6 @@
|
|||||||
Attribute class for GRAMPS
|
Attribute class for GRAMPS
|
||||||
"""
|
"""
|
||||||
|
|
||||||
#-------------------------------------------------------------------------
|
|
||||||
#
|
|
||||||
# standard python modules
|
|
||||||
#
|
|
||||||
#-------------------------------------------------------------------------
|
|
||||||
from warnings import warn
|
|
||||||
|
|
||||||
#-------------------------------------------------------------------------
|
#-------------------------------------------------------------------------
|
||||||
#
|
#
|
||||||
# GRAMPS modules
|
# GRAMPS modules
|
||||||
|
@ -24,13 +24,6 @@
|
|||||||
Event object for GRAMPS
|
Event object for GRAMPS
|
||||||
"""
|
"""
|
||||||
|
|
||||||
#-------------------------------------------------------------------------
|
|
||||||
#
|
|
||||||
# standard python modules
|
|
||||||
#
|
|
||||||
#-------------------------------------------------------------------------
|
|
||||||
from warnings import warn
|
|
||||||
|
|
||||||
#-------------------------------------------------------------------------
|
#-------------------------------------------------------------------------
|
||||||
#
|
#
|
||||||
# GRAMPS modules
|
# GRAMPS modules
|
||||||
|
@ -24,13 +24,6 @@
|
|||||||
Event Reference class for GRAMPS
|
Event Reference class for GRAMPS
|
||||||
"""
|
"""
|
||||||
|
|
||||||
#-------------------------------------------------------------------------
|
|
||||||
#
|
|
||||||
# standard python modules
|
|
||||||
#
|
|
||||||
#-------------------------------------------------------------------------
|
|
||||||
from warnings import warn
|
|
||||||
|
|
||||||
#-------------------------------------------------------------------------
|
#-------------------------------------------------------------------------
|
||||||
#
|
#
|
||||||
# GRAMPS modules
|
# GRAMPS modules
|
||||||
|
@ -24,13 +24,6 @@
|
|||||||
Name class for GRAMPS
|
Name class for GRAMPS
|
||||||
"""
|
"""
|
||||||
|
|
||||||
#-------------------------------------------------------------------------
|
|
||||||
#
|
|
||||||
# standard python modules
|
|
||||||
#
|
|
||||||
#-------------------------------------------------------------------------
|
|
||||||
from warnings import warn
|
|
||||||
|
|
||||||
#-------------------------------------------------------------------------
|
#-------------------------------------------------------------------------
|
||||||
#
|
#
|
||||||
# GRAMPS modules
|
# GRAMPS modules
|
||||||
|
@ -46,7 +46,6 @@ from _LdsOrdBase import LdsOrdBase
|
|||||||
from _UrlBase import UrlBase
|
from _UrlBase import UrlBase
|
||||||
from _Name import Name
|
from _Name import Name
|
||||||
from _EventRef import EventRef
|
from _EventRef import EventRef
|
||||||
from _LdsOrd import LdsOrd
|
|
||||||
from _PersonRef import PersonRef
|
from _PersonRef import PersonRef
|
||||||
from _MarkerType import MarkerType
|
from _MarkerType import MarkerType
|
||||||
from _AttributeType import AttributeType
|
from _AttributeType import AttributeType
|
||||||
|
@ -24,13 +24,6 @@
|
|||||||
Repository object for GRAMPS
|
Repository object for GRAMPS
|
||||||
"""
|
"""
|
||||||
|
|
||||||
#-------------------------------------------------------------------------
|
|
||||||
#
|
|
||||||
# standard python modules
|
|
||||||
#
|
|
||||||
#-------------------------------------------------------------------------
|
|
||||||
from warnings import warn
|
|
||||||
|
|
||||||
#-------------------------------------------------------------------------
|
#-------------------------------------------------------------------------
|
||||||
#
|
#
|
||||||
# GRAMPS modules
|
# GRAMPS modules
|
||||||
|
@ -36,7 +36,6 @@ from _DateBase import DateBase
|
|||||||
from _PrivacyBase import PrivacyBase
|
from _PrivacyBase import PrivacyBase
|
||||||
from _NoteBase import NoteBase
|
from _NoteBase import NoteBase
|
||||||
from _RefBase import RefBase
|
from _RefBase import RefBase
|
||||||
from _Note import Note
|
|
||||||
|
|
||||||
#-------------------------------------------------------------------------
|
#-------------------------------------------------------------------------
|
||||||
#
|
#
|
||||||
|
Loading…
x
Reference in New Issue
Block a user