-
Notifications
You must be signed in to change notification settings - Fork 100
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
Changes from 7 commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
e8385cd
executor plugin: fix major issue with autocomplete. Now full item pat…
onkelandy 5e1fe2c
executor plugin: allow sorting of saved files, minor code improvements
onkelandy 8195163
executor plugin: re-write autocomplete method using worker and promis…
onkelandy 50a17eb
executor plugin: fix autocomplete dict. Previously (sub)items called …
onkelandy 5078592
executor plugin: fix and extend user_doc
onkelandy 1ba38c9
Executor Plugin: bump version
onkelandy f97d792
executor plugin: introduce popper.js tooltips for sorting
onkelandy 25b5417
executor plugin: add two database example scripts
onkelandy f1df7d6
executor plugin: introduce example scripts that can be loaded in the …
onkelandy 81326c1
executor plugin: change order of file list
onkelandy dbeb644
executor plugin: update user_doc
onkelandy 24b3c98
executor plugin: add new log levels such as notice, dbglow, etc.
onkelandy 231f5ac
executor plugin: improve button enable/disable
onkelandy c62414e
executor plugin: add additional examples
onkelandy c4a46c5
executor plugin: minor adjustment for button disable/input field clea…
onkelandy e23bf29
executor plugin: fix check_items example
onkelandy File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -48,7 +48,7 @@ | |
import csv | ||
from jinja2 import Environment, FileSystemLoader | ||
|
||
import sys | ||
import sys | ||
|
||
class PrintCapture: | ||
"""this class overwrites stdout and stderr temporarily to capture output""" | ||
|
@@ -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 = "" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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... |
||
|
@@ -284,7 +284,7 @@ def delete_file(self, filename=''): | |
@cherrypy.expose | ||
def get_filelist(self): | ||
"""returns all filenames from the defined script path with suffix ``.py``""" | ||
|
||
if self.plugin.executor_scripts is not None: | ||
subdir = self.plugin.executor_scripts | ||
self.logger.debug(f"list files in {subdir}") | ||
|
@@ -296,7 +296,7 @@ def get_filelist(self): | |
return files | ||
|
||
return '' | ||
|
||
@cherrypy.expose | ||
def get_autocomplete(self): | ||
_sh = self.plugin.get_sh() | ||
|
@@ -310,11 +310,11 @@ def get_autocomplete(self): | |
if api is not None: | ||
for function in api: | ||
plugin_list.append("sh."+plugin_config_name + "." + function) | ||
|
||
|
||
myItems = _sh.return_items() | ||
itemList = [] | ||
for item in myItems: | ||
itemList.append("sh."+str(item)+"()") | ||
itemList.append("sh."+str(item.property.path)+"()") | ||
retValue = {'items':itemList,'plugins':plugin_list} | ||
return (json.dumps(retValue)) | ||
return (json.dumps(retValue)) |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
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.