def edit_tinymce_field(step, language, field_name, model): translation_form = world.find_translation_form(language, model) formatted_field_name = world.format_field_name(field_name) field_id = "id_%s-%s" % (translation_form['id'], formatted_field_name) # HACK: Disable TinyMCE because splinter can't yet deal with it world.browser.execute_script("tinyMCE.getInstanceById('%s').remove()" % field_id) world.browser.fill("%s-%s" % (translation_form['id'], formatted_field_name), step.multiline) world.set_changed(model, formatted_field_name)
def edit_tinymce_field(step, language, field_name, model): translation_form = world.find_translation_form(language, model) formatted_field_name = world.format_field_name(field_name) field_id = "id_%s-%s" % (translation_form['id'], formatted_field_name) # HACK: Disable TinyMCE because splinter can't yet deal with it world.browser.execute_script("tinyMCE.getInstanceById('%s').remove()" % field_id) world.browser.fill( "%s-%s" % (translation_form['id'], formatted_field_name), step.multiline) world.set_changed(model, formatted_field_name)
def edit_translation_field_long(step, language, field_name, model): translation_form = world.find_translation_form(language, model) formatted_field_name = world.format_field_name(field_name) world.browser.fill("%s-%s" % (translation_form['id'], formatted_field_name), step.multiline)
def edit_translation_field(step, language, field_name, model, field_value): translation_form = world.find_translation_form(language, model) formatted_field_name = world.format_field_name(field_name) world.browser.fill("%s-%s" % (translation_form['id'], formatted_field_name), field_value)
def edit_translation_field_long(step, language, field_name, model): translation_form = world.find_translation_form(language, model) formatted_field_name = world.format_field_name(field_name) world.browser.fill( "%s-%s" % (translation_form['id'], formatted_field_name), step.multiline)
def edit_translation_field(step, language, field_name, model, field_value): translation_form = world.find_translation_form(language, model) formatted_field_name = world.format_field_name(field_name) world.browser.fill( "%s-%s" % (translation_form['id'], formatted_field_name), field_value)