equal
deleted
inserted
replaced
387 print '\n' + underline_title('%s options' % section) |
387 print '\n' + underline_title('%s options' % section) |
388 config.input_config(section, self.config.config_level) |
388 config.input_config(section, self.config.config_level) |
389 # write down configuration |
389 # write down configuration |
390 config.save() |
390 config.save() |
391 self._handle_win32(config, appid) |
391 self._handle_win32(config, appid) |
392 print '-> generated %s' % config.main_config_file() |
392 print '-> generated config %s' % config.main_config_file() |
393 # handle i18n files structure |
393 # handle i18n files structure |
394 # in the first cube given |
394 # in the first cube given |
395 print '-> preparing i18n catalogs' |
|
396 from cubicweb import i18n |
395 from cubicweb import i18n |
397 langs = [lang for lang, _ in i18n.available_catalogs(join(templdirs[0], 'i18n'))] |
396 langs = [lang for lang, _ in i18n.available_catalogs(join(templdirs[0], 'i18n'))] |
398 errors = config.i18ncompile(langs) |
397 errors = config.i18ncompile(langs) |
399 if errors: |
398 if errors: |
400 print '\n'.join(errors) |
399 print '\n'.join(errors) |
410 if config['uid']: |
409 if config['uid']: |
411 from logilab.common.shellutils import chown |
410 from logilab.common.shellutils import chown |
412 # this directory should be owned by the uid of the server process |
411 # this directory should be owned by the uid of the server process |
413 print 'set %s as owner of the data directory' % config['uid'] |
412 print 'set %s as owner of the data directory' % config['uid'] |
414 chown(config.appdatahome, config['uid']) |
413 chown(config.appdatahome, config['uid']) |
415 print '\n-> creation done for %r.\n' % config.apphome |
414 print '\n-> creation done for %s\n' % repr(config.apphome)[1:-1] |
416 helper.postcreate(self.config.automatic) |
415 helper.postcreate(self.config.automatic) |
417 |
416 |
418 def _handle_win32(self, config, appid): |
417 def _handle_win32(self, config, appid): |
419 if sys.platform != 'win32': |
418 if sys.platform != 'win32': |
420 return |
419 return |