move src/Editors/* to src/gui/editors as part of GEP008
svn: r13807
This commit is contained in:
@ -42,6 +42,7 @@ import GrampsDisplay
|
||||
import ManagedWindow
|
||||
from TransUtils import sgettext as _
|
||||
from glade import Glade
|
||||
from gui.editors import EditPerson
|
||||
|
||||
#------------------------------------------------------------------------
|
||||
#
|
||||
@ -114,8 +115,6 @@ class DesBrowse(Tool.ActivePersonTool, ManagedWindow.ManagedWindow):
|
||||
return item_id
|
||||
|
||||
def button_press_event(self, obj,event):
|
||||
from Editors import EditPerson
|
||||
|
||||
if event.type == gtk.gdk._2BUTTON_PRESS and event.button == 1:
|
||||
store, node = self.tree.get_selection().get_selected()
|
||||
if node:
|
||||
|
@ -40,8 +40,7 @@ import const
|
||||
from gettext import ngettext
|
||||
from PluginUtils import Tool
|
||||
from ReportBase import ReportUtils
|
||||
from PluginUtils import Tool
|
||||
from Editors import EditPerson, EditFamily
|
||||
from gui.editors import EditPerson, EditFamily
|
||||
import ManagedWindow
|
||||
from gui.utils import ProgressMeter
|
||||
import GrampsDisplay
|
||||
|
@ -347,7 +347,7 @@ class RemoveUnused(Tool.Tool, ManagedWindow.ManagedWindow, UpdateCallback):
|
||||
def call_editor(self, the_type, handle):
|
||||
try:
|
||||
obj = self.tables[the_type]['get_func'](handle)
|
||||
editor_str = 'from Editors import %s as editor' \
|
||||
editor_str = 'from gui.editors import %s as editor' \
|
||||
% self.tables[the_type]['editor']
|
||||
exec(editor_str)
|
||||
editor(self.dbstate, self.uistate, [], obj)
|
||||
|
@ -54,6 +54,7 @@ import gobject
|
||||
#------------------------------------------------------------------------
|
||||
import const
|
||||
import gen.lib
|
||||
from gui.editors import EditPerson, EditFamily
|
||||
import Utils
|
||||
import GrampsDisplay
|
||||
from ManagedWindow import ManagedWindow
|
||||
@ -605,14 +606,12 @@ class VerifyResults(ManagedWindow):
|
||||
handle = row[VerifyResults.OBJ_HANDLE_COL]
|
||||
if the_type == 'Person':
|
||||
try:
|
||||
from Editors import EditPerson
|
||||
person = self.dbstate.db.get_person_from_handle(handle)
|
||||
EditPerson(self.dbstate, self.uistate, [], person)
|
||||
except Errors.WindowActiveError:
|
||||
pass
|
||||
elif the_type == 'Family':
|
||||
try:
|
||||
from Editors import EditFamily
|
||||
family = self.dbstate.db.get_family_from_handle(handle)
|
||||
EditFamily(self.dbstate, self.uistate, [], family)
|
||||
except Errors.WindowActiveError:
|
||||
|
Reference in New Issue
Block a user