# HG changeset patch # User Sylvain Thénault # Date 1258014421 -3600 # Node ID 52cd7432030df1cf97e85ead71bba293fd73edf3 # Parent 7591b89ada232be1130ab29bf30820bf39b90c2b c-c create stopped asking if anonymous access should be activated introduced by 2654:6512522860aa, close #469418 Generic behaviour of WebCreateHandler should be kept for twisted and all-in-one configurations. 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'