tcms.bugs.views module¶
- class tcms.bugs.views.AddComment(**kwargs)[source]¶
Bases:
View
- dispatch(request, *args, **kwargs)¶
- http_methods = ['post']¶
- class tcms.bugs.views.Edit(**kwargs)[source]¶
Bases:
UpdateView
- dispatch(request, *args, **kwargs)¶
- form_class¶
alias of
NewBugForm
- get_object(queryset=None)[source]¶
Return the object the view is displaying.
Require self.queryset and a pk or slug argument in the URLconf. Subclasses can override this to return any object.
- template_name = 'bugs/mutable.html'¶
- class tcms.bugs.views.Get(**kwargs)[source]¶
Bases:
DetailView
- dispatch(request, *args, **kwargs)¶
- http_method_names = ['get']¶
- template_name = 'bugs/get.html'¶
- class tcms.bugs.views.New(**kwargs)[source]¶
Bases:
CreateView
- static assignee_from_components(components)[source]¶
Return the first owner which is assigned to any of the components. This is as best as we can to automatically figure out who should be assigned to this bug.
- static create_bug(data)[source]¶
Helper method used within Issue Tracker integration.
- Parameters:
data (dict) – Untrusted input, usually via HTTP request
- Returns:
bug
- Return type:
Model
- dispatch(request, *args, **kwargs)¶
- static find_assignee(data)[source]¶
Try to automatically find an assignee for Bug by first scanning TestCase components (if present) and then components for the product.
- form_class¶
alias of
NewBugForm
- template_name = 'bugs/mutable.html'¶