editor fixes

svn: r6191
This commit is contained in:
Don Allingham 2006-03-21 22:12:39 +00:00
parent 7238e04680
commit 5d34cd3446
3 changed files with 8 additions and 3 deletions

View File

@ -1,3 +1,8 @@
2006-03-21 Don Allingham <don@gramps-project.org>
* src/DisplayTabs.py: Send Attribute instead of None for new
object
* src/Editors/_EditAddress.py: specify callback
2006-03-21 Alex Roitman <shura@gramps-project.org> 2006-03-21 Alex Roitman <shura@gramps-project.org>
* various: rename doc to data; move most of src/data to data. * various: rename doc to data; move most of src/data to data.

View File

@ -41,7 +41,6 @@ try:
set() set()
except: except:
from sets import Set as set from sets import Set as set
print "set not used"
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
# #
@ -891,9 +890,10 @@ class AttrEmbedList(EmbeddedList):
from Editors import EditAttribute from Editors import EditAttribute
pname = '' pname = ''
attr_list = [] attr_list = []
attr = RelLib.Attribute()
try: try:
EditAttribute( EditAttribute(
self.dbstate, self.uistate, self.track, None, self.dbstate, self.uistate, self.track, attr,
pname, attr_list, self.add_callback) pname, attr_list, self.add_callback)
except Errors.WindowActiveError: except Errors.WindowActiveError:
pass pass

View File

@ -66,7 +66,7 @@ class EditAddress(EditSecondary):
parent - The class that called the Address editor. parent - The class that called the Address editor.
addr - The address that is to be edited addr - The address that is to be edited
""" """
EditSecondary.__init__(self, dbstate, uistate, track, addr) EditSecondary.__init__(self, dbstate, uistate, track, addr, callback)
def _local_init(self): def _local_init(self):
self.top = gtk.glade.XML(const.gladeFile, "addr_edit","gramps") self.top = gtk.glade.XML(const.gladeFile, "addr_edit","gramps")