Skip to content
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

Executor Plugin: Improvements and fixes #776

Merged
merged 16 commits into from
Jul 13, 2023

Conversation

onkelandy
Copy link
Member

Major fix for autocomplete
Performance improvements (loading autocomplete takes 15s for me and blocked the webif..)
Sorting option for saved files

…hs are available instead of (non existing) item name references
…e functions. Now the plugin can be used immediately without having to wait for fetching the autocomplete dict.
@onkelandy onkelandy requested a review from bmxp July 8, 2023 22:40
@bmxp
Copy link
Member

bmxp commented Jul 9, 2023

It looks fine, just go ahead and merge it. Thank you for the improvements!

@bmxp
Copy link
Member

bmxp commented Jul 9, 2023

Maybe we can find a convenient way to deliver some sample skripts as well. Do you have an idea? Maybe a subdir within the plugin folder which will be merged into the list and that are readonly and colorized within the list?

@onkelandy
Copy link
Member Author

Including "standard" examples in a sub-dir sounds fine for me. Also the idea of putting them in the list with different color (grey?, maybe italic font?). Just the 3 examples from the documentation?

@@ -16,7 +16,7 @@ executor
Einführung
~~~~~~~~~~

Das executor plugin kann genutzt werden, um **Python Code** (z.B. für **Logiken**) und **eval Ausdrücke** zu testen.
Das executor Plugin kann genutzt werden, um **Python Code** (z.B. für **Logiken**) und **eval Ausdrücke** zu testen.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Das mit den eval Ausdrücken kann raus, die sind ja im Admin Interface bereits implementiert.

@@ -197,7 +197,7 @@ def eval_statement(self, eline, path, reload=None):
def exec_code(self, eline, reload=None):
"""
evaluate a whole python block in eline

:return: result of the evaluation
"""
result = ""
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

der stub_logger müsste noch um neuere methoden wie notice etc. erweitert werden...

@onkelandy onkelandy merged commit 8e31d75 into smarthomeNG:develop Jul 13, 2023
5 checks passed
@onkelandy onkelandy deleted the executor branch July 13, 2023 20:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants