Child: [b61566] (diff)

Download this file

repo.py    32 lines (26 with data), 775 Bytes

 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
import ew
from allura.lib.widgets import form_fields as ffw
class SCMLogWidget(ew.Widget):
template='jinja:repo_widgets/log.html'
params=['value', 'limit', 'page', 'count', 'show_paging', 'fields']
value=None
limit=None
page=0
count=0
show_paging=True
class fields(ew.WidgetsList):
page_list=ffw.PageList()
page_size=ffw.PageSize()
class SCMRevisionWidget(ew.Widget):
template='jinja:repo_widgets/revision.html'
params=['value', 'prev', 'next']
value=None
prev=()
next=()
class SCMTreeWidget(ew.Widget):
template='jinja:repo_widgets/tree_widget.html'
params=['tree', 'list']
tree=None
def __init__(self, **kw):
super(SCMTreeWidget, self).__init__(**kw)
self.list = list