Hello everyone,
this is the final part of the refactoring/redesign that happened on
the controller over the last month or two.
This series adds a dependency on python-lxml. However, the library is
quite common and in wide-spread use.
Apart from the formating of some error messages, there should be no
visible changes to LNST from the outside.
Cheers
-Radek
Radek Pazdera (10):
schema: Updating the cmd-sequence to task
schema: Removing 'source' and changing 'defines'
schema: Adding a schema for slavemachine xml
install: Adding schemes to the distribution
XmlParser: Moving the parser from DOM to etree
XmlProcessing: Updating the objects to support etree
XmlProcessing: Removing the XmlDomTreeInit
XmlTemplates: Changing to support etree
controller: Rewriting recipe parsing
controller: Rewriting slavemachine parsing
install/lnst-ctl.conf.in | 65 +++--
lnst/Common/Config.py | 5 +
lnst/Common/XmlParser.py | 303 ++++----------------
lnst/Common/XmlProcessing.py | 101 ++-----
lnst/Common/XmlTemplates.py | 104 +++----
lnst/Controller/NetTestController.py | 7 +-
lnst/Controller/RecipeParse.py | 394 --------------------------
lnst/Controller/RecipeParser.py | 255 +++++++++++++++++
lnst/Controller/SlaveMachineParse.py | 72 -----
lnst/Controller/SlaveMachineParser.py | 69 +++++
lnst/Controller/SlavePool.py | 18 +-
recipe-schema.rng | 515 ----------------------------------
schema-recipe.rng | 391 ++++++++++++++++++++++++++
schema-sm.rng | 82 ++++++
setup.py | 8 +-
15 files changed, 995 insertions(+), 1394 deletions(-)
delete mode 100644 lnst/Controller/RecipeParse.py
create mode 100644 lnst/Controller/RecipeParser.py
delete mode 100644 lnst/Controller/SlaveMachineParse.py
create mode 100644 lnst/Controller/SlaveMachineParser.py
delete mode 100644 recipe-schema.rng
create mode 100644 schema-recipe.rng
create mode 100644 schema-sm.rng
--
1.8.3.1
Show replies by date