Fetching scripts
Jump to navigation
Jump to search
Overview
I'm considering building in a mechanism for automatically fetching scripts from PyMOLWiki. The goal is to allow users to say
fetch findSurfaceResidues, type=script
findSurfaceResidues doShow=True, cutoff=0.5
The convenience benefits are obvious, and I think that lowering the barrier to script usage will greatly increase both the number of people who use various scripts and the incentive to place scripts on the wiki.
Issues
Security
Running untrusted code is trouble. Some ideas
- We could have a page that only administrators are allowed to edit that links to approved scripts
- We should print a warning each time a new script is fetched anyway
- Can fetched scripts persist across saved sessions? Perhaps not.
Validation
- How will users know that their script is doing the correct thing
- Perhaps we should have two classes of scripts: approved and validated