2773: Primary participant(s) in Events View
svn: r13086
This commit is contained in:
parent
5700f6ab66
commit
d9dc29c9af
@ -204,6 +204,16 @@ class EventEmbedList(DbGUIElement, GroupEmbeddedList):
|
|||||||
except Errors.WindowActiveError:
|
except Errors.WindowActiveError:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
def __blocked_text(self):
|
||||||
|
"""
|
||||||
|
Return the common text used when eventref cannot be edited
|
||||||
|
"""
|
||||||
|
return _("This event reference cannot be edited at this time. "
|
||||||
|
"Either the associated event is already being edited "
|
||||||
|
"or another event reference that is associated with "
|
||||||
|
"the same event is being edited.\n\nTo edit this event "
|
||||||
|
"reference, you need to close the event.")
|
||||||
|
|
||||||
def share_button_clicked(self, obj):
|
def share_button_clicked(self, obj):
|
||||||
from Selectors import selector_factory
|
from Selectors import selector_factory
|
||||||
SelectEvent = selector_factory('Event')
|
SelectEvent = selector_factory('Event')
|
||||||
@ -218,6 +228,9 @@ class EventEmbedList(DbGUIElement, GroupEmbeddedList):
|
|||||||
self.dbstate, self.uistate, self.track,
|
self.dbstate, self.uistate, self.track,
|
||||||
event, ref, self.object_added)
|
event, ref, self.object_added)
|
||||||
except Errors.WindowActiveError:
|
except Errors.WindowActiveError:
|
||||||
|
from QuestionDialog import WarningDialog
|
||||||
|
WarningDialog(_("Cannot share this reference"),
|
||||||
|
self.__blocked_text() )
|
||||||
pass
|
pass
|
||||||
|
|
||||||
def edit_button_clicked(self, obj):
|
def edit_button_clicked(self, obj):
|
||||||
@ -230,14 +243,8 @@ class EventEmbedList(DbGUIElement, GroupEmbeddedList):
|
|||||||
event, ref[1], self.object_edited)
|
event, ref[1], self.object_edited)
|
||||||
except Errors.WindowActiveError:
|
except Errors.WindowActiveError:
|
||||||
from QuestionDialog import WarningDialog
|
from QuestionDialog import WarningDialog
|
||||||
WarningDialog(
|
WarningDialog(_("Cannot edit this reference"),
|
||||||
_("Cannot edit this reference"),
|
self.__blocked_text() )
|
||||||
_("This event reference cannot be edited at this time. "
|
|
||||||
"Either the associated event is already being edited "
|
|
||||||
"or another event reference that is associated with "
|
|
||||||
"the same event is being edited.\n\nTo edit this event "
|
|
||||||
"reference, you need to close the event.")
|
|
||||||
)
|
|
||||||
elif ref and ref[0] != self._WORKGROUP:
|
elif ref and ref[0] != self._WORKGROUP:
|
||||||
#bring up family editor
|
#bring up family editor
|
||||||
key = self._groups[ref[0]][0]
|
key = self._groups[ref[0]][0]
|
||||||
|
@ -70,7 +70,7 @@ class SelectEvent(BaseSelector):
|
|||||||
return self.db.get_event_from_handle
|
return self.db.get_event_from_handle
|
||||||
|
|
||||||
def get_handle_column(self):
|
def get_handle_column(self):
|
||||||
return 6
|
return 7
|
||||||
|
|
||||||
def column_order(self):
|
def column_order(self):
|
||||||
"""
|
"""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user