Exemplo n.º 1
0
    def __init__(self, dbstate, uistate, track, addr, callback):
        """
        Displays the dialog box.

        parent - The class that called the Address editor.
        addr - The address that is to be edited
        """
        EditSecondary.__init__(self, dbstate, uistate, track, addr, callback)
Exemplo n.º 2
0
    def __init__(self, name, dbstate, uistate, track, childref, callback):
        """
        Displays the dialog box.

        parent - The class that called the ChildRef editor.
        addr - The address that is to be edited
        """
        self.name = name
        EditSecondary.__init__(self, dbstate, uistate, track, childref,
                               callback)
Exemplo n.º 3
0
    def __init__(self, state, uistate, track, attrib, callback):
        """
        Displays the dialog box.

        parent - The class that called the Address editor.
        attrib - The attribute that is to be edited
        title - The title of the dialog box
        list - list of options for the pop down menu
        """
        EditSecondary.__init__(self, state, uistate, track, attrib, callback)
Exemplo n.º 4
0
 def _cleanup_on_exit(self):
     """
     Somehow it was decided that a database value of group="" is represented
     in the GUI by a widget with a group="surname" which is disabled. So if
     the group_as widget is disabled then remove the group from the name
     otherwise gramps thinks the name has changed resulting in asking if
     data must be saved, and also bug 1892 occurs on reopening of the editor.
     """
     # can't use group_over, see Note in gen/lib/name/Name.set_group_as().
     if not self.group_as.obj.get_editable():
         self.obj.set_group_as("")
     EditSecondary._cleanup_on_exit(self)
Exemplo n.º 5
0
 def __init__(self, dbstate, uistate, track, location, callback):
     EditSecondary.__init__(self, dbstate, uistate, track, location,
                            callback)
Exemplo n.º 6
0
    def __init__(self, dbstate, uistate, track, name, callback):

        EditSecondary.__init__(self, dbstate, uistate, track, name, callback)