Parent: [52f2ef] (diff)

Child: [fad9e0] (diff)

Download this file

search.py    23 lines (18 with data), 548 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
import ew as ew_core
import ew.jinja2_ew as ew
from allura.lib.widgets import form_fields as ffw
class SearchResults(ew_core.Widget):
template='jinja:allura:templates/widgets/search_results.html'
defaults=dict(
ew_core.Widget.defaults,
results=None,
limit=None,
page=0,
count=0)
class fields(ew_core.NameList):
page_list=ffw.PageList()
page_size=ffw.PageSize()
def resources(self):
for f in self.fields:
for r in f.resources():
yield r