Issue #2361 fix iscUtil
Change-Id: I4f62e048db3c1b453f56ece98448e1cf8b35fc28 Former-commit-id:8aecb21306
[formerly 93ec0db0ac9adeab663fa18f2d93eb9a42e4302b] Former-commit-id:dc60f94a34
This commit is contained in:
parent
dc31709252
commit
ef92804824
1 changed files with 3 additions and 3 deletions
|
@ -28,10 +28,10 @@ from time import gmtime,strftime
|
||||||
from java.io import File
|
from java.io import File
|
||||||
from com.raytheon.uf.common.time import TimeRange
|
from com.raytheon.uf.common.time import TimeRange
|
||||||
from com.raytheon.uf.common.dataplugin.gfe.db.objects import GridLocation
|
from com.raytheon.uf.common.dataplugin.gfe.db.objects import GridLocation
|
||||||
|
from com.raytheon.uf.common.dataplugin.gfe.reference import ReferenceData
|
||||||
from com.raytheon.uf.common.dataplugin.gfe.reference import ReferenceData_CoordinateType as CoordinateType
|
from com.raytheon.uf.common.dataplugin.gfe.reference import ReferenceData_CoordinateType as CoordinateType
|
||||||
from com.raytheon.edex.plugin.gfe.config import IFPServerConfig
|
from com.raytheon.edex.plugin.gfe.config import IFPServerConfig
|
||||||
from com.raytheon.edex.plugin.gfe.config import IFPServerConfigManager
|
from com.raytheon.edex.plugin.gfe.config import IFPServerConfigManager
|
||||||
from com.raytheon.uf.common.serialization import SerializationUtil
|
|
||||||
from com.raytheon.uf.common.localization import LocalizationFile
|
from com.raytheon.uf.common.localization import LocalizationFile
|
||||||
from com.raytheon.uf.common.localization import PathManagerFactory
|
from com.raytheon.uf.common.localization import PathManagerFactory
|
||||||
from com.raytheon.uf.common.localization import LocalizationContext
|
from com.raytheon.uf.common.localization import LocalizationContext
|
||||||
|
@ -70,7 +70,7 @@ def getEditArea(name, siteID):
|
||||||
|
|
||||||
try:
|
try:
|
||||||
if os.path.exists(file.getPath()):
|
if os.path.exists(file.getPath()):
|
||||||
refData = SerializationUtil.jaxbUnmarshalFromXmlFile(file.getPath());
|
refData = ReferenceData.getJAXBManager().unmarshalFromXmlFile(file.getPath());
|
||||||
else:
|
else:
|
||||||
LogStream.logProblem("EDIT AREA NOT FOUND: ",name," for site ",siteID)
|
LogStream.logProblem("EDIT AREA NOT FOUND: ",name," for site ",siteID)
|
||||||
except:
|
except:
|
||||||
|
@ -86,7 +86,7 @@ def saveEditAreaGrid(maskName, iscMask, siteID):
|
||||||
commonStaticConfig.setContextName(siteID)
|
commonStaticConfig.setContextName(siteID)
|
||||||
sitePath = pathMgr.getFile(commonStaticConfig,"gfe/editAreas").getPath()
|
sitePath = pathMgr.getFile(commonStaticConfig,"gfe/editAreas").getPath()
|
||||||
editAreaPath = str(sitePath) + "/" + maskName + ".xml"
|
editAreaPath = str(sitePath) + "/" + maskName + ".xml"
|
||||||
SerializationUtil.jaxbMarshalToXmlFile(iscMask, editAreaPath)
|
ReferenceData.getJAXBManager().marshalToXmlFile(iscMask, editAreaPath)
|
||||||
|
|
||||||
def deleteEditArea(name, siteID):
|
def deleteEditArea(name, siteID):
|
||||||
pathMgr = PathManagerFactory.getPathManager()
|
pathMgr = PathManagerFactory.getPathManager()
|
||||||
|
|
Loading…
Add table
Reference in a new issue