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 1
1
simplejson == 2.0.9
2
2
itty == 0.6.2
3
3
redis >= 1.34.1
4
- pystache == 0.1 .0
4
+ pystache == 0.5 .0
5
5
setproctitle >= 1.0
Original file line number Diff line number Diff line change 7
7
import datetime
8
8
9
9
TEMPLATE_PATH = os .path .join (os .path .dirname (__file__ ), 'templates' )
10
- class ResWeb (pystache .View ):
10
+ class ResWeb (pystache .TemplateSpec ):
11
11
template_path = TEMPLATE_PATH
12
+ renderer = pystache .Renderer (search_dirs = template_path )
13
+
12
14
def __init__ (self , host ):
13
- super (ResWeb , self ).__init__ ()
14
15
self .resq = host
15
16
17
+ def render (self ):
18
+ return self .renderer .render (self )
19
+
16
20
def media_folder (self ):
17
21
return '/media/'
18
22
@@ -122,6 +126,7 @@ def empty_workers(self):
122
126
return False
123
127
else :
124
128
return True
129
+
125
130
class Queues (Overview ):
126
131
template_name = 'queue_full'
127
132
You can’t perform that action at this time.
0 commit comments