New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Execute extension scripts from settings page #50

Closed
hugbug opened this Issue Jul 10, 2015 · 8 comments

Comments

Projects
None yet
4 participants
@hugbug
Member

hugbug commented Jul 10, 2015

Sometimes it may be helpful to be able to execute extension scripts from settings page. For example pp-script EMail.py could use a button "Send test email". For other scripts something like "Validate settings" or "Cleanup database" may be useful too.

  • provide a way for scripts to define which buttons to put on settings page;
  • when clicking on a button - execute the script;
  • send additional env vars to inform the script that it's running in a special context;
  • pass all (unsaved options) as if they were already saved in order for script to validate or use the (not yet saved) settings;
  • show script's output in a dedicated modal window (similar to the one used for built-in updates).
  • optional: provide a way to terminate the script if it hangs, directly from that new window;
  • extend EMail.py with button "Send test email" as an example of the new functionality;
  • update wiki with a description of the new functionality.

@hugbug hugbug added the feature label Jul 10, 2015

@litfoo

This comment has been minimized.

litfoo commented Oct 3, 2015

I think a 'Test e-mail' function would be very useful too.

@CBers

This comment has been minimized.

CBers commented Oct 21, 2015

Any update when/if this will be implemented please ??

@hugbug

This comment has been minimized.

Member

hugbug commented Oct 21, 2015

That's one of the interesting features for v17.

@CBers

This comment has been minimized.

CBers commented Oct 21, 2015

OK, thanks :)

@sarsipius

This comment has been minimized.

sarsipius commented Oct 23, 2015

Will definitely be a welcome addition.

@CBers

This comment has been minimized.

CBers commented Aug 22, 2016

Just updated to v17 stable, but can't see the test email option in the EMAIL page ??

Did it not make the release ??

@hugbug

This comment has been minimized.

Member

hugbug commented Aug 22, 2016

No, it's not. Sorry for that.
Other things were more important at that time.

@CBers

This comment has been minimized.

CBers commented Aug 22, 2016

No worries.

A future release perhaps ??

hugbug added a commit that referenced this issue Mar 20, 2017

#50: execute custom commands for scripts
New API-method “startscript”.

hugbug added a commit that referenced this issue Mar 20, 2017

#50: progress dialog for script execution log
New API-method “logscript”.

@hugbug hugbug added this to the v19 milestone Mar 20, 2017

@hugbug hugbug closed this Mar 31, 2017

hugbug added a commit that referenced this issue Apr 12, 2017

#50: clear script execution log
before executing script

hugbug added a commit that referenced this issue Oct 9, 2017

#50: execute custom commands for scripts
New API-method “startscript”.

hugbug added a commit that referenced this issue Oct 9, 2017

#50: progress dialog for script execution log
New API-method “logscript”.

hugbug added a commit that referenced this issue Oct 9, 2017

#50: clear script execution log
before executing script
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment