Merge "Issue #2361 fix iscUtil" into development
Former-commit-id:3e260a58d9
[formerly3e260a58d9
[formerly 52834c2c4a82218588f2725c3ea12c4ce8e3dc14]] Former-commit-id:584a782545
Former-commit-id:d13c6943da
This commit is contained in:
commit
5b87108b39
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