diff --git a/cement/paste/templates/cementapp/+package+/controllers/root.py_tmpl b/cement/paste/templates/cementapp/+package+/controllers/root.py_tmpl index 8fed60d9..ffce60bf 100644 --- a/cement/paste/templates/cementapp/+package+/controllers/root.py_tmpl +++ b/cement/paste/templates/cementapp/+package+/controllers/root.py_tmpl @@ -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) \ No newline at end of file diff --git a/cement/paste/templates/cementapp/+package+/templates/example/__init__.py b/cement/paste/templates/cementapp/+package+/templates/example/__init__.py index b0d64337..e69de29b 100644 --- a/cement/paste/templates/cementapp/+package+/templates/example/__init__.py +++ b/cement/paste/templates/cementapp/+package+/templates/example/__init__.py @@ -1 +0,0 @@ -__import__('pkg_resources').declare_namespace(__name__) \ No newline at end of file diff --git a/cement/paste/templates/cementapp/+package+/templates/root/__init__.py b/cement/paste/templates/cementapp/+package+/templates/root/__init__.py new file mode 100644 index 00000000..e69de29b diff --git a/cement/paste/templates/cementapp/+package+/templates/error.txt b/cement/paste/templates/cementapp/+package+/templates/root/error.txt similarity index 100% rename from cement/paste/templates/cementapp/+package+/templates/error.txt rename to cement/paste/templates/cementapp/+package+/templates/root/error.txt diff --git a/examples/helloworld/helloworld/controllers/root.py b/examples/helloworld/helloworld/controllers/root.py index e89b35dc..0b7770f5 100644 --- a/examples/helloworld/helloworld/controllers/root.py +++ b/examples/helloworld/helloworld/controllers/root.py @@ -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) \ No newline at end of file diff --git a/examples/helloworld/helloworld/templates/example/__init__.py b/examples/helloworld/helloworld/templates/example/__init__.py index b0d64337..e69de29b 100644 --- a/examples/helloworld/helloworld/templates/example/__init__.py +++ b/examples/helloworld/helloworld/templates/example/__init__.py @@ -1 +0,0 @@ -__import__('pkg_resources').declare_namespace(__name__) \ No newline at end of file diff --git a/examples/helloworld/helloworld/templates/root/__init__.py b/examples/helloworld/helloworld/templates/root/__init__.py new file mode 100644 index 00000000..e69de29b diff --git a/examples/helloworld/helloworld/templates/error.txt b/examples/helloworld/helloworld/templates/root/error.txt similarity index 100% rename from examples/helloworld/helloworld/templates/error.txt rename to examples/helloworld/helloworld/templates/root/error.txt