Module permitdlg
[hide private]
[frames] | no frames]

Module permitdlg

source code

Simple dialog which asks if you want to allow or deny execution of a script. A list of possible problems is show. The analysis is done in safe_eval which is called from scripterng_runtime like this module.

BTW, safe_eval is great module by Jeremy Sanders used inside Veusz. It only allows a very small subset of Python which is considered safe.

XXX: Perhaps refactor some external functionality into this module

Classes [hide private]
  PermitDialog
Functions [hide private]
 
ask(filename, problems)
Use this fuction
source code