Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

fix indentation level for Jinja2ProjectTemplate in scaffolds/__init__.py #27

Merged
merged 1 commit into from

3 participants

Bruno Binet Tres Seaver Domen Kožar
Bruno Binet

Note that this change has not been tested, but I think it makes sense because if paste_script_template_renderer and PyramidTemplate can be found, Jinja2ProjectTemplate will not be defined.

Tres Seaver
Owner

The patch looks correct to me (note I don't use Jinja).

I do wonder about the staticmethod() wrapped around None (the nested try:..except:), but it seems that is borked either way.

Domen Kožar iElectric merged commit 26d4a66 into from
Domen Kožar
Owner

staticmethod(None) seems to work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This page is out of date. Refresh to see the latest.
Showing with 4 additions and 4 deletions.
  1. +4 −4 pyramid_jinja2/scaffolds/__init__.py
8 pyramid_jinja2/scaffolds/__init__.py
View
@@ -11,7 +11,7 @@
paste_script_template_renderer = None
from pyramid.scaffolds import PyramidTemplate
- class Jinja2ProjectTemplate(PyramidTemplate):
- _template_dir = 'jinja2_starter'
- summary = 'pyramid jinja2 starter project'
- template_renderer = staticmethod(paste_script_template_renderer)
+class Jinja2ProjectTemplate(PyramidTemplate):
+ _template_dir = 'jinja2_starter'
+ summary = 'pyramid jinja2 starter project'
+ template_renderer = staticmethod(paste_script_template_renderer)
Something went wrong with that request. Please try again.