equal
deleted
inserted
replaced
155 |
155 |
156 def renderHTTP(self, ctx): |
156 def renderHTTP(self, ctx): |
157 """ |
157 """ |
158 Force content type to fit with SVG |
158 Force content type to fit with SVG |
159 """ |
159 """ |
160 req = inevow.IRequest(ctx) |
160 req = ctx.locate(inevow.IRequest) |
161 req.setHeader('Content-type', 'application/xhtml+xml') |
161 req.setHeader('Content-type', 'application/xhtml+xml') |
162 return super(WebInterface, self).renderHTTP(ctx) |
162 return super(WebInterface, self).renderHTTP(ctx) |
163 |
163 |
164 def render_MainPage(self, ctx, data): |
164 def render_MainPage(self, ctx, data): |
165 f = self.MainPage |
165 f = self.MainPage |