Add some Python API docs.
This commit is contained in:
parent
1d6c41e94d
commit
84ec430729
@ -65,7 +65,13 @@ BOOST_PYTHON_MODULE( libcalamares )
|
|||||||
.def_readonly( "pretty_name", &CalamaresPython::PythonJobInterface::prettyName )
|
.def_readonly( "pretty_name", &CalamaresPython::PythonJobInterface::prettyName )
|
||||||
.def_readonly( "working_path", &CalamaresPython::PythonJobInterface::workingPath )
|
.def_readonly( "working_path", &CalamaresPython::PythonJobInterface::workingPath )
|
||||||
.def_readonly( "configuration", &CalamaresPython::PythonJobInterface::configuration )
|
.def_readonly( "configuration", &CalamaresPython::PythonJobInterface::configuration )
|
||||||
.def( "setprogress", &CalamaresPython::PythonJobInterface::setprogress );
|
.def(
|
||||||
|
"setprogress",
|
||||||
|
&CalamaresPython::PythonJobInterface::setprogress,
|
||||||
|
bp::args( "progress" ),
|
||||||
|
"Reports the progress status of this job to Calamares, "
|
||||||
|
"as a real number between 0 and 1."
|
||||||
|
);
|
||||||
|
|
||||||
bp::class_< Calamares::GlobalStorage >( "GlobalStorage", bp::init<>() )
|
bp::class_< Calamares::GlobalStorage >( "GlobalStorage", bp::init<>() )
|
||||||
.def( "contains", &Calamares::GlobalStorage::python_contains )
|
.def( "contains", &Calamares::GlobalStorage::python_contains )
|
||||||
@ -81,7 +87,12 @@ BOOST_PYTHON_MODULE( libcalamares )
|
|||||||
bp::scope utilsScope = utilsModule;
|
bp::scope utilsScope = utilsModule;
|
||||||
Q_UNUSED( utilsScope );
|
Q_UNUSED( utilsScope );
|
||||||
|
|
||||||
bp::def( "debug", &CalamaresPython::debug );
|
bp::def(
|
||||||
|
"debug",
|
||||||
|
&CalamaresPython::debug,
|
||||||
|
bp::args( "s" ),
|
||||||
|
"Writes the given string to the Calamares debug stream."
|
||||||
|
);
|
||||||
bp::def(
|
bp::def(
|
||||||
"mount",
|
"mount",
|
||||||
&CalamaresPython::mount,
|
&CalamaresPython::mount,
|
||||||
|
Loading…
Reference in New Issue
Block a user