incubator-bloodhound-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Apache Bloodhound" <bloodhound-...@incubator.apache.org>
Subject Re: [Apache Bloodhound] #45: Refine XML markup to embed dashboard layouts and widgets
Date Tue, 19 Jun 2012 03:56:14 GMT
#45: Refine XML markup to embed dashboard layouts and widgets
-------------------------+-------------------------------------------------
  Reporter:  olemis      |      Owner:  olemis
      Type:              |     Status:  accepted
  enhancement            |  Milestone:  RC1 for initial release
  Priority:  minor       |    Version:
 Component:  dashboard   |   Keywords:  markup widget layout genshi
Resolution:              |  template
-------------------------+-------------------------------------------------
Description changed by olemis:

Old description:

> Right now a combination of XML + JSON has to be inserted in Genshi
> templates so as to embed widgets and layouts implemented by dashboard
> plugin .
>
> For some reasons it's better to implement this feature using ''XML''
> instead. For instance , widget markup looked like shown below in the
> early days (prior to r1351312 ) looked like the snippet shown below
>
> {{{
> #!xml
>
>   <bh:widget id="simple_widget" urn="WidgetName" altlinks="false">
>     <bh:args>
>       {"args" : {"arg1" : "value1",
>                  "arg2" : "value2"
>                 }
>       }
>     </bh:args>
>   </bh:widget>
>
> }}}
>
> ... whereas in current implementation ''only XML'' is needed (which is
> more suitable to use together with ''Genshi'' statements e.g. `py:for` ,
> `py:if` ... )
>
> {{{
> #!xml
>
>   <bh:widget id="simple_widget" urn="WidgetName" altlinks="false">
>     <bh:args>
>       <bh:arg name="arg1">value1</bh:arg>
>       <bh:arg name="arg2">value2</bh:arg>
>     </bh:args>
>   </bh:widget>
>
> }}}
>
> Nonetheless my initial attempt trying to get this done was not as
> successful as I expected .
>
> Further details may be found in comments in Genshi templates included in
> dashboard plugin

New description:

 Right now a combination of XML + JSON has to be inserted in Genshi
 templates so as to embed widgets and layouts implemented by dashboard
 plugin .

 For some reasons it's better to implement this feature using ''XML''
 instead. My initial attempt trying to get this done was not as successful
 as I expected but eventually a solution will come up handy .

 For instance , widget markup in the early days (prior to r1351312 ) looked
 like the snippet shown below

 {{{
 #!xml

   <bh:widget id="simple_widget" urn="WidgetName" altlinks="false">
     <bh:args>
       {"args" : {"arg1" : "value1",
                  "arg2" : "value2"
                 }
       }
     </bh:args>
   </bh:widget>

 }}}

 ... whereas in current implementation ''only XML'' is needed (which is
 more suitable to use together with ''Genshi'' statements e.g. `py:for` ,
 `py:if` ... )

 {{{
 #!xml

   <bh:widget id="simple_widget" urn="WidgetName" altlinks="false">
     <bh:args>
       <bh:arg name="arg1">value1</bh:arg>
       <bh:arg name="arg2">value2</bh:arg>
     </bh:args>
   </bh:widget>

 }}}

 Further details may be found in comments in Genshi templates included in
 dashboard plugin

--

-- 
Ticket URL: <https://issues.apache.org/bloodhound/ticket/45#comment:6>
Apache Bloodhound <https://issues.apache.org/bloodhound/>
The Apache Bloodhound (incubating) issue tracker

Mime
View raw message