20#ifndef KROSS_PYTHON_SECURITY_H
21#define KROSS_PYTHON_SECURITY_H
23#include "pythonconfig.h"
85 PyObject* compile_restricted( const TQString& source, const TQString& filename, const TQString& mode);
89 void compile_restricted_function( const Py::Tuple& args, const TQString& body, const TQString& name, const TQString& filename, const Py::Object& globalize = Py::None());
90 void compile_restricted_exec( const TQString& source, const TQString& filename = "<string>");
91 void compile_restricted_eval( const TQString& source, const TQString& filename = "<string>");
98 Py::Module* m_pymodule;
101 inline void initRestrictedPython();
104 Py::Object _getattr_( const Py::Tuple&);
Python interpreter bridge.
PyObject * compile_restricted(const TQString &source, const TQString &filename, const TQString &mode) Compile python scripting code and return a restricted code object.
virtual ~PythonSecurity() Destructor.
PythonSecurity(PythonInterpreter *interpreter) Constructor.
The Python plugin for the Kross scripting framework.
The Kross scripting bridge to embed scripting functionality into an application.
|