Feature request #3212
Add to the action the choice of Python but getting the code from a file
Status: | Closed | ||
---|---|---|---|
Priority: | Low | ||
Assignee: | - | ||
Category: | GUI | ||
Pull Request or Patch supplied: | No | Resolution: | worksforme |
Easy fix?: | No | Copied to github as #: | 13272 |
Description
In the action setting,
actually the python is usable only inserting directly the python code.
But this deny the possible to use a very complex python code to do some very powerful action. Like create a specific form window, import some modules and to do more elaborations.
So would be good to add the choice to link an action to a
file with python code and passing it the parameters needed to do the action.
History
#1 Updated by Cyrus Hiatt about 13 years ago
If I understand correctly, I think this can already be done. I use the following action in QGIS 1.7.0 to call a python script which writes field values out to a text file:
"C://Python26//python.exe" "E://Temp//my_action.py " %field_name
#2 Updated by Giovanni Manghi about 13 years ago
- Pull Request or Patch supplied set to No
- Assignee deleted (
nobody -) - Status changed from Open to Feedback
Please leave feedback after checking if it works already as commented by Cyrus Hiatt
#3 Updated by Giovanni Manghi almost 13 years ago
- Target version changed from Version 1.7.0 to Version 1.7.4
#4 Updated by Giovanni Manghi almost 13 years ago
- Status changed from Feedback to Closed
- Resolution set to worksforme
Closing for lack of feedback. Reopen if necessary.