This document covers various components of pinax.apps.tasks.
The number of tasks items to include in the feed. Defaults to 20.
PINAX_ITEMS_PER_FEED = 100
The module that controls the workflow of a task. Defaults to pinax.apps.tasks.workflow.
TASKS_WORKFLOW_MODULE = "myproject.workflow"
The named URLs in this app should enable the use of of the {% url %} template tag as well as reverse lookups in your project code without having to know the implementation details of this app.
Renders the task_list.html template with a filtered list of tasks in context.
Renders the focus.html template filtering down Tasks by either modified, state, assignee, or tag.
| keyword arguments: | |
|---|---|
| The field/value with which to filter down the Tasks matching (?P<field>modified|state|assignee|tag)/(?P<value>[^/]+)/. | |
For GET requests, renders add.html template with a pinax.apps.tasks.forms.TaskForm instance in context.
For a POST request, process the form, redirecting either to task_add or task_list.
For GET requests, renders add.html template with a pinax.apps.tasks.forms.TaskForm instance in context.
For a POST request, processes the form, redirecting either to task_add or task_list.
| keyword arguments: | |
|---|---|
| There is an optional argument that is the secret_id for the dpaste.models.Snippet. It must match (?P<secret_id>\w+). | |
For GET requests, renders the task.html template with a particular pinax.apps.tasks.models.Task object as well as an instance of pinax.apps.tasks.forms.EditTaskForm.
For POST requests, processes the form.
| keyword arguments: | |
|---|---|
| The id of the tasks you wish to view/edit: (?P<id>\d+). | |
Renders the user_tasks.html template with tasks for the user who’s username is specified in the URL argument.
| keyword arguments: | |
|---|---|
| The username of the user who’s tickets you wish to view. Must match (?P<username>[-\w]+). | |
Renders the mini_list.html template with all the logged in user’s assigned tasks.
Renders the tasks_history_list.html template with a list of pinax.apps.models.TaskHistory objects where object_id is None.
Renders the task_history.html template with a pinax.apps.tasks.models.Task object and a list of pinax.apps.tasks.models.TaskHistory objects that are linked to that object.
| keyword arguments: | |
|---|---|
| The id of the Task to view history on. Must match (?P<id>\d+). | |
Toggles a pinax.apps.tasks.models.Nudge object’s existence for a given pinax.apps.tasks.models.Task object and user context. If the a Nudge exists, it gets deleted. If it doesn’t it’s created.
| keyword arguments: | |
|---|---|
| The id of the Task to nudge. Must match (?P<id>\d+). | |
Returns a data dump via a text/csv file of workflow state data.
Templates should be placed in an tasks/ folder at the root of one of your template search paths.
| context: | group, group_base, group_by, gbqs, is_member, task_filter, tasks, querystring |
|---|
| context: | group, group_base, is_member, task_form |
|---|
| context: | group, group_base, nudge, task, is_member, form |
|---|
| context: | group, group_base, assigned_filter, created_filter, nudged_filter, assigned_tasks, created_tasks, nudged_tasks, other_user, bookmarklet |
|---|
| context: | group, group_base, assigned_tasks |
|---|
| context: | group, group_base, task_filter, tasks, field, value, group_by, gbqs, is_member |
|---|
| context: | group, group_base, task_history, is_member |
|---|
| context: | group, group_base, task_history, task, nudge_history |
|---|