43 Commits (dd8e53dc225512bfb870cb043fd57ddf7520900d)

Author SHA1 Message Date
Adriaan de Groot dd8e53dc22 Copyright: update copyright lines on files touched in 2018
Contributions from:
  Adriaan de Groot <groot@kde.org>
  Gabriel Craciunescu <crazy@frugalware.org>
  AlmAck <gluca86@gmail.com>
  Andrius Štikonas <andrius@stikonas.eu>
  Caio Carvalho <caiojcarvalho@gmail.com>
  Raul Rodrigo Segura <raurodse@gmail.com>
7 years ago
Adriaan de Groot 84d599625f [libcalamares] Give Python jobs a warning()
- Add libcalamares.utils.warning() alongside debug() for
   Python modules to output warnings.
7 years ago
Adriaan de Groot 97fb83c743 [libcalamares] Change debug logging of how job name is derived 7 years ago
Adriaan de Groot abc6914528 [libcalamares] Enforce singleton-ness of CalamaresPython::Helper
- unset instance pointer on destruction
 - make constructor private, and the instance accessor
   should create an instance if there isn't one.
7 years ago
Adriaan de Groot 762ad54344 Documentation: change http links to GitHub to https 7 years ago
Adriaan de Groot 517dbfab06 [libcalamares] The script namespace is actually a dict
Use dict methods, in particular d.get(k, v), to retrieve
the pretty_name() function (or None if it isn't there).
Using getattr() on a dict will not return values in the
dict.
7 years ago
Adriaan de Groot 2c81fceacb Python: KeyError because pretty_name may not exist 8 years ago
Adriaan de Groot d6d5f54d00 Python-i18n: clarify debugging 8 years ago
Adriaan de Groot 74be2fd098 Python-i18n: implement gettext functions in libcalamares.utils
- remove Job.gettextPath
 - add libcalamares.utils.gettext_path()
 - add libcalamares.utils.gettext_lang()
 - modify examples in main.py
 - add some gettext debug-output from dummypython
 - correct namespace mis-labeling
 - provide two forms of GlobalStorage
   - regular use, has a JobQueue with storage
   - testing use, creates GlobalStorage separately, provide
     independent access to that for Python.
8 years ago
Adriaan de Groot 6370898154 Python-i18n: make it compile again 8 years ago
Adriaan de Groot cbfdd8690d Python-i18n: WIP, moving API to libcalamares.utils 8 years ago
Adriaan de Groot b922d88b0f Python-i18n: add a gettext_path for python job modules 8 years ago
Adriaan de Groot 34b96148ae Python: at beginning of job, if pretty status has changed, emit progress to update it in the UI. 8 years ago
Adriaan de Groot 11e5a6cbe0 Python: trim description to the first line of run.__doc__ 8 years ago
Adriaan de Groot a72cc0eeb4 Python: use the module run().__doc__ as a pretty description. 8 years ago
Adriaan de Groot f12ae5db3b Python: get docstring from run() method 8 years ago
Teo Mrnjavac 0684a761bd Copyright. 9 years ago
Teo Mrnjavac d99d7bfdff Expose CalamaresUtils::obscure as libcalamares.utils.obscure. 9 years ago
Teo Mrnjavac bf885d65db chroot calls are now generic "target env" calls. 10 years ago
Teo Mrnjavac 326671a3d6 Remove dead (unreachable) code. 10 years ago
Teo Mrnjavac eae237211f Add prettyStatusMessage to {Python,Process}Job. 10 years ago
Teo Mrnjavac 659a388688 Improve job status reporting. 10 years ago
Teo Mrnjavac edb21e05af New GlobalStoragePythonWrapper is passed to the Python API.
This allows us to make GlobalStorage a QObject, with disabled copy
constructor. And thanks to this change, GlobalStorage now emits
changed() every time an insert or remove is performed.
10 years ago
Teo Mrnjavac eb6b8ac613 Add check_chroot_output to Python interface. 11 years ago
Teo Mrnjavac 84ec430729 Add some Python API docs. 11 years ago
Teo Mrnjavac 01efeda801 Utils, not util. 11 years ago
Teo Mrnjavac c964093d7c Make libcalamares a proper package and utils a proper submodule. 11 years ago
Teo Mrnjavac 45ac91c784 Add check_chroot_call to libcalamares Python interface. 11 years ago
Aurélien Gâteau 90670f8b46 Improve formatting of error messages 11 years ago
Teo Mrnjavac 63534f7154 Add mount and chrootCall utilities to libcalamares + Python wrappers. 11 years ago
Teo Mrnjavac fb328494b3 Make the libcalamares Python API better for PEP8 11 years ago
Teo Mrnjavac 845ae05f7e Added debug( str ) to the Python API. 11 years ago
Teo Mrnjavac 87ee2b8b8c Improve error reporting for Python jobs. 11 years ago
Teo Mrnjavac beafcd9cc4 Consistency: calamares_main ==> run; global_storage => globalStorage 11 years ago
Teo Mrnjavac 2a231b3532 Try to avoid passing GlobalStorage to Python by value. 11 years ago
Teo Mrnjavac da83ecfb13 libcalamares.job is of type libcalamares.Job 11 years ago
Teo Mrnjavac 78de11a412 Emit job progress from Python jobs. 11 years ago
Teo Mrnjavac 2636a1273f Add job.setprogress to Python API. 11 years ago
Teo Mrnjavac 0753e6ccde New GlobalStorage map. With Python API support. 11 years ago
Teo Mrnjavac d9f4c74537 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.
11 years ago
Teo Mrnjavac 2f03dfa43b CalamaresPrivate ==> CalamaresPython 11 years ago
Teo Mrnjavac a61a36d99d We have a Python API for jobmodules!
Created a Boost.Python module interface in libcalamares.
Added a PythonJob wrapper and exposed it in the Python module.
Rename target calamareslib ==> calamares so in Python it's libcalamares.
Python-related classes in libcalamares that aren't exported as C++
symbols are now in a CalamaresPrivate namespace.
Import the libcalamares python module into every Python script before
running it.
Added Python error handling to PythonJobHelper.
Added some more testing code to dummypython module.
11 years ago
Teo Mrnjavac b924aeef2b Add optional Python jobs support to libcalamares. 11 years ago