Commit Graph

8 Commits

Author SHA1 Message Date
Dan Čermák
b015b91679
Stop inheriting from object
This is no longer required in Python3
2019-08-22 15:43:27 +02:00
Alberto Planas
0c095a98b1 Replace @staticmethod with @classmethod when needed
@classmethod are used in Python to represent methods that can
query and update the class (cls parameter). Is expected to be
used for metaprograming, or advanced techniques that require the
access to the class itself, before we have an instance.

@staticmethod are used to associate a function to a class. It will
not be have access to the instance (self) not the class (cls). In
other programming languages are known as class methods.

This patch replace all the @classmethod with @staticmethod when
there is not need to access to the cls parameter, because the
intention is to be used as normal functions.
2019-03-26 16:27:43 +01:00
Marcus Schäfer
e3c5868c1c
Cleanup use of python interpreter invocation
Prevent strict call of a specific version of the python
interpreter. All code has been written to work with py2
and py3 thus the venv environment setup should decide
what version a call of python is. Fixes #424
2017-07-14 11:25:23 +02:00
David Cassany
2b83c803d5 Components of an Image Description section
This commit extends the doc/sources/workflow.rst documentation
by including details about config.sh and images.sh files.
2017-01-30 18:20:44 +01:00
Marcus Schäfer
5dacaad9cb
Adapt schema generator to rtd doc schema 2016-12-06 18:55:37 +01:00
Marcus Schäfer
aae06d011a
Prevent any type from attribute recursion
The schema parser to create the documentation run into
an endless recursion for the new k.any type. As any could
be anything there is not much do document for this type.
Thus it is now skipped from the traversal
2016-12-05 11:43:20 +01:00
David Cassany
57c0e12d17 Modified few code lines to match landscape's quality standards 2016-10-06 16:24:46 +02:00
Marcus Schäfer
2f7a957b7a Schema docs generation helper
A simple script to parse the RelaxNG schema that grabs relevant
information in order to produce autogenerated documentation from
the schema inline comments.
2016-09-12 16:31:48 +02:00