From dd3b143a5fc6b4dbc36ed4c9714471b6a62dfed8 Mon Sep 17 00:00:00 2001 From: gau1991 Date: Tue, 2 Dec 2014 12:09:35 +0530 Subject: [PATCH] Fixed Controller are not working --- ee/cli/bootstrap.py | 2 ++ ee/cli/controllers/site.py | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/ee/cli/bootstrap.py b/ee/cli/bootstrap.py index 86fd4047..8364e54f 100644 --- a/ee/cli/bootstrap.py +++ b/ee/cli/bootstrap.py @@ -5,6 +5,8 @@ from cement.core import handler from ee.cli.controllers.base import EEBaseController +from ee.cli.controllers.site import EESiteController def load(app): handler.register(EEBaseController) + handler.register(EESiteController) diff --git a/ee/cli/controllers/site.py b/ee/cli/controllers/site.py index 4c691110..277f69f2 100644 --- a/ee/cli/controllers/site.py +++ b/ee/cli/controllers/site.py @@ -5,10 +5,10 @@ from cement.core.controller import CementBaseController, expose class EESiteController(CementBaseController): class Meta: label = 'site' - interface = controller.IController stacked_on = 'base' stacked_type = 'nested' description = 'site command manges website configuration with the help of the following subcommands' + arguments = [ (['-f', '--foo'], dict(help='the notorious foo option', dest='foo', action='store', metavar='TEXT') ), @@ -16,7 +16,7 @@ class EESiteController(CementBaseController): @expose(hide=True) def default(self): - print "Inside EESiteController.default()." + print("Inside EESiteController.default().") # If using an output handler such as 'mustache', you could also # render a data dictionary using a template. For example: