def __init__(self, view_type, assigned_to='me', minimal_priority=0, exclude_projects=()): self.redmine = redmine() self.assigned_to = assigned_to self.minimal_priority = minimal_priority self.exclude_projects = exclude_projects if view_type == 'list': self.filtered_issues() else: self.num_issues()
def __init__(self, edit_type, issue_id): self.redmine = redmine() self.issue_id = issue_id if edit_type == 'status': self.change_status() elif edit_type == 'chown': self.change_owner() elif edit_type == 'comment': self.add_comment() else: pass
def __init__(self): self.redmine = redmine() self.users_exporter() self.project_exporter()