Changeset 3252
- Timestamp:
- 07/11/07 21:21:54 (1 year ago)
- Files:
-
- trunk/tg/templates/turbogears/+package+/config/environment.py_tmpl (modified) (2 diffs)
- trunk/tg/templates/turbogears/+package+/controllers/error.py_tmpl (modified) (1 diff)
- trunk/tg/templates/turbogears/+package+/controllers/template.py_tmpl (modified) (2 diffs)
- trunk/tg/templates/turbogears/+package+/templates/index.html (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/tg/templates/turbogears/+package+/config/environment.py_tmpl
r3247 r3252 11 11 # Pylons paths 12 12 root = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) 13 paths = {'root _path': root,13 paths = {'root': root, 14 14 'controllers': os.path.join(root, 'controllers'), 15 15 'templates': [os.path.join(root, 'templates')], … … 17 17 } 18 18 19 # Initialize the otherbasic options19 # Initialize config with the basic options 20 20 config.init_app(global_conf, app_conf, package='${package}', 21 21 template_engine='genshi', paths=paths) 22 22 23 config['pylons.map'] = make_map()24 23 config['pylons.g'] = app_globals.Globals() 25 24 config['pylons.h'] = ${package}.lib.helpers 25 config['routes.map'] = make_map() 26 26 27 27 # Load-up the template options trunk/tg/templates/turbogears/+package+/controllers/error.py_tmpl
r3131 r3252 20 20 'message': request.params.get('message', ''), 21 21 } 22 return Response(page)22 return page 23 23 24 24 def img(self, id): trunk/tg/templates/turbogears/+package+/controllers/template.py_tmpl
r3247 r3252 9 9 10 10 def view(self, url): 11 return render _response('/%s' % url)11 return render('/%s' % url) 12 12 13 13 Or if you're using Mako and want to explicitly send a 404 (Not Found) … … 18 18 def view(self, url): 19 19 try: 20 return render _response('/%s' % url)20 return render('/%s' % url) 21 21 except mako.exceptions.TopLevelLookupException: 22 22 abort(404) trunk/tg/templates/turbogears/+package+/templates/index.html
r3247 r3252 39 39 <li class="getting_started"> 40 40 <h3>Build an distribution</h3> 41 <p> Build an distribution .</p>41 <p> Build an distribution, Test your source, Generate project documents.</p> 42 42 </li> 43 43 </ol>