web/webctl.py
author Sandrine Ribeau <sandrine.ribeau@logilab.fr>
Thu, 13 Nov 2008 17:24:59 -0800
changeset 70 f80ac3de185b
parent 0 b97547f5f1fa
child 601 a9e65aff3049
permissions -rw-r--r--
Rename index file from indef.fr.txt to index.txt to dit Sphinx needs and adjusted conf file in consequence. Moved images from fr/ to book/ so that images would be in central location for both en and fr books.

"""cubicweb-ctl commands and command handlers common to twisted/modpython
web configuration

:organization: Logilab
:copyright: 2001-2008 LOGILAB S.A. (Paris, FRANCE), all rights reserved.
:contact: http://www.logilab.fr/ -- mailto:contact@logilab.fr
"""
__docformat__ = "restructuredtext en"

from cubicweb.toolsutils import CommandHandler


class WebCreateHandler(CommandHandler):
    cmdname = 'create'
    
    def bootstrap(self, cubes, inputlevel=0):
        """bootstrap this configuration"""
        print '** generic web configuration'
        config = self.config
        if config.repo_method == 'pyro':
            print
            print '** repository server configuration'
            print '-' * 72
            config.input_config('pyro-client', inputlevel)
    
    def postcreate(self):
        """hooks called once application's initialization has been completed"""