Subversion Repositories SmartDukaan

Rev

Rev 7718 | Rev 8565 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 7718 Rev 7968
Line 430... Line 430...
430
    Parameters:
430
    Parameters:
431
     - originWarehouseId
431
     - originWarehouseId
432
    """
432
    """
433
    pass
433
    pass
434
 
434
 
-
 
435
  def isItemAvailableForSale(self, itemId, serialNumber, warehouseId):
-
 
436
    """
-
 
437
    Parameters:
-
 
438
     - itemId
-
 
439
     - serialNumber
-
 
440
     - warehouseId
-
 
441
    """
-
 
442
    pass
-
 
443
 
-
 
444
  def getHistoricBadInventoryByScans(self, date):
-
 
445
    """
-
 
446
    Get inventory for Non Serialized items in our warehouses at a given date using entries in ScanNew table
-
 
447
 
-
 
448
    Parameters:
-
 
449
     - date
-
 
450
    """
-
 
451
    pass
-
 
452
 
435
 
453
 
436
class Client(shop2020.thriftpy.generic.GenericService.Client, Iface):
454
class Client(shop2020.thriftpy.generic.GenericService.Client, Iface):
437
  def __init__(self, iprot, oprot=None):
455
  def __init__(self, iprot, oprot=None):
438
    shop2020.thriftpy.generic.GenericService.Client.__init__(self, iprot, oprot)
456
    shop2020.thriftpy.generic.GenericService.Client.__init__(self, iprot, oprot)
439
 
457
 
Line 1963... Line 1981...
1963
    self._iprot.readMessageEnd()
1981
    self._iprot.readMessageEnd()
1964
    if result.success is not None:
1982
    if result.success is not None:
1965
      return result.success
1983
      return result.success
1966
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getInTransitInventory failed: unknown result");
1984
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getInTransitInventory failed: unknown result");
1967
 
1985
 
-
 
1986
  def isItemAvailableForSale(self, itemId, serialNumber, warehouseId):
-
 
1987
    """
-
 
1988
    Parameters:
-
 
1989
     - itemId
-
 
1990
     - serialNumber
-
 
1991
     - warehouseId
-
 
1992
    """
-
 
1993
    self.send_isItemAvailableForSale(itemId, serialNumber, warehouseId)
-
 
1994
    return self.recv_isItemAvailableForSale()
-
 
1995
 
-
 
1996
  def send_isItemAvailableForSale(self, itemId, serialNumber, warehouseId):
-
 
1997
    self._oprot.writeMessageBegin('isItemAvailableForSale', TMessageType.CALL, self._seqid)
-
 
1998
    args = isItemAvailableForSale_args()
-
 
1999
    args.itemId = itemId
-
 
2000
    args.serialNumber = serialNumber
-
 
2001
    args.warehouseId = warehouseId
-
 
2002
    args.write(self._oprot)
-
 
2003
    self._oprot.writeMessageEnd()
-
 
2004
    self._oprot.trans.flush()
-
 
2005
 
-
 
2006
  def recv_isItemAvailableForSale(self, ):
-
 
2007
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
2008
    if mtype == TMessageType.EXCEPTION:
-
 
2009
      x = TApplicationException()
-
 
2010
      x.read(self._iprot)
-
 
2011
      self._iprot.readMessageEnd()
-
 
2012
      raise x
-
 
2013
    result = isItemAvailableForSale_result()
-
 
2014
    result.read(self._iprot)
-
 
2015
    self._iprot.readMessageEnd()
-
 
2016
    if result.success is not None:
-
 
2017
      return result.success
-
 
2018
    if result.wex is not None:
-
 
2019
      raise result.wex
-
 
2020
    raise TApplicationException(TApplicationException.MISSING_RESULT, "isItemAvailableForSale failed: unknown result");
-
 
2021
 
-
 
2022
  def getHistoricBadInventoryByScans(self, date):
-
 
2023
    """
-
 
2024
    Get inventory for Non Serialized items in our warehouses at a given date using entries in ScanNew table
-
 
2025
 
-
 
2026
    Parameters:
-
 
2027
     - date
-
 
2028
    """
-
 
2029
    self.send_getHistoricBadInventoryByScans(date)
-
 
2030
    return self.recv_getHistoricBadInventoryByScans()
-
 
2031
 
-
 
2032
  def send_getHistoricBadInventoryByScans(self, date):
-
 
2033
    self._oprot.writeMessageBegin('getHistoricBadInventoryByScans', TMessageType.CALL, self._seqid)
-
 
2034
    args = getHistoricBadInventoryByScans_args()
-
 
2035
    args.date = date
-
 
2036
    args.write(self._oprot)
-
 
2037
    self._oprot.writeMessageEnd()
-
 
2038
    self._oprot.trans.flush()
-
 
2039
 
-
 
2040
  def recv_getHistoricBadInventoryByScans(self, ):
-
 
2041
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
2042
    if mtype == TMessageType.EXCEPTION:
-
 
2043
      x = TApplicationException()
-
 
2044
      x.read(self._iprot)
-
 
2045
      self._iprot.readMessageEnd()
-
 
2046
      raise x
-
 
2047
    result = getHistoricBadInventoryByScans_result()
-
 
2048
    result.read(self._iprot)
-
 
2049
    self._iprot.readMessageEnd()
-
 
2050
    if result.success is not None:
-
 
2051
      return result.success
-
 
2052
    if result.wex is not None:
-
 
2053
      raise result.wex
-
 
2054
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getHistoricBadInventoryByScans failed: unknown result");
-
 
2055
 
1968
 
2056
 
1969
class Processor(shop2020.thriftpy.generic.GenericService.Processor, Iface, TProcessor):
2057
class Processor(shop2020.thriftpy.generic.GenericService.Processor, Iface, TProcessor):
1970
  def __init__(self, handler):
2058
  def __init__(self, handler):
1971
    shop2020.thriftpy.generic.GenericService.Processor.__init__(self, handler)
2059
    shop2020.thriftpy.generic.GenericService.Processor.__init__(self, handler)
1972
    self._processMap["getInventoryItem"] = Processor.process_getInventoryItem
2060
    self._processMap["getInventoryItem"] = Processor.process_getInventoryItem
Line 2012... Line 2100...
2012
    self._processMap["scanForTransferOut"] = Processor.process_scanForTransferOut
2100
    self._processMap["scanForTransferOut"] = Processor.process_scanForTransferOut
2013
    self._processMap["scanForTransferIn"] = Processor.process_scanForTransferIn
2101
    self._processMap["scanForTransferIn"] = Processor.process_scanForTransferIn
2014
    self._processMap["scanForOursThirdPartyReceive"] = Processor.process_scanForOursThirdPartyReceive
2102
    self._processMap["scanForOursThirdPartyReceive"] = Processor.process_scanForOursThirdPartyReceive
2015
    self._processMap["getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse"] = Processor.process_getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse
2103
    self._processMap["getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse"] = Processor.process_getCurrentQuantityForNonSerializedInTransitItemInPhysicalWarehouse
2016
    self._processMap["getInTransitInventory"] = Processor.process_getInTransitInventory
2104
    self._processMap["getInTransitInventory"] = Processor.process_getInTransitInventory
-
 
2105
    self._processMap["isItemAvailableForSale"] = Processor.process_isItemAvailableForSale
-
 
2106
    self._processMap["getHistoricBadInventoryByScans"] = Processor.process_getHistoricBadInventoryByScans
2017
 
2107
 
2018
  def process(self, iprot, oprot):
2108
  def process(self, iprot, oprot):
2019
    (name, type, seqid) = iprot.readMessageBegin()
2109
    (name, type, seqid) = iprot.readMessageBegin()
2020
    if name not in self._processMap:
2110
    if name not in self._processMap:
2021
      iprot.skip(TType.STRUCT)
2111
      iprot.skip(TType.STRUCT)
Line 2595... Line 2685...
2595
    oprot.writeMessageBegin("getInTransitInventory", TMessageType.REPLY, seqid)
2685
    oprot.writeMessageBegin("getInTransitInventory", TMessageType.REPLY, seqid)
2596
    result.write(oprot)
2686
    result.write(oprot)
2597
    oprot.writeMessageEnd()
2687
    oprot.writeMessageEnd()
2598
    oprot.trans.flush()
2688
    oprot.trans.flush()
2599
 
2689
 
-
 
2690
  def process_isItemAvailableForSale(self, seqid, iprot, oprot):
-
 
2691
    args = isItemAvailableForSale_args()
-
 
2692
    args.read(iprot)
-
 
2693
    iprot.readMessageEnd()
-
 
2694
    result = isItemAvailableForSale_result()
-
 
2695
    try:
-
 
2696
      result.success = self._handler.isItemAvailableForSale(args.itemId, args.serialNumber, args.warehouseId)
-
 
2697
    except WarehouseServiceException, wex:
-
 
2698
      result.wex = wex
-
 
2699
    oprot.writeMessageBegin("isItemAvailableForSale", TMessageType.REPLY, seqid)
-
 
2700
    result.write(oprot)
-
 
2701
    oprot.writeMessageEnd()
-
 
2702
    oprot.trans.flush()
-
 
2703
 
-
 
2704
  def process_getHistoricBadInventoryByScans(self, seqid, iprot, oprot):
-
 
2705
    args = getHistoricBadInventoryByScans_args()
-
 
2706
    args.read(iprot)
-
 
2707
    iprot.readMessageEnd()
-
 
2708
    result = getHistoricBadInventoryByScans_result()
-
 
2709
    try:
-
 
2710
      result.success = self._handler.getHistoricBadInventoryByScans(args.date)
-
 
2711
    except WarehouseServiceException, wex:
-
 
2712
      result.wex = wex
-
 
2713
    oprot.writeMessageBegin("getHistoricBadInventoryByScans", TMessageType.REPLY, seqid)
-
 
2714
    result.write(oprot)
-
 
2715
    oprot.writeMessageEnd()
-
 
2716
    oprot.trans.flush()
-
 
2717
 
2600
 
2718
 
2601
# HELPER FUNCTIONS AND STRUCTURES
2719
# HELPER FUNCTIONS AND STRUCTURES
2602
 
2720
 
2603
class getInventoryItem_args:
2721
class getInventoryItem_args:
2604
  """
2722
  """
Line 8985... Line 9103...
8985
      oprot.writeFieldEnd()
9103
      oprot.writeFieldEnd()
8986
    oprot.writeFieldStop()
9104
    oprot.writeFieldStop()
8987
    oprot.writeStructEnd()
9105
    oprot.writeStructEnd()
8988
 
9106
 
8989
  def validate(self):
9107
  def validate(self):
-
 
9108
    return
-
 
9109
 
-
 
9110
 
-
 
9111
  def __repr__(self):
-
 
9112
    L = ['%s=%r' % (key, value)
-
 
9113
      for key, value in self.__dict__.iteritems()]
-
 
9114
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
9115
 
-
 
9116
  def __eq__(self, other):
-
 
9117
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
9118
 
-
 
9119
  def __ne__(self, other):
-
 
9120
    return not (self == other)
-
 
9121
 
-
 
9122
class isItemAvailableForSale_args:
-
 
9123
  """
-
 
9124
  Attributes:
-
 
9125
   - itemId
-
 
9126
   - serialNumber
-
 
9127
   - warehouseId
-
 
9128
  """
-
 
9129
 
-
 
9130
  thrift_spec = (
-
 
9131
    None, # 0
-
 
9132
    (1, TType.I64, 'itemId', None, None, ), # 1
-
 
9133
    (2, TType.STRING, 'serialNumber', None, None, ), # 2
-
 
9134
    (3, TType.I64, 'warehouseId', None, None, ), # 3
-
 
9135
  )
-
 
9136
 
-
 
9137
  def __init__(self, itemId=None, serialNumber=None, warehouseId=None,):
-
 
9138
    self.itemId = itemId
-
 
9139
    self.serialNumber = serialNumber
-
 
9140
    self.warehouseId = warehouseId
-
 
9141
 
-
 
9142
  def read(self, iprot):
-
 
9143
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
9144
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
9145
      return
-
 
9146
    iprot.readStructBegin()
-
 
9147
    while True:
-
 
9148
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
9149
      if ftype == TType.STOP:
-
 
9150
        break
-
 
9151
      if fid == 1:
-
 
9152
        if ftype == TType.I64:
-
 
9153
          self.itemId = iprot.readI64();
-
 
9154
        else:
-
 
9155
          iprot.skip(ftype)
-
 
9156
      elif fid == 2:
-
 
9157
        if ftype == TType.STRING:
-
 
9158
          self.serialNumber = iprot.readString();
-
 
9159
        else:
-
 
9160
          iprot.skip(ftype)
-
 
9161
      elif fid == 3:
-
 
9162
        if ftype == TType.I64:
-
 
9163
          self.warehouseId = iprot.readI64();
-
 
9164
        else:
-
 
9165
          iprot.skip(ftype)
-
 
9166
      else:
-
 
9167
        iprot.skip(ftype)
-
 
9168
      iprot.readFieldEnd()
-
 
9169
    iprot.readStructEnd()
-
 
9170
 
-
 
9171
  def write(self, oprot):
-
 
9172
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
9173
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
9174
      return
-
 
9175
    oprot.writeStructBegin('isItemAvailableForSale_args')
-
 
9176
    if self.itemId is not None:
-
 
9177
      oprot.writeFieldBegin('itemId', TType.I64, 1)
-
 
9178
      oprot.writeI64(self.itemId)
-
 
9179
      oprot.writeFieldEnd()
-
 
9180
    if self.serialNumber is not None:
-
 
9181
      oprot.writeFieldBegin('serialNumber', TType.STRING, 2)
-
 
9182
      oprot.writeString(self.serialNumber)
-
 
9183
      oprot.writeFieldEnd()
-
 
9184
    if self.warehouseId is not None:
-
 
9185
      oprot.writeFieldBegin('warehouseId', TType.I64, 3)
-
 
9186
      oprot.writeI64(self.warehouseId)
-
 
9187
      oprot.writeFieldEnd()
-
 
9188
    oprot.writeFieldStop()
-
 
9189
    oprot.writeStructEnd()
-
 
9190
 
-
 
9191
  def validate(self):
-
 
9192
    return
-
 
9193
 
-
 
9194
 
-
 
9195
  def __repr__(self):
-
 
9196
    L = ['%s=%r' % (key, value)
-
 
9197
      for key, value in self.__dict__.iteritems()]
-
 
9198
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
9199
 
-
 
9200
  def __eq__(self, other):
-
 
9201
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
9202
 
-
 
9203
  def __ne__(self, other):
-
 
9204
    return not (self == other)
-
 
9205
 
-
 
9206
class isItemAvailableForSale_result:
-
 
9207
  """
-
 
9208
  Attributes:
-
 
9209
   - success
-
 
9210
   - wex
-
 
9211
  """
-
 
9212
 
-
 
9213
  thrift_spec = (
-
 
9214
    (0, TType.BOOL, 'success', None, None, ), # 0
-
 
9215
    (1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
-
 
9216
  )
-
 
9217
 
-
 
9218
  def __init__(self, success=None, wex=None,):
-
 
9219
    self.success = success
-
 
9220
    self.wex = wex
-
 
9221
 
-
 
9222
  def read(self, iprot):
-
 
9223
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
9224
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
9225
      return
-
 
9226
    iprot.readStructBegin()
-
 
9227
    while True:
-
 
9228
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
9229
      if ftype == TType.STOP:
-
 
9230
        break
-
 
9231
      if fid == 0:
-
 
9232
        if ftype == TType.BOOL:
-
 
9233
          self.success = iprot.readBool();
-
 
9234
        else:
-
 
9235
          iprot.skip(ftype)
-
 
9236
      elif fid == 1:
-
 
9237
        if ftype == TType.STRUCT:
-
 
9238
          self.wex = WarehouseServiceException()
-
 
9239
          self.wex.read(iprot)
-
 
9240
        else:
-
 
9241
          iprot.skip(ftype)
-
 
9242
      else:
-
 
9243
        iprot.skip(ftype)
-
 
9244
      iprot.readFieldEnd()
-
 
9245
    iprot.readStructEnd()
-
 
9246
 
-
 
9247
  def write(self, oprot):
-
 
9248
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
9249
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
9250
      return
-
 
9251
    oprot.writeStructBegin('isItemAvailableForSale_result')
-
 
9252
    if self.success is not None:
-
 
9253
      oprot.writeFieldBegin('success', TType.BOOL, 0)
-
 
9254
      oprot.writeBool(self.success)
-
 
9255
      oprot.writeFieldEnd()
-
 
9256
    if self.wex is not None:
-
 
9257
      oprot.writeFieldBegin('wex', TType.STRUCT, 1)
-
 
9258
      self.wex.write(oprot)
-
 
9259
      oprot.writeFieldEnd()
-
 
9260
    oprot.writeFieldStop()
-
 
9261
    oprot.writeStructEnd()
-
 
9262
 
-
 
9263
  def validate(self):
-
 
9264
    return
-
 
9265
 
-
 
9266
 
-
 
9267
  def __repr__(self):
-
 
9268
    L = ['%s=%r' % (key, value)
-
 
9269
      for key, value in self.__dict__.iteritems()]
-
 
9270
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
9271
 
-
 
9272
  def __eq__(self, other):
-
 
9273
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
9274
 
-
 
9275
  def __ne__(self, other):
-
 
9276
    return not (self == other)
-
 
9277
 
-
 
9278
class getHistoricBadInventoryByScans_args:
-
 
9279
  """
-
 
9280
  Attributes:
-
 
9281
   - date
-
 
9282
  """
-
 
9283
 
-
 
9284
  thrift_spec = (
-
 
9285
    None, # 0
-
 
9286
    (1, TType.I64, 'date', None, None, ), # 1
-
 
9287
  )
-
 
9288
 
-
 
9289
  def __init__(self, date=None,):
-
 
9290
    self.date = date
-
 
9291
 
-
 
9292
  def read(self, iprot):
-
 
9293
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
9294
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
9295
      return
-
 
9296
    iprot.readStructBegin()
-
 
9297
    while True:
-
 
9298
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
9299
      if ftype == TType.STOP:
-
 
9300
        break
-
 
9301
      if fid == 1:
-
 
9302
        if ftype == TType.I64:
-
 
9303
          self.date = iprot.readI64();
-
 
9304
        else:
-
 
9305
          iprot.skip(ftype)
-
 
9306
      else:
-
 
9307
        iprot.skip(ftype)
-
 
9308
      iprot.readFieldEnd()
-
 
9309
    iprot.readStructEnd()
-
 
9310
 
-
 
9311
  def write(self, oprot):
-
 
9312
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
9313
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
9314
      return
-
 
9315
    oprot.writeStructBegin('getHistoricBadInventoryByScans_args')
-
 
9316
    if self.date is not None:
-
 
9317
      oprot.writeFieldBegin('date', TType.I64, 1)
-
 
9318
      oprot.writeI64(self.date)
-
 
9319
      oprot.writeFieldEnd()
-
 
9320
    oprot.writeFieldStop()
-
 
9321
    oprot.writeStructEnd()
-
 
9322
 
-
 
9323
  def validate(self):
-
 
9324
    return
-
 
9325
 
-
 
9326
 
-
 
9327
  def __repr__(self):
-
 
9328
    L = ['%s=%r' % (key, value)
-
 
9329
      for key, value in self.__dict__.iteritems()]
-
 
9330
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
9331
 
-
 
9332
  def __eq__(self, other):
-
 
9333
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
9334
 
-
 
9335
  def __ne__(self, other):
-
 
9336
    return not (self == other)
-
 
9337
 
-
 
9338
class getHistoricBadInventoryByScans_result:
-
 
9339
  """
-
 
9340
  Attributes:
-
 
9341
   - success
-
 
9342
   - wex
-
 
9343
  """
-
 
9344
 
-
 
9345
  thrift_spec = (
-
 
9346
    (0, TType.LIST, 'success', (TType.STRUCT,(InventoryAvailability, InventoryAvailability.thrift_spec)), None, ), # 0
-
 
9347
    (1, TType.STRUCT, 'wex', (WarehouseServiceException, WarehouseServiceException.thrift_spec), None, ), # 1
-
 
9348
  )
-
 
9349
 
-
 
9350
  def __init__(self, success=None, wex=None,):
-
 
9351
    self.success = success
-
 
9352
    self.wex = wex
-
 
9353
 
-
 
9354
  def read(self, iprot):
-
 
9355
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
9356
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
9357
      return
-
 
9358
    iprot.readStructBegin()
-
 
9359
    while True:
-
 
9360
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
9361
      if ftype == TType.STOP:
-
 
9362
        break
-
 
9363
      if fid == 0:
-
 
9364
        if ftype == TType.LIST:
-
 
9365
          self.success = []
-
 
9366
          (_etype187, _size184) = iprot.readListBegin()
-
 
9367
          for _i188 in xrange(_size184):
-
 
9368
            _elem189 = InventoryAvailability()
-
 
9369
            _elem189.read(iprot)
-
 
9370
            self.success.append(_elem189)
-
 
9371
          iprot.readListEnd()
-
 
9372
        else:
-
 
9373
          iprot.skip(ftype)
-
 
9374
      elif fid == 1:
-
 
9375
        if ftype == TType.STRUCT:
-
 
9376
          self.wex = WarehouseServiceException()
-
 
9377
          self.wex.read(iprot)
-
 
9378
        else:
-
 
9379
          iprot.skip(ftype)
-
 
9380
      else:
-
 
9381
        iprot.skip(ftype)
-
 
9382
      iprot.readFieldEnd()
-
 
9383
    iprot.readStructEnd()
-
 
9384
 
-
 
9385
  def write(self, oprot):
-
 
9386
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
9387
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
9388
      return
-
 
9389
    oprot.writeStructBegin('getHistoricBadInventoryByScans_result')
-
 
9390
    if self.success is not None:
-
 
9391
      oprot.writeFieldBegin('success', TType.LIST, 0)
-
 
9392
      oprot.writeListBegin(TType.STRUCT, len(self.success))
-
 
9393
      for iter190 in self.success:
-
 
9394
        iter190.write(oprot)
-
 
9395
      oprot.writeListEnd()
-
 
9396
      oprot.writeFieldEnd()
-
 
9397
    if self.wex is not None:
-
 
9398
      oprot.writeFieldBegin('wex', TType.STRUCT, 1)
-
 
9399
      self.wex.write(oprot)
-
 
9400
      oprot.writeFieldEnd()
-
 
9401
    oprot.writeFieldStop()
-
 
9402
    oprot.writeStructEnd()
-
 
9403
 
-
 
9404
  def validate(self):
8990
    return
9405
    return
8991
 
9406
 
8992
 
9407
 
8993
  def __repr__(self):
9408
  def __repr__(self):
8994
    L = ['%s=%r' % (key, value)
9409
    L = ['%s=%r' % (key, value)