File tree Expand file tree Collapse file tree 2 files changed +8
-3
lines changed
Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change 11simplejson == 2.0.9
22itty == 0.6.2
33redis >= 1.34.1
4- pystache == 0.1 .0
4+ pystache == 0.5 .0
55setproctitle >= 1.0
Original file line number Diff line number Diff line change 77import datetime
88
99TEMPLATE_PATH = os .path .join (os .path .dirname (__file__ ), 'templates' )
10- class ResWeb (pystache .View ):
10+ class ResWeb (pystache .TemplateSpec ):
1111 template_path = TEMPLATE_PATH
12+ renderer = pystache .Renderer (search_dirs = template_path )
13+
1214 def __init__ (self , host ):
13- super (ResWeb , self ).__init__ ()
1415 self .resq = host
1516
17+ def render (self ):
18+ return self .renderer .render (self )
19+
1620 def media_folder (self ):
1721 return '/media/'
1822
@@ -122,6 +126,7 @@ def empty_workers(self):
122126 return False
123127 else :
124128 return True
129+
125130class Queues (Overview ):
126131 template_name = 'queue_full'
127132
You can’t perform that action at this time.
0 commit comments