l.b.b.w.b.BugTaskAssigneeWidget(Widget) : class documentation

Part of lp.bugs.browser.widgets.bugtask View In Hierarchy

A widget for setting the assignee on an IBugTask.
Method __init__ Undocumented
Method setUpNames Set up the names used by this widget.
Method setPrefix Undocumented
Method validate This method used to be part of zope.formlib.interfaces.IInputWidget
Method hasInput See zope.formlib.interfaces.IInputWidget.
Method hasValidInput See zope.formlib.interfaces.IInputWidget.
Method getInputValue See zope.formlib.interfaces.IInputWidget.
Method applyChanges See zope.formlib.interfaces.IInputWidget.
Method assignedToCurrentUser Is this IBugTask assigned to the currently logged in user?
Method assignedToAnotherUser Is this IBugTask assigned to someone other than the current user?
Method getAssigneeDisplayValue Return a display value for current IBugTask.assignee.
Method selectedRadioButton Return the radio button that should be selected.
Method showUnassignOption Should the "unassign bugtask" option be shown?
Method showPersonChooserWidget Should the person chooser widget be shown?
def __init__(self, context, vocabulary, request):
Undocumented
def setUpNames(self):
Set up the names used by this widget.
def setPrefix(self, prefix):
Undocumented
def validate(self):
This method used to be part of zope.formlib.interfaces.IInputWidget in Zope 3.0, but is no longer part of the interface in Zope 3.2
def hasInput(self):
See zope.formlib.interfaces.IInputWidget.
def hasValidInput(self):
See zope.formlib.interfaces.IInputWidget.
def getInputValue(self):
See zope.formlib.interfaces.IInputWidget.
def applyChanges(self, content):
See zope.formlib.interfaces.IInputWidget.
def assignedToCurrentUser(self):
Is this IBugTask assigned to the currently logged in user?

Returns True if yes, otherwise False.

def assignedToAnotherUser(self):
Is this IBugTask assigned to someone other than the current user?

Returns True if yes, otherwise False.

def getAssigneeDisplayValue(self):
Return a display value for current IBugTask.assignee.

If no IBugTask.assignee, return None. If the assignee is not viewable, return u'<hidden>'.

def selectedRadioButton(self):

Return the radio button that should be selected.

The return value will be one of:

self.assigned_to self.assign_to_me self.assign_to_nobody self.assign_to
def showUnassignOption(self):
Should the "unassign bugtask" option be shown?

To avoid user confusion, we show this option only if the user can set the bug task assignee to None or if there is currently no assignee set.

def showPersonChooserWidget(self):
Should the person chooser widget be shown?

The person chooser is shown only if the user can assign at least one other person or team in addition to themselves.

API Documentation for Launchpad, generated by pydoctor at 2022-06-16 00:00:12.