Executes the given python expression and returns the standardoutput.
The Globals known from python macros are not accessible in this context.
Neighter macro or page nor the globals known from python macros are
accessible in this context. Only stuff we initialized in site.py
can be used.
Namespace: umbraco
Assembly: umbraco (in umbraco)
Version: 1.0.2698.41384
Syntax
| Visual Basic (Declaration) |
|---|
Public Shared Function PythonExecute ( _ expression As String _ ) As String |
| C# |
|---|
public static string PythonExecute ( string expression ) |
| Visual C++ |
|---|
public: static String^ PythonExecute ( String^ expression ) |
Parameters
- expression
- System.String
Python expression to execute