Adding root template dir

This commit is contained in:
BJ Dierkes 2010-01-27 11:44:43 -06:00
parent 54f74db795
commit 430efdeabb
8 changed files with 4 additions and 6 deletions

View File

@ -1,12 +1,12 @@
"""
This is the RootController for the {{package}} application. Usually this
file will remain pretty sparse, however it is a good place for miscellaneous
commands that might night need there own namespace or controller.
commands that might not need there own namespace or controller.
"""
from cement.core.controller import CementController, expose
class RootController(CementController):
@expose('{{package}}.templates.error', is_hidden=True)
@expose('{{package}}.templates.root.error', is_hidden=True)
def error(self, errors={}):
return dict(errors=errors)

View File

@ -1 +0,0 @@
__import__('pkg_resources').declare_namespace(__name__)

View File

@ -1,12 +1,12 @@
"""
This is the RootController for the helloworld application. Usually this
file will remain pretty sparse, however it is a good place for miscellaneous
commands that might night need there own namespace or controller.
commands that might not need there own namespace or controller.
"""
from cement.core.controller import CementController, expose
class RootController(CementController):
@expose('helloworld.templates.error', is_hidden=True)
@expose('helloworld.templates.root.error', is_hidden=True)
def error(self, errors={}):
return dict(errors=errors)

View File

@ -1 +0,0 @@
__import__('pkg_resources').declare_namespace(__name__)