def complete_bug_comment_id(command, argument, fragment=None, active_only=True, comments=True): import libbe.bugdir import libbe.util.id bd = command._get_bugdir() if fragment == None or len(fragment) == 0: fragment = '/' try: p = libbe.util.id.parse_user(bd, fragment) matches = None root,residual = (fragment, None) if not root.endswith('/'): root += '/' except libbe.util.id.InvalidIDStructure, e: return []
def complete_bug_comment_id(command, argument, fragment=None, active_only=True, comments=True): import libbe.bugdir import libbe.util.id bd = command._get_bugdir() if fragment == None or len(fragment) == 0: fragment = '/' try: p = libbe.util.id.parse_user(bd, fragment) matches = None root, residual = (fragment, None) if not root.endswith('/'): root += '/' except libbe.util.id.InvalidIDStructure, e: return []
def complete_target(command, argument, fragment=None): """List possible command completions for fragment.""" return targets(command._get_bugdir())
def complete_assigned(command, argument, fragment=None): return assignees(command._get_bugdir())
def complete_severity(command, argument, fragment=None): bd = command._get_bugdir() import libbe.bug return libbe.bug.severity_values
def complete_status(command, argument, fragment=None): bd = command._get_bugdir() import libbe.bug return libbe.bug.status_values