def extra_buttons(extra_slug, project): extra = extras_manager.getExtra(extra_slug) return { 'extra': extra, 'project': project, 'actions': extra.getExtraActions(project) }
def extra_buttons(extra_slug, projectOrIteration): if hasattr(projectOrIteration,"project"): project = projectOrIteration.project iteration = projectOrIteration else: project = projectOrIteration iteration = None extra = extras_manager.getExtra( extra_slug ) return {'extra':extra, 'project':project, 'actions':extra.getExtraActions(project, iteration=iteration)}
def extra_story_buttons(extra_slug, story): extra = extras_manager.getExtra( extra_slug ) return {'extra':extra, 'actions':extra.getExtraStoryActions(story.project, story)}
def extra_name( slug ): extra = extras_manager.getExtra( slug ) return extra.getName()