# HG changeset patch # User Sascha L. Teichmann # Date 1570545460 -7200 # Node ID 44b032028e48e0b52dc0b220f7416fa04f39c503 # Parent 0b01fd83bc3bb639ce4d67909c347799d4d15473 Re-enable templating for sounding differences on config changes. diff -r 0b01fd83bc3b -r 44b032028e48 pkg/controllers/system.go --- a/pkg/controllers/system.go Tue Oct 08 16:35:02 2019 +0200 +++ b/pkg/controllers/system.go Tue Oct 08 16:37:40 2019 +0200 @@ -246,7 +246,6 @@ } }) }) - /* FIXME! registerReconfigureFunc("morphology_classbreaks_compare", func(old sql.NullString, curr string) (func(*http.Request), error) { return reconfigureClassBreaks( @@ -254,7 +253,6 @@ "sounding_differences", func(*http.Request) { go deleteSoundingDiffs() }) }) - */ reconf := func(which string) func(sql.NullString, string) (func(*http.Request), error) { return func(old sql.NullString, curr string) (func(*http.Request), error) { diff -r 0b01fd83bc3b -r 44b032028e48 pkg/geoserver/templates.go --- a/pkg/geoserver/templates.go Tue Oct 08 16:35:02 2019 +0200 +++ b/pkg/geoserver/templates.go Tue Oct 08 16:37:40 2019 +0200 @@ -37,11 +37,9 @@ RegisterStylePreprocessor( "sounding_results_areas_geoserver", templateContourLinesFunc("morphology_classbreaks")) - /* FIXME! RegisterStylePreprocessor( - "sounding_differences", - templateContourLinesFunc("morphology_classbreaks_compare")) - */ + "sounding_differences", + templateContourLinesFunc("morphology_classbreaks_compare")) RegisterStylePreprocessor( "distance_marks_geoserver", templateConfigValues)