/usr/share/paster_templates/pylons/controller.py_tmpl is in python-pylons 1.0.1-3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | import logging
from pylons import request, response, session, tmpl_context as c, url
from pylons.controllers.util import abort, redirect
{{importstatement}}
log = logging.getLogger(__name__)
class {{name}}Controller(BaseController):
def index(self):
# Return a rendered template
#return render('/{{tmpl_name}}.mako')
# or, return a string
return 'Hello World'
|