Skip to content
This repository

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

Merged
merged 1 commit into from 5 months ago

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
tseaver commented May 30, 2012

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 November 08, 2013
Domen Kožar iElectric closed this November 08, 2013
Domen Kožar
Collaborator

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 1 changed file with 4 additions and 4 deletions. Show diff stats Hide diff stats

  1. 8  pyramid_jinja2/scaffolds/__init__.py
8  pyramid_jinja2/scaffolds/__init__.py
@@ -11,7 +11,7 @@
11 11
         paste_script_template_renderer = None
12 12
         from pyramid.scaffolds import PyramidTemplate
13 13
 
14  
-    class Jinja2ProjectTemplate(PyramidTemplate):
15  
-        _template_dir = 'jinja2_starter'
16  
-        summary = 'pyramid jinja2 starter project'
17  
-        template_renderer = staticmethod(paste_script_template_renderer)
  14
+class Jinja2ProjectTemplate(PyramidTemplate):
  15
+    _template_dir = 'jinja2_starter'
  16
+    summary = 'pyramid jinja2 starter project'
  17
+    template_renderer = staticmethod(paste_script_template_renderer)
Commit_comment_tip

Tip: You can add notes to lines in a file. Hover to the left of a line to make a note

Something went wrong with that request. Please try again.