Child: [f00588] (diff)

Download this file

ticket_search.py    49 lines (41 with data), 1.4 kB

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
import ew
from allura.lib.widgets import form_fields as ffw
class TicketSearchResults(ew.SimpleForm):
template='jinja:tracker_widgets/ticket_search_results.html'
params=['solr_error','count','limit','query','tickets','sortable_custom_fields','sort','page',
'columns']
solr_error=None
count=None
limit=None
query=None
tickets=None
sortable_custom_fields=None
page=1
sort=None
columns=None
class fields(ew.WidgetsList):
page_list=ffw.PageList()
page_size=ffw.PageSize()
def resources(self):
yield ew.resource.JSLink('tracker_js/ticket-list.js')
yield ew.resource.CSSLink('tracker_css/ticket-list.css')
for r in ffw.PageList().resources(): yield r
for r in ffw.PageSize().resources(): yield r
class MassEdit(ew.Widget):
template='jinja:tracker_widgets/mass_edit.html'
params=['count','limit','query','tickets','sort','page']
count=None
limit=None
query=None
tickets=None
page=1
sort=None
def resources(self):
yield ew.resource.JSLink('tracker_js/ticket-list.js')
class MassEditForm(ew.Widget):
template='jinja:tracker_widgets/mass_edit_form.html'
params=['globals','query']
globals=None
query=None
def resources(self):
yield ew.resource.JSLink('tracker_js/mass-edit.js')