[db creation] fix some bugs introduced by the migration to logilab.database
"""cubicweb-clt handlers for twisted:organization: Logilab:copyright: 2001-2010 LOGILAB S.A. (Paris, FRANCE), license is LGPL v2.:contact: http://www.logilab.fr/ -- mailto:contact@logilab.fr:license: GNU Lesser General Public License, v2.1 - http://www.gnu.org/licenses"""fromcubicweb.toolsutilsimportCommandHandlerfromcubicweb.web.webctlimportWebCreateHandler# trigger configuration registrationimportcubicweb.etwist.twconfig# pylint: disable-msg=W0611classTWCreateHandler(WebCreateHandler):cfgname='twisted'classTWStartHandler(CommandHandler):cmdname='start'cfgname='twisted'defstart_server(self,config,debug):fromcubicweb.etwistimportserverserver.run(config,debug)classTWStopHandler(CommandHandler):cmdname='stop'cfgname='twisted'try:fromcubicweb.serverimportserverctlclassAllInOneCreateHandler(serverctl.RepositoryCreateHandler,TWCreateHandler):"""configuration to get an instance running in a twisted web server integrating a repository server in the same process """cfgname='all-in-one'defbootstrap(self,cubes,inputlevel=0):"""bootstrap this configuration"""serverctl.RepositoryCreateHandler.bootstrap(self,cubes,inputlevel)TWCreateHandler.bootstrap(self,cubes,inputlevel)classAllInOneStartHandler(TWStartHandler):cmdname='start'cfgname='all-in-one'subcommand='cubicweb-twisted'classAllInOneStopHandler(serverctl.RepositoryStopHandler):cmdname='stop'cfgname='all-in-one'subcommand='cubicweb-twisted'exceptImportError:pass