Change-Id: I6231da05828bcc76489793c7cf8acd29468b4516 Former-commit-id:1cd011163c
[formerly6248c878ff
] [formerly03c265fc9f
] [formerly1cd011163c
[formerly6248c878ff
] [formerly03c265fc9f
] [formerly0dab6f4797
[formerly03c265fc9f
[formerly c4ba2394228935c7725688c11b91c3de130d586b]]]] Former-commit-id:0dab6f4797
Former-commit-id:2785d2a3e4
[formerly6e2c48ea00
] [formerly 1189d29ab168ea07982b041314aa47e5d998adf1 [formerly4abb7e718b
]] Former-commit-id: 58b1eb7a2744204d6518f3bdefdd3ac976cf06d3 [formerlyf346f84150
] Former-commit-id:46f8beb27d
This commit is contained in:
parent
993247982c
commit
906ad6794c
1 changed files with 2 additions and 36 deletions
|
@ -30,8 +30,6 @@
|
|||
# ------------ ---------- ----------- --------------------------
|
||||
# 08/09/2013 #1571 randerso Changed projections to use the Java
|
||||
# ProjectionType enumeration
|
||||
# 07/09/2014 #3146 randerso Added check for duplicate smartInit
|
||||
# rferrel Corrected log to alertviz.
|
||||
#
|
||||
########################################################################
|
||||
import types
|
||||
|
@ -440,7 +438,7 @@ def otherParse(serverhost, mhsid, port,
|
|||
"not an int: " + `vtecRequestTime`
|
||||
if type(port) != int:
|
||||
raise TypeError, "GFESUITE_PORT not an int: " + `port`
|
||||
javainitmodules = dictCheck(initmodules, list, str, "INITMODULES")
|
||||
initmodules = dictCheck(initmodules, list, str, "INITMODULES")
|
||||
accumElem = dictCheck(accumElem, list, str, "D2DAccumulativeElements")
|
||||
initskips = dictCheck(initskips, list, int, "INITSKIPS")
|
||||
d2ddbver = dictCheck(d2ddbver, int, None, "D2DDBVERSIONS")
|
||||
|
@ -509,41 +507,9 @@ def otherParse(serverhost, mhsid, port,
|
|||
raise TypeError, "TRANSMIT_SCRIPT not None or str: " + `transmitScript`
|
||||
elif transmitScript is None:
|
||||
transmitScript = ""
|
||||
|
||||
# build model to init mapping
|
||||
modelToInit = {}
|
||||
for module in initmodules:
|
||||
for model in initmodules[module]:
|
||||
if modelToInit.has_key(model):
|
||||
modelToInit[model].append(module)
|
||||
else:
|
||||
modelToInit[model] = [module]
|
||||
|
||||
# check for duplicate init modules
|
||||
for model in modelToInit:
|
||||
modules = modelToInit[model]
|
||||
if len(modules) > 1:
|
||||
message = "Multiple smartInit modules " + str(modules) + \
|
||||
" are enabled for D2D model: " + model + ". " + str(modules[1:]) + \
|
||||
" will be disabled. Please edit your localConfig.py file and disable all but one."
|
||||
|
||||
# log error message to edex log
|
||||
import LogStream
|
||||
LogStream.logProblem(message);
|
||||
|
||||
# log error to alertViz
|
||||
from com.raytheon.uf.edex.core import EDEXUtil
|
||||
from com.raytheon.uf.common.status import UFStatus_Priority as Priority
|
||||
EDEXUtil.sendMessageAlertViz(Priority.ERROR,
|
||||
"com.raytheon.edex.plugin.gfe", "GFE", "GFE", message,
|
||||
message, None)
|
||||
|
||||
# remove duplicate
|
||||
for module in modules[1:]:
|
||||
javainitmodules.remove(module)
|
||||
|
||||
return serverhost, mhsid, \
|
||||
port, javainitmodules, accumElem, \
|
||||
port, initmodules, accumElem, \
|
||||
initskips, d2ddbver, logfilepurge, prddir, home,\
|
||||
extraWEPrecision, vtecRequestTime, \
|
||||
autoConfigureNotifyTextProd, \
|
||||
|
|
Loading…
Add table
Reference in a new issue