mirror of
https://github.com/parchlinux/calamares.git
synced 2025-07-01 19:35:36 -04:00
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:
parent
2f03dfa43b
commit
d9f4c74537
9 changed files with 91 additions and 27 deletions
|
@ -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 );
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue