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.
--- 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'