"""EasyEngine site controller.""" 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' (['-f', '--foo'], dict(help='the notorious foo option', dest='foo', action='store', metavar='TEXT') ), ] @expose(hide=True) def default(self): print "Inside EESiteController.default()." # If using an output handler such as 'mustache', you could also # render a data dictionary using a template. For example: # # data = dict(foo='bar') # self.app.render(data, 'default.mustache') # # # The 'default.mustache' file would be loaded from # ``ee.cli.templates``, or ``/var/lib/ee/templates/``. #