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

Python expressions support #267

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

JanCaha
Copy link

@JanCaha JanCaha commented Jul 31, 2022

This PR adds support for handling python expressions, which are so far not supported by the plugin. The expressions should be stored in python_expressions folder under collection, to separate them from other stuff. The expressions are copied into user folder python/expressions.

I see this PR more as a discussion start, about how this should be handled.

There is a potential security issue as the python files with expressions are run (or evaluated) to make the expression available for QGIS. Which can be used to slip malicious code to the user. I am not sure, how this should be handled. Any tips for solutions, would be welcomed. Even thought I still think this is a valuable functionality for users.

@Guts Guts self-assigned this Sep 5, 2022
@Guts Guts linked an issue Sep 5, 2022 that may be closed by this pull request
@Guts
Copy link
Contributor

Guts commented Sep 5, 2022

Hello @JanCaha,

Thanks for your interest and sorry about the delay, I wanted to finish #259 before everything else and I was on vacations during summer. I recommend you rebase from master to get the latest quality updates.

Expressions support is a nice addition and requested in #203. To approve your submission, I've have to ask you make the necessary changes to comply with the contributing guidelines please? It's all about tests and docstrings.

Thanks!

@JanCaha
Copy link
Author

JanCaha commented Sep 5, 2022

No problem with adding docstrings and tests ;)

But there is the question of security... Should that be somehow adressed?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add Python expressions support
2 participants