59 def bootstrap(self, cubes, automatic=False, inputlevel=0): |
59 def bootstrap(self, cubes, automatic=False, inputlevel=0): |
60 serverctl.RepositoryCreateHandler.bootstrap(self, cubes, automatic, inputlevel) |
60 serverctl.RepositoryCreateHandler.bootstrap(self, cubes, automatic, inputlevel) |
61 # Call WebCreateHandler.bootstrap to prompt about get anonymous-user. |
61 # Call WebCreateHandler.bootstrap to prompt about get anonymous-user. |
62 WebCreateHandler.bootstrap(self, cubes, automatic, inputlevel) |
62 WebCreateHandler.bootstrap(self, cubes, automatic, inputlevel) |
63 self.config.write_development_ini(cubes) |
63 self.config.write_development_ini(cubes) |
|
64 |
|
65 |
|
66 class AllInOneCreateHandler(serverctl.RepositoryCreateHandler, |
|
67 WebCreateHandler): |
|
68 """configuration to get an instance running in a Pyramid web server |
|
69 integrating a repository server in the same process |
|
70 """ |
|
71 cfgname = 'all-in-one' |
|
72 |
|
73 def bootstrap(self, cubes, automatic=False, inputlevel=0): |
|
74 """bootstrap this configuration""" |
|
75 serverctl.RepositoryCreateHandler.bootstrap(self, cubes, automatic, inputlevel) |
|
76 WebCreateHandler.bootstrap(self, cubes, automatic, inputlevel) |
|
77 # TODO: write pyramid.ini file |
64 |
78 |
65 |
79 |
66 class PyramidStartHandler(InstanceCommand): |
80 class PyramidStartHandler(InstanceCommand): |
67 """Start an interactive pyramid server. |
81 """Start an interactive pyramid server. |
68 |
82 |