diff -r 7591b89ada23 -r 52cd7432030d etwist/twctl.py --- a/etwist/twctl.py Thu Nov 12 09:08:00 2009 +0100 +++ b/etwist/twctl.py Thu Nov 12 09:27:01 2009 +0100 @@ -10,10 +10,14 @@ from cubicweb import underline_title from cubicweb.toolsutils import CommandHandler +from cubicweb.web.webctl import WebCreateHandler # trigger configuration registration import cubicweb.etwist.twconfig # pylint: disable-msg=W0611 +class TWCreateHandler(WebCreateHandler): + cfgname = 'twisted' + class TWStartHandler(CommandHandler): cmdname = 'start' cfgname = 'twisted' @@ -29,8 +33,10 @@ try: from cubicweb.server import serverctl - - class AllInOneCreateHandler(serverctl.RepositoryCreateHandler): + from cubicweb.server import serverctl + WebCreateHandler + class AllInOneCreateHandler(serverctl.RepositoryCreateHandler, + TWCreateHandler): """configuration to get an instance running in a twisted web server integrating a repository server in the same process """ @@ -39,6 +45,7 @@ def bootstrap(self, cubes, inputlevel=0): """bootstrap this configuration""" serverctl.RepositoryCreateHandler.bootstrap(self, cubes, inputlevel) + TWCreateHandler.bootstrap(self, cubes, inputlevel) class AllInOneStartHandler(TWStartHandler): cmdname = 'start'