equal
deleted
inserted
replaced
|
1 """cubicweb-ctl commands and command handlers common to twisted/modpython |
|
2 web configuration |
|
3 |
|
4 :organization: Logilab |
|
5 :copyright: 2001-2008 LOGILAB S.A. (Paris, FRANCE), all rights reserved. |
|
6 :contact: http://www.logilab.fr/ -- mailto:contact@logilab.fr |
|
7 """ |
|
8 __docformat__ = "restructuredtext en" |
|
9 |
|
10 from cubicweb.toolsutils import CommandHandler |
|
11 |
|
12 |
|
13 class WebCreateHandler(CommandHandler): |
|
14 cmdname = 'create' |
|
15 |
|
16 def bootstrap(self, cubes, inputlevel=0): |
|
17 """bootstrap this configuration""" |
|
18 print '** generic web configuration' |
|
19 config = self.config |
|
20 if config.repo_method == 'pyro': |
|
21 print |
|
22 print '** repository server configuration' |
|
23 print '-' * 72 |
|
24 config.input_config('pyro-client', inputlevel) |
|
25 |
|
26 def postcreate(self): |
|
27 """hooks called once application's initialization has been completed""" |
|
28 |