Child: [550ed5] (diff)

Download this file

issue_form.py    19 lines (14 with data), 620 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
from tw.api import WidgetsList
from tw.forms import TableForm, CalendarDatePicker, SingleSelectField, TextField, TextArea
class IssueForm(TableForm):
class fields(WidgetsList):
#created_date
#parent
summary = TextField()
description = TextArea()
reported_by = TextField()
assigned_to = TextField()
milestone = TextField()
status_options = enumerate(('open', 'unread', 'accepted', 'pending', 'closed'))
status = SingleSelectField(options=status_options)
create_issue_form = IssueForm("create_issue_form")