commit/galaxy-central: carlfeberhard: Visualizations Registry: allow config to contain a visualization description
1 new commit in galaxy-central: https://bitbucket.org/galaxy/galaxy-central/commits/cf003cc0101b/ Changeset: cf003cc0101b User: carlfeberhard Date: 2014-01-14 17:25:20 Summary: Visualizations Registry: allow config to contain a visualization description Affected #: 2 files diff -r 0c20fa551dd90a9d8101bf4f2a8cac3793b9663b -r cf003cc0101b1b07acf8bec871b0e7740ef6b39f config/plugins/visualizations/visualization.dtd --- a/config/plugins/visualizations/visualization.dtd +++ b/config/plugins/visualizations/visualization.dtd @@ -1,10 +1,17 @@ <!-- each visualization must have a template (all other elements are optional) --> -<!ELEMENT visualization (data_sources*,params*,template_root*,template,link_text*,render_location*)> -<!-- visualization name (e.g. 'trackster', 'scatterplot', etc.) is required --> +<!ELEMENT visualization (description*,data_sources*,params*,template_root*,template,link_text*,render_location*)> +<!-- visualization + name: some name for the visualization (e.g. 'trackster', 'scatterplot', etc.) REQUIRED + disabled: if included (value does not matter), this attribute will prevent the visualization being loaded +--><!ATTLIST visualization name CDATA #REQUIRED + disabled CDATA #IMPLIED
+<!ELEMENT description (#PCDATA)> +<!-- a text description of what the visualization does --> + <!ELEMENT data_sources (data_source*)><!-- data sources are elements that describe what objects (HDAs, LDDAs, Job, User, etc.) are applicable to a visualization. Often these are used to fetch applicable links diff -r 0c20fa551dd90a9d8101bf4f2a8cac3793b9663b -r cf003cc0101b1b07acf8bec871b0e7740ef6b39f lib/galaxy/visualization/registry.py --- a/lib/galaxy/visualization/registry.py +++ b/lib/galaxy/visualization/registry.py @@ -397,6 +397,10 @@ if 'disabled' in xml_tree.attrib: return None + # a (for now) text description of what the visualization does + description = xml_tree.find( 'description' ) + returned[ 'description' ] = description.text.strip() if description is not None else None + # data_sources are the kinds of objects/data associated with the visualization # e.g. views on HDAs can use this to find out what visualizations are applicable to them data_sources = [] Repository URL: https://bitbucket.org/galaxy/galaxy-central/ -- This is a commit notification from bitbucket.org. You are receiving this because you have the service enabled, addressing the recipient of this email.
participants (1)
-
commits-noreply@bitbucket.org