Merge lp:~newell-jensen/maas/xml-to-yaml-commissioning-result into lp:~maas-committers/maas/trunk
Proposed by
Newell Jensen
Status: | Merged |
---|---|
Approved by: | Newell Jensen |
Approved revision: | no longer in the source branch. |
Merged at revision: | 2965 |
Proposed branch: | lp:~newell-jensen/maas/xml-to-yaml-commissioning-result |
Merge into: | lp:~maas-committers/maas/trunk |
Prerequisite: | lp:~newell-jensen/maas/xml-to-yaml-node-view |
Diff against target: |
112 lines (+55/-3) 3 files modified
src/maasserver/templates/metadataserver/nodecommissionresult.html (+28/-3) src/metadataserver/models/noderesult.py (+12/-0) src/metadataserver/models/tests/test_nodecommissionresult.py (+15/-0) |
To merge this branch: | bzr merge lp:~newell-jensen/maas/xml-to-yaml-commissioning-result |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Blake Rouse (community) | Approve | ||
Review via email: mp+234016@code.launchpad.net |
Commit message
Edited commissioningre
Description of the change
This branch is the third and final of three, which together allow the user to view the xml output in the ui as either yaml (default tab) or xml.
To post a comment you must log in.
Attached is a screen shot of the UI for this branch.
On Tue, Sep 9, 2014 at 2:37 PM, Newell Jensen <email address hidden>
wrote:
> Newell Jensen has proposed merging sult.html and model to have tabbed xml and yaml /bugs.launchpad .net/maas/ +bug/1358859 /code.launchpad .net/~newell- jensen/ maas/xml- to-yaml- commissioning- result/ +merge/ 234016 /code.launchpad .net/~newell- jensen/ maas/xml- to-yaml- commissioning- result/ +merge/ 234016 /templates/ metadataserver/ nodecommissionr esult.html' templates/ metadataserver/ nodecommissionr esult.html templates/ metadataserver/ nodecommissionr esult.html node.hostname }}{% endblock %} javascript" > 'history' , 'tabview', function (Y) { get_data_ as_html }} 02-capture- lldp.out" or object.name 01-lshw. out" %} yaml">DiscYAML< /a></li> xml">Discovery XML</a></li> get_data_ as_yaml_ html }}</pre> get_data_ as_html }}</pre> get_data_ as_html }} rver/models/ noderesult. py' ver/models/ noderesult. py 2014-08-13 21:49:35 +0000 ver/models/ noderesult. py 2014-09-09 21:35:02 +0000
> lp:~newell-jensen/maas/xml-to-yaml-commissioning-result into lp:maas with
> lp:~newell-jensen/maas/xml-to-yaml-node-view as a prerequisite.
>
> Commit message:
> Edited commissioningre
> (default) output, if required.
>
>
> Requested reviews:
> MAAS Maintainers (maas-maintainers)
> Related bugs:
> Bug #1358859 in MAAS: "Commissioning output xml is hard to understand,
> would be nice to have yaml as an output option."
> https:/
>
> For more details, see:
>
> https:/
>
> This branch is the third and final of three, which together allow the user
> to view the xml output in the ui as either yaml (default tab) or xml.
> --
>
> https:/
> You are the owner of
> lp:~newell-jensen/maas/xml-to-yaml-commissioning-result.
>
> === modified file
> 'src/maasserver
> --- src/maasserver/
> 2014-08-18 17:23:04 +0000
> +++ src/maasserver/
> 2014-09-09 21:35:02 +0000
> @@ -5,6 +5,14 @@
> {% block page-title %}Commissioning result for node: {{
> object.
>
> {% block content %}
> + <script type="text/
> + <!--
> + YUI().use(
> + var tabview = new Y.TabView({srcNode: '#tags'});
> + tabview.render();
> + });
> + // -->
> + </script>
> <ul class="data-list">
> <li class="block size7 first" id="name">
> <h4>Output file</h4>
> @@ -30,9 +38,26 @@
> <li class="block first separate" id="output">
> {% if object.data %}
> <h2>Output</h2>
> -<pre>
> -{{ object.
> -</pre>
> + {% if object.name == "99-maas-
> == "00-maas-
> + <div class="block first" id="tags">
> + <ul class="list size2 no-background normal">
> + <li><a href="#
> + <li><a href="#
> + </ul>
> + <div class="last size12 no-background normal">
> + <div id="yaml">
> + <pre>{{ object.
> + </div>
> + <div id="xml">
> + <pre>{{ object.
> + </div>
> + </div>
> + </div>
> + {% else %}
> + <pre>
> + {{ object.
> + </pre>
> + {% endif %}
> {% endif %}
> </li>
> </ul>
>
> === modified file 'src/metadatase
> --- src/metadataser
> +++ src/metadataser
> @@ -27,6 +27,7 @@
> from django.utils.html ...