Exemplo n.º 1
0
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 []
Exemplo n.º 3
0
def complete_target(command, argument, fragment=None):
    """List possible command completions for fragment."""
    return targets(command._get_bugdir())
Exemplo n.º 4
0
def complete_assigned(command, argument, fragment=None):
    return assignees(command._get_bugdir())
Exemplo n.º 5
0
def complete_severity(command, argument, fragment=None):
    bd = command._get_bugdir()
    import libbe.bug
    return libbe.bug.severity_values
Exemplo n.º 6
0
def complete_status(command, argument, fragment=None):
    bd = command._get_bugdir()
    import libbe.bug
    return libbe.bug.status_values
Exemplo n.º 7
0
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
Exemplo n.º 10
0
def complete_status(command, argument, fragment=None):
    bd = command._get_bugdir()
    import libbe.bug
    return libbe.bug.status_values