Changeset 3252

Show
Ignore:
Timestamp:
07/11/07 21:21:54 (1 year ago)
Author:
fredlin
Message:

template modification reflecting to pylons' changes

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/tg/templates/turbogears/+package+/config/environment.py_tmpl

    r3247 r3252  
    1111    # Pylons paths 
    1212    root = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) 
    13     paths = {'root_path': root, 
     13    paths = {'root': root, 
    1414             'controllers': os.path.join(root, 'controllers'), 
    1515             'templates': [os.path.join(root, 'templates')], 
     
    1717             } 
    1818         
    19     # Initialize the other basic options 
     19    # Initialize config with the basic options 
    2020    config.init_app(global_conf, app_conf, package='${package}',  
    2121                    template_engine='genshi', paths=paths) 
    2222     
    23     config['pylons.map'] = make_map() 
    2423    config['pylons.g'] = app_globals.Globals() 
    2524    config['pylons.h'] = ${package}.lib.helpers 
     25    config['routes.map'] = make_map() 
    2626 
    2727    # Load-up the template options 
  • trunk/tg/templates/turbogears/+package+/controllers/error.py_tmpl

    r3131 r3252  
    2020            'message': request.params.get('message', ''), 
    2121        } 
    22         return Response(page) 
     22        return page 
    2323 
    2424    def img(self, id): 
  • trunk/tg/templates/turbogears/+package+/controllers/template.py_tmpl

    r3247 r3252  
    99         
    1010            def view(self, url): 
    11                 return render_response('/%s' % url) 
     11                return render('/%s' % url) 
    1212             
    1313        Or if you're using Mako and want to explicitly send a 404 (Not Found)  
     
    1818            def view(self, url): 
    1919                try: 
    20                     return render_response('/%s' % url) 
     20                    return render('/%s' % url) 
    2121                except mako.exceptions.TopLevelLookupException: 
    2222                    abort(404) 
  • trunk/tg/templates/turbogears/+package+/templates/index.html

    r3247 r3252  
    3939      <li class="getting_started"> 
    4040        <h3>Build an distribution</h3> 
    41         <p> Build an distribution. </p> 
     41        <p> Build an distribution, Test your source, Generate project documents.</p> 
    4242      </li> 
    4343    </ol>