Changeset 5280

Show
Ignore:
Timestamp:
08/28/08 00:38:28 (4 months ago)
Author:
mramm
Message:

pylons.h import cleaned up.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/tg/render.py

    r5199 r5280  
    1 from pylons import app_globals, config, h, session, tmpl_context, request, response 
    2 import pylons.templating as templating 
     1from pylons import (app_globals, config, session, tmpl_context, request,  
     2                    response, templating) 
     3from pylons import h as pylons_helpers 
    34import tg 
    45from tg.configuration import Bunch 
     
    119120        ) 
    120121         
    121     helpers = h=config.get('pylons.h') or h._current_obj() 
     122    helpers = config.get('pylons.h') or pylons_helpers._current_obj() 
    122123     
    123124    root_vars = Bunch( 
     
    131132        ) 
    132133    return root_vars 
     134     
     135def genshi_template_loader(): 
     136    pass 
    133137 
    134138def render(template_vars, template_engine=None, template_name=None, **kwargs):