Scribus
Open source desktop publishing at your fingertips
permitdlg Namespace Reference

Classes

class  PermitDialog
 

Functions

def ask (filename, problems)
 

Variables

tuple problems = safe_eval.checkCode(open("permitdlg.py").read())
 
tuple app = QApplication(sys.argv)
 

Detailed Description

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 scripter_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

Function Documentation

def permitdlg.ask (   filename,
  problems 
)
Use this fuction