Browse Source

Dropped debug code and fixed imports.

Ralfp 12 years ago
parent
commit
5bab01def0
3 changed files with 2 additions and 3 deletions
  1. 1 1
      misago/template/loader.py
  2. 0 1
      misago/template/middlewares.py
  3. 1 1
      misago/template/theme.py

+ 1 - 1
misago/template/loader.py

@@ -1,5 +1,5 @@
 from django.template.loader import render_to_string as django_render_to_string
-from misago.template.middleware import process_context
+from misago.template.middlewares import process_context
 from misago.template.theme import prefix_templates
 
 def render_to_string(template_name, dictionary=None, context_instance=None):

+ 0 - 1
misago/template/middlewares.py

@@ -35,7 +35,6 @@ def process_context(templates, dictionary=None, context_instance=None):
     """
     Put template context trough template middlewares
     """
-    print _thread_local.__dict__.keys()
     if _thread_local.misago_template_mutex:
         return context
     _thread_local.misago_template_mutex = True

+ 1 - 1
misago/template/theme.py

@@ -14,7 +14,7 @@ def activate_theme(theme):
         raise ValueError('"%s" is not correct theme name.' % theme)
     if theme[0] == '_':
         raise ValueError('"%s" is a template package, not a theme.' % theme[1:])
-    print _thread_local.__dict__.keys()
+    
     _thread_local.misago_theme = theme;
     _thread_local.misago_template_mutex = False