Issue #4144: Fix python version SendPracticeProductRequest and VTECDecoder.py.
Change-Id: I1f85fc5d92034200014cfe464b51f4f2d8ae9080 Former-commit-id: dfbfd38194c88c70f3e75de06bfc7114c6bd3542
This commit is contained in:
parent
1e4522ddd2
commit
1e86f4cb13
4 changed files with 16 additions and 52 deletions
|
@ -7,8 +7,7 @@ import sys, os, getopt, string
|
|||
import logging
|
||||
import traceback
|
||||
|
||||
#import dynamicserialize.dstypes.com.raytheon.uf.common.activetable.SendPracticeProductRequest as SendPracticeProductRequest
|
||||
import dynamicserialize.dstypes.com.raytheon.uf.common.activetable.PracticeProductOfftimeRequest as PracticeProductOfftimeRequest
|
||||
from dynamicserialize.dstypes.com.raytheon.uf.common.activetable import SendPracticeProductRequest
|
||||
from ufpy import ThriftClient
|
||||
from ufpy import TimeUtil
|
||||
|
||||
|
@ -26,7 +25,7 @@ class VTECDecoder(object):
|
|||
"""
|
||||
thriftClient = ThriftClient.ThriftClient(self._host, self._port, '/services')
|
||||
|
||||
request = PracticeProductOfftimeRequest()
|
||||
request = SendPracticeProductRequest()
|
||||
request.setProductText(self._getProduct())
|
||||
request.setDrtString(self._offtimeStr)
|
||||
request.setNotifyGFE(self._notifyGFE)
|
||||
|
|
|
@ -1,47 +0,0 @@
|
|||
##
|
||||
# This software was developed and / or modified by Raytheon Company,
|
||||
# pursuant to Contract DG133W-05-CQ-1067 with the US Government.
|
||||
#
|
||||
# U.S. EXPORT CONTROLLED TECHNICAL DATA
|
||||
# This software product contains export-restricted data whose
|
||||
# export/transfer/disclosure is restricted by U.S. law. Dissemination
|
||||
# to non-U.S. persons whether in the United States or abroad requires
|
||||
# an export license or other authorization.
|
||||
#
|
||||
# Contractor Name: Raytheon Company
|
||||
# Contractor Address: 6825 Pine Street, Suite 340
|
||||
# Mail Stop B8
|
||||
# Omaha, NE 68106
|
||||
# 402.291.0100
|
||||
#
|
||||
# See the AWIPS II Master Rights File ("Master Rights File.pdf") for
|
||||
# further licensing information.
|
||||
##
|
||||
|
||||
# File auto-generated against equivalent DynamicSerialize Java class
|
||||
|
||||
class PracticeProductOfftimeRequest(object):
|
||||
|
||||
def __init__(self):
|
||||
self.drtString = None
|
||||
self.notifyGFE = None
|
||||
self.productText = None
|
||||
|
||||
def getDrtString(self):
|
||||
return self.drtString
|
||||
|
||||
def setDrtString(self, drtString):
|
||||
self.drtString = drtString
|
||||
|
||||
def getNotifyGFE(self):
|
||||
return self.notifyGFE
|
||||
|
||||
def setNotifyGFE(self, notifyGFE):
|
||||
self.notifyGFE = notifyGFE
|
||||
|
||||
def getProductText(self):
|
||||
return self.productText
|
||||
|
||||
def setProductText(self, productText):
|
||||
self.productText = productText
|
||||
|
|
@ -23,8 +23,22 @@
|
|||
class SendPracticeProductRequest(object):
|
||||
|
||||
def __init__(self):
|
||||
self.drtString = None
|
||||
self.notifyGFE = None
|
||||
self.productText = None
|
||||
|
||||
def getDrtString(self):
|
||||
return self.drtString
|
||||
|
||||
def setDrtString(self, drtString):
|
||||
self.drtString = drtString
|
||||
|
||||
def getNotifyGFE(self):
|
||||
return self.notifyGFE
|
||||
|
||||
def setNotifyGFE(self, notifyGFE):
|
||||
self.notifyGFE = notifyGFE
|
||||
|
||||
def getProductText(self):
|
||||
return self.productText
|
||||
|
||||
|
|
|
@ -32,7 +32,6 @@ __all__ = [
|
|||
'GetVtecAttributeResponse',
|
||||
'OperationalActiveTableRecord',
|
||||
'PracticeActiveTableRecord',
|
||||
'PracticeProductOfftimeRequest',
|
||||
'SendPracticeProductRequest',
|
||||
'VTECChange',
|
||||
'VTECTableChangeNotification',
|
||||
|
@ -51,7 +50,6 @@ from GetVtecAttributeRequest import GetVtecAttributeRequest
|
|||
from GetVtecAttributeResponse import GetVtecAttributeResponse
|
||||
from OperationalActiveTableRecord import OperationalActiveTableRecord
|
||||
from PracticeActiveTableRecord import PracticeActiveTableRecord
|
||||
from PracticeProductOfftimeRequest import PracticeProductOfftimeRequest
|
||||
from SendPracticeProductRequest import SendPracticeProductRequest
|
||||
from VTECChange import VTECChange
|
||||
from VTECTableChangeNotification import VTECTableChangeNotification
|
||||
|
|
Loading…
Add table
Reference in a new issue