Commit Graph

20 Commits

Author SHA1 Message Date
Marcus Schäfer
eaac155067 Add extension validation and data access
If an extension section exists the xml data in this section
is validated against the RelaxNG schema which must be part
of the xmlcatalog for the used extension namespace. If the
data validates the method get_extension_xml_data can be used
to access the etree parse result for each of the extension
configurations
2016-12-01 10:45:17 +01:00
Marcus Schäfer
d3d6674d8e Make sure to catch exceptions from xsltproc 2016-12-01 10:41:56 +01:00
David Cassany
40cf0d1515 Integrating Schematron syntax in schema
Using Schematron syntax in schema co-occurrence constraints can
be easily defined. This commit provides the schematron integration.
2016-10-20 12:32:29 +02:00
David Cassany
33222a0cc3 Updated logging message
Updated logging formating in a way that landscape does not complain
2016-08-10 16:41:41 +02:00
David Cassany
0fdd209e73 Command validation
This commit includes a validation in Command.run and Command.call
in order to verify the existance of the command before running it.
It case it is not found in the specified environment it raises a
KiwiCommandNotFound Exception.
2016-08-05 18:38:27 +02:00
David Cassany
d8df88f23a Detailed schema validation report
This commit adds the execution of a jing process if the validation
fails, that way the user has more information about what is
actually failing during the validation process. If jing command
is not found, it just produces an info message to warn the user
and kiwi finalizes as expected.
2016-08-05 09:29:11 +02:00
Marcus Schäfer
20b02bf683
Explain why bytes type is redefined
In python2 bytes is string which is different from the bytes
type in python3. The bytes type from the builtins generalizes
this type to be bytes always. However the redefinition of the
bytes type is marked as Smell in landscape. Thus the code
should at least inform why this is done
2016-07-25 10:52:20 +02:00
Marcus Schäfer
319fb9e6e4
Adapt to common python style
Private methods should start with _f() not __f()
2016-06-15 16:27:45 +02:00
Marcus Schäfer
e3baaec0a1
Format message with named format parameters 2016-06-14 15:51:17 +02:00
Marcus Schäfer
b20e1e657f
Avoid re-assigning variable 2016-06-14 15:46:40 +02:00
Marcus Schäfer
4ca75860e7
Handle XML per content or file more explicit 2016-06-14 11:53:43 +02:00
Bo Maryniuk
d6ded84577 Remove unused import (F401) and an extra line (W391) 2016-06-09 12:30:31 +02:00
Bo Maryniuk
95751722c8 Fix tests for Python3 2016-06-09 12:09:47 +02:00
Bo Maryniuk
20c9376f69 Fix tests for the XPath processing 2016-06-09 11:52:33 +02:00
Bo Maryniuk
584ce24110 Allow XMLDescription to be loaded also from the XML string 2016-06-09 11:38:33 +02:00
Bo Maryniuk
298cc204f4 Reimplement XSLT processing using LXML instead of calling 3rd party tools 2016-06-09 11:38:33 +02:00
Marcus Schäfer
3fc61acc96
Update inline API documentation 2016-04-11 16:11:48 +02:00
Marcus Schäfer
82ab918cb4
Add optional derived_from param to XMLDescription
An instance of XMLDescription can now optionally become
constructed with a path to an image description this
instance was derived from. This is currently used for
building the kiwi boot image to tell the boot image
XML description instance from which system image instance
it was derived from
2016-03-23 15:00:39 +01:00
Marcus Schäfer
40e6308aa9 Port application from python 2.7 to 3.4
For new applications like this kiwi version and its use cases
it is better to base it on a more recent python version
2016-02-17 22:38:38 +01:00
Marcus Schäfer
09daca60c0
KIWI - appliance builder next generation
a rewrite of the current kiwi from https://github.com/openSUSE/kiwi
2015-12-05 16:17:10 +01:00