move src/Editors/* to src/gui/editors as part of GEP008

svn: r13807
This commit is contained in:
Brian Matherly
2009-12-15 05:56:12 +00:00
parent baa13df670
commit bbe2b6da0c
71 changed files with 194 additions and 280 deletions

View File

@ -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:

View File

@ -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

View File

@ -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)

View File

@ -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: