[Dive4elements-commits] [PATCH] Fixed AT-Export in 'ausgel. WSPL'

Wald Commits scm-commit at wald.intevation.org
Wed Feb 20 15:27:59 CET 2013


# HG changeset patch
# User Raimund Renkert <rrenkert at intevation.de>
# Date 1361370449 -3600
# Node ID 3b974a24a8e1a61203dd9e4f81ff9cb23d4a7d7a
# Parent  2847371be7fe28c849174764f9b90b45b8022744
Fixed AT-Export in 'ausgel. WSPL'.

* Added facet.
* Fixed download link.
* Use toplevel fixings result to get function parameters.

diff -r 2847371be7fe -r 3b974a24a8e1 flys-artifacts/doc/conf/artifacts/fixanalysis.xml
--- a/flys-artifacts/doc/conf/artifacts/fixanalysis.xml	Wed Feb 20 12:15:26 2013 +0100
+++ b/flys-artifacts/doc/conf/artifacts/fixanalysis.xml	Wed Feb 20 15:27:29 2013 +0100
@@ -304,6 +304,11 @@
                     <facet name="hyk"                        description="hyks"/>
                   </facets>
                 </outputmode>
+                <outputmode name="fix_wq_curve_at_export" description="output.fix_wq_curve_at_export" mime-type="text/plain" type="export">
+                    <facets>
+                        <facet name="at" description="facet.fix_wq_curve_export.at"/>
+                    </facets>
+                </outputmode>
                 <outputmode name="fix_waterlevel_export" description="output.fix_waterlevel_export" mine-type="text/plain" type="export">
                     <facets>
                         <facet name="csv" description="facet.waterlevel_export.csv" />
diff -r 2847371be7fe -r 3b974a24a8e1 flys-artifacts/src/main/java/de/intevation/flys/artifacts/states/fixation/FixRealizingCompute.java
--- a/flys-artifacts/src/main/java/de/intevation/flys/artifacts/states/fixation/FixRealizingCompute.java	Wed Feb 20 12:15:26 2013 +0100
+++ b/flys-artifacts/src/main/java/de/intevation/flys/artifacts/states/fixation/FixRealizingCompute.java	Wed Feb 20 15:27:29 2013 +0100
@@ -130,6 +130,9 @@
                 new DataFacet(PDF, "PDF data", ComputeType.ADVANCE, hash, id));
         }
 
+        facets.add(
+            new DataFacet(AT, "AT data", ComputeType.ADVANCE, hash, id));
+
         facets.add(new FixWQCurveFacet(
             0, Resources.getMsg(meta, I18N_WQ_CURVE, I18N_WQ_CURVE)));
 
diff -r 2847371be7fe -r 3b974a24a8e1 flys-artifacts/src/main/java/de/intevation/flys/exports/fixings/FixATExport.java
--- a/flys-artifacts/src/main/java/de/intevation/flys/exports/fixings/FixATExport.java	Wed Feb 20 12:15:26 2013 +0100
+++ b/flys-artifacts/src/main/java/de/intevation/flys/exports/fixings/FixATExport.java	Wed Feb 20 15:27:29 2013 +0100
@@ -15,6 +15,7 @@
 import de.intevation.flys.artifacts.model.Parameters;
 
 import de.intevation.flys.artifacts.model.fixings.FixAnalysisResult;
+import de.intevation.flys.artifacts.model.fixings.FixResult;
 
 import de.intevation.flys.exports.AbstractExporter;
 
@@ -46,8 +47,8 @@
         if (data instanceof CalculationResult) {
             CalculationResult cr = (CalculationResult)data;
             Object resData = cr.getData();
-            if (resData instanceof FixAnalysisResult) {
-                this.parameters = ((FixAnalysisResult)resData).getParameters();
+            if (resData instanceof FixResult) {
+                this.parameters = ((FixResult)resData).getParameters();
             }
         }
         else {
diff -r 2847371be7fe -r 3b974a24a8e1 flys-client/src/main/java/de/intevation/flys/client/client/ui/chart/ChartToolbar.java
--- a/flys-client/src/main/java/de/intevation/flys/client/client/ui/chart/ChartToolbar.java	Wed Feb 20 12:15:26 2013 +0100
+++ b/flys-client/src/main/java/de/intevation/flys/client/client/ui/chart/ChartToolbar.java	Wed Feb 20 15:27:29 2013 +0100
@@ -113,6 +113,7 @@
                 baseUrl + MSG.downloadCSV(),
                 moduleUrl + "export" +
                    "?uuid=" + chartTab.getCollection().identifier() +
+                   "&name=" + chartTab.getMode().getName() +
                    "&mode=" + chartTab.getMode().getName() + "_at_export" +
                    "&type=at" +
                    "&server=" + config.getServerUrl() +


More information about the Dive4elements-commits mailing list