def __call__(self): guessed_cgi = path_find_w_default(SRC_PATHS_CGI) guessed_data = path_find_w_default(SRC_PATHS_DATA) guessed_arch = path_find_w_default(SRC_PATHS_ARCH) guessed_imgs = path_find_w_default(SRC_PATHS_IMGS) table = CTK.PropsTable() table.Add( _('Mailman CGI directory'), CTK.TextCfg('%s!mailman_cgi_dir' % (PREFIX), False, {'value': guessed_cgi}), _(NOTE_LOCAL_CGI_DIR)) table.Add( _('Mailman Data directory'), CTK.TextCfg('%s!mailman_data_dir' % (PREFIX), False, {'value': guessed_data}), _(NOTE_LOCAL_DATA_DIR)) table.Add( _('Mail Archive directory'), CTK.TextCfg('%s!mailman_arch_dir' % (PREFIX), False, {'value': guessed_arch}), _(NOTE_LOCAL_ARCH_DIR)) table.Add( _('Mail Images directory'), CTK.TextCfg('%s!mailman_imgs_dir' % (PREFIX), False, {'value': guessed_imgs}), _(NOTE_LOCAL_IMGS_DIR)) submit = CTK.Submitter(URL_APPLY) submit += table cont = CTK.Container() cont += CTK.RawHTML('<h2>%s</h2>' % (_(NOTE_LOCAL_H1))) cont += submit cont += CTK.DruidButtonsPanel_PrevNext_Auto() return cont.Render().toStr()
def __call__(self): # Trim deployment options if needed if not path_find_binary(DEFAULT_BINS): RAILS_METHOD.remove(('fcgi', 'FastCGI')) submit = CTK.Submitter(URL_APPLY) table = CTK.PropsTable() submit += table table.Add(_('Project Directory'), CTK.TextCfg('%s!ror_dir' % (PREFIX), False), _(NOTE_ROR_DIR)) table.Add( _('RAILS_ENV environment'), CTK.ComboCfg('%s!ror_env' % (PREFIX), trans_options(RAILS_ENV), {'class': 'noauto'}), _(NOTE_ENV)) if len(RAILS_METHOD) > 1: table.Add( _('Deployment method'), CTK.ComboCfg('%s!ror_method' % (PREFIX), trans_options(RAILS_METHOD), {'class': 'noauto'}), _(NOTE_METHOD)) else: submit += CTK.Hidden('%s!ror_method' % (PREFIX), RAILS_METHOD[0][0]) cont = CTK.Container() cont += CTK.RawHTML('<h2>%s</h2>' % (_(NOTE_LOCAL_H1))) cont += submit cont += CTK.DruidButtonsPanel_PrevNext_Auto() return cont.Render().toStr()
def __call__ (self): table = CTK.PropsTable() table.Add (_('Document Root'), CTK.TextCfg ('%s!droot'%(CFG_PREFIX), False, {'value': '/var/www'}), _(NOTE_LOCAL_DIR)) submit = CTK.Submitter (URL_APPLY) submit += table cont = CTK.Container() cont += CTK.RawHTML ('<h2>%s</h2>' %(_(NOTE_LOCAL_H1))) cont += submit cont += CTK.DruidButtonsPanel_PrevNext_Auto() return cont.Render().toStr()
def __call__ (self): table = CTK.PropsTable() table.Add (_('Django Local Directory'), CTK.TextCfg ('%s!django_dir'%(PREFIX), False), _(NOTE_LOCAL_DIR)) submit = CTK.Submitter (URL_APPLY) submit += table cont = CTK.Container() cont += CTK.RawHTML ('<h2>%s</h2>' %(_(NOTE_LOCAL_H1))) cont += submit cont += CTK.DruidButtonsPanel_PrevNext_Auto() return cont.Render().toStr()
def __call__ (self): table = CTK.PropsTable() table.Add (_('Host'), CTK.TextCfg ('%s!new_source'%(PREFIX), False, {'value':"127.0.0.1:8500"}), _(NOTE_SOURCE)) submit = CTK.Submitter (URL_APPLY) submit += table cont = CTK.Container() cont += CTK.RawHTML ('<h2>%s</h2>' %(_(NOTE_COMMON_H1))) cont += submit cont += CTK.DruidButtonsPanel_PrevNext_Auto() return cont.Render().toStr()
def __call__ (self): table = CTK.PropsTable() table.Add (_('Source host'), CTK.TextCfg ('%s!new_src_host'%(PREFIX), False, {'value':'localhost'}), _(NOTE_COMMON_SRC)) table.Add (_('Source port'), CTK.TextCfg ('%s!new_src_port'%(PREFIX), False, {'value':8080}), _(NOTE_COMMON_PRT)) submit = CTK.Submitter (URL_APPLY) submit += table cont = CTK.Container() cont += CTK.RawHTML ('<h2>%s</h2>' %(_(NOTE_COMMON_H1))) cont += submit cont += CTK.DruidButtonsPanel_PrevNext_Auto() return cont.Render().toStr()
def __call__ (self): guessed_src = path_find_w_default (SRC_PATHS) table = CTK.PropsTable() table.Add (_('Source Directory'), CTK.TextCfg ('%s!sources'%(PREFIX), False, {'value': guessed_src}), _(NOTE_LOCAL_DIR)) submit = CTK.Submitter (URL_APPLY) submit += table cont = CTK.Container() cont += CTK.RawHTML ('<h2>%s</h2>' %(_(NOTE_LOCAL_H1))) cont += submit cont += CTK.DruidButtonsPanel_PrevNext_Auto() return cont.Render().toStr()
def __call__(self): uwsgi_binary = find_uwsgi_binary() table = CTK.PropsTable() if not uwsgi_binary: table.Add(_('uWSGI binary'), CTK.TextCfg('%s!uwsgi_binary' % (PREFIX), False), _(NOTE_UWSGI_BINARY)) table.Add(_('Configuration File'), CTK.TextCfg('%s!uwsgi_cfg' % (PREFIX), False), _(NOTE_UWSGI_CONFIG)) submit = CTK.Submitter(URL_APPLY) submit += table cont = CTK.Container() cont += CTK.RawHTML('<h2>%s</h2>' % (_(NOTE_LOCAL_H1))) cont += submit cont += CTK.DruidButtonsPanel_PrevNext_Auto() return cont.Render().toStr()
def __call__(self): mono_bin = path_find_binary(DEFAULT_BINS, extra_dirs=DEFAULT_PATHS) table = CTK.PropsTable() table.Add(_('Project Directory'), CTK.TextCfg('%s!mono_dir' % (PREFIX), False), _(NOTE_MONO_DIR)) if not mono_bin: table.Add(_('Mono Server Binary'), CTK.TextCfg('%s!mono_bin' % (PREFIX), False), _(NOTE_MONO_BIN)) submit = CTK.Submitter(URL_APPLY) submit += table cont = CTK.Container() cont += CTK.RawHTML('<h2>%s</h2>' % (_(NOTE_LOCAL_H1))) cont += submit cont += CTK.DruidButtonsPanel_PrevNext_Auto() return cont.Render().toStr()
def Render(self): render = Phase.Render(self) render += CTK.DruidButtonsPanel_PrevNext_Auto().Render() return render