Home | History | Annotate | Download | only in paste

Lines Matching refs:template

84 TEMPLATE = """\
110 2. The template may want to have string-substitutions taken from
131 it is accessible in the template via %(explanation)s
136 the template via %(detail)s
138 ``template``
140 header substitution; the default template includes both
160 To override the template (which is HTML content) or the plain-text
163 into explanation, detail and template allows both the creation of
173 template = "%(explanation)s\r\n<br/>%(detail)s\r\n<!-- %(comment)s -->"
198 def make_body(self, environ, template, escfunc, comment_escfunc=None):
203 if HTTPException.template != self.template:
213 return template % args
217 body = self.make_body(environ, strip_html(self.template), no_quote, comment_quote)
222 body = self.make_body(environ, self.template, html_quote, comment_quote)
223 return TEMPLATE % {
317 template = (
458 # override template since we need an environment variable
459 template = ('The method %(REQUEST_METHOD)s is not allowed for '
465 # override template since we need an environment variable
466 template = ('The resource could not be generated that was '
516 # override template since we need an environment variable
517 template = ('The request media type %(CONTENT_TYPE)s is not '
568 # override template since we need an environment variable
569 template = ('The request method %(REQUEST_METHOD)s is not implemented '