equal
deleted
inserted
replaced
128 if virtual.startswith('static/'): |
128 if virtual.startswith('static/'): |
129 fname = virtual[7:] |
129 fname = virtual[7:] |
130 else: |
130 else: |
131 fname = req.form['static'][0] |
131 fname = req.form['static'][0] |
132 static = templater.templatepath('static') |
132 static = templater.templatepath('static') |
133 return staticfile(static, fname, req) |
133 return (staticfile(static, fname, req),) |
134 |
134 |
135 # top-level index |
135 # top-level index |
136 elif not virtual: |
136 elif not virtual: |
137 req.respond(HTTP_OK, ctype) |
137 req.respond(HTTP_OK, ctype) |
138 return self.makeindex(req, tmpl) |
138 return self.makeindex(req, tmpl) |