Add support for config map to Python job API.

Rename PythonJobHelper ==> CalamaresPython::Helper.
Add QVariant to boost::python::object conversion functions.
Rename some constants in the libcalamares Python API.
This commit is contained in:
Teo Mrnjavac 2014-07-18 14:27:59 +02:00
parent 2f03dfa43b
commit d9f4c74537
9 changed files with 91 additions and 27 deletions

View file

@ -18,25 +18,17 @@
#include "PythonJobApi.h"
#include "PythonHelper.h"
namespace CalamaresPython
{
PythonJobInterface::PythonJobInterface( const Calamares::PythonJob* parent )
: m_parent( parent )
{}
std::string
PythonJobInterface::prettyName() const
{
return m_parent->prettyName().toStdString();
}
std::string
PythonJobInterface::workingPath() const
{
return m_parent->m_workingPath.toStdString();
prettyName = m_parent->prettyName().toStdString();
workingPath = m_parent->m_workingPath.toStdString();
configuration = CalamaresPython::variantMapToPyDict( m_parent->m_configurationMap );
}
}