@Override public void doHelp(StaplerRequest req, StaplerResponse rsp) throws IOException, ServletException { initPython(); if (pexec.isImplemented(27)) { pexec.execPythonVoid("do_help", req, rsp); } else { super.doHelp(req, rsp); } }
@Override public synchronized void load() { initPython(); if (pexec.isImplemented(24)) { pexec.execPythonVoid("load"); } else { super.load(); } }
@Override public synchronized void save() { initPython(); if (pexec.isImplemented(23)) { pexec.execPythonVoid("save"); } else { super.save(); } }
@Override public void calcAutoCompleteSettings(String field, Map<String, Object> attributes) { initPython(); if (pexec.isImplemented(6)) { pexec.execPythonVoid("calc_auto_complete_settings", field, attributes); } else { super.calcAutoCompleteSettings(field, attributes); } }
@Override public void calcFillSettings(String field, Map<String, Object> attributes) { initPython(); if (pexec.isImplemented(5)) { pexec.execPythonVoid("calc_fill_settings", field, attributes); } else { super.calcFillSettings(field, attributes); } }
@Override public void addHelpFileRedirect( String fieldName, Class<? extends Describable> owner, String fieldNameToRedirectTo) { initPython(); if (pexec.isImplemented(17)) { pexec.execPythonVoid("add_help_file_redirect", fieldName, owner, fieldNameToRedirectTo); } else { super.addHelpFileRedirect(fieldName, owner, fieldNameToRedirectTo); } }
public void execPythonVoid(String function, Object... params) { initPython(); pexec.execPythonVoid(function, params); }