Subversion Repositories SmartDukaan

Rev

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

Rev 15702 Rev 15706
Line 1322... Line 1322...
1322
    pass
1322
    pass
1323
 
1323
 
1324
  def getAllItemstoListOnFbd(self, ):
1324
  def getAllItemstoListOnFbd(self, ):
1325
    pass
1325
    pass
1326
 
1326
 
-
 
1327
  def getAllFbdListedItems(self, ):
-
 
1328
    pass
-
 
1329
 
1327
 
1330
 
1328
class Client(shop2020.thriftpy.generic.GenericService.Client, Iface):
1331
class Client(shop2020.thriftpy.generic.GenericService.Client, Iface):
1329
  def __init__(self, iprot, oprot=None):
1332
  def __init__(self, iprot, oprot=None):
1330
    shop2020.thriftpy.generic.GenericService.Client.__init__(self, iprot, oprot)
1333
    shop2020.thriftpy.generic.GenericService.Client.__init__(self, iprot, oprot)
1331
 
1334
 
Line 7051... Line 7054...
7051
    self._iprot.readMessageEnd()
7054
    self._iprot.readMessageEnd()
7052
    if result.success is not None:
7055
    if result.success is not None:
7053
      return result.success
7056
      return result.success
7054
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllItemstoListOnFbd failed: unknown result");
7057
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllItemstoListOnFbd failed: unknown result");
7055
 
7058
 
-
 
7059
  def getAllFbdListedItems(self, ):
-
 
7060
    self.send_getAllFbdListedItems()
-
 
7061
    return self.recv_getAllFbdListedItems()
-
 
7062
 
-
 
7063
  def send_getAllFbdListedItems(self, ):
-
 
7064
    self._oprot.writeMessageBegin('getAllFbdListedItems', TMessageType.CALL, self._seqid)
-
 
7065
    args = getAllFbdListedItems_args()
-
 
7066
    args.write(self._oprot)
-
 
7067
    self._oprot.writeMessageEnd()
-
 
7068
    self._oprot.trans.flush()
-
 
7069
 
-
 
7070
  def recv_getAllFbdListedItems(self, ):
-
 
7071
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
7072
    if mtype == TMessageType.EXCEPTION:
-
 
7073
      x = TApplicationException()
-
 
7074
      x.read(self._iprot)
-
 
7075
      self._iprot.readMessageEnd()
-
 
7076
      raise x
-
 
7077
    result = getAllFbdListedItems_result()
-
 
7078
    result.read(self._iprot)
-
 
7079
    self._iprot.readMessageEnd()
-
 
7080
    if result.success is not None:
-
 
7081
      return result.success
-
 
7082
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllFbdListedItems failed: unknown result");
-
 
7083
 
7056
 
7084
 
7057
class Processor(shop2020.thriftpy.generic.GenericService.Processor, Iface, TProcessor):
7085
class Processor(shop2020.thriftpy.generic.GenericService.Processor, Iface, TProcessor):
7058
  def __init__(self, handler):
7086
  def __init__(self, handler):
7059
    shop2020.thriftpy.generic.GenericService.Processor.__init__(self, handler)
7087
    shop2020.thriftpy.generic.GenericService.Processor.__init__(self, handler)
7060
    self._processMap["addItem"] = Processor.process_addItem
7088
    self._processMap["addItem"] = Processor.process_addItem
Line 7243... Line 7271...
7243
    self._processMap["addHsItem"] = Processor.process_addHsItem
7271
    self._processMap["addHsItem"] = Processor.process_addHsItem
7244
    self._processMap["getHsItem"] = Processor.process_getHsItem
7272
    self._processMap["getHsItem"] = Processor.process_getHsItem
7245
    self._processMap["updateHsItem"] = Processor.process_updateHsItem
7273
    self._processMap["updateHsItem"] = Processor.process_updateHsItem
7246
    self._processMap["getPricingForDtr"] = Processor.process_getPricingForDtr
7274
    self._processMap["getPricingForDtr"] = Processor.process_getPricingForDtr
7247
    self._processMap["getAllItemstoListOnFbd"] = Processor.process_getAllItemstoListOnFbd
7275
    self._processMap["getAllItemstoListOnFbd"] = Processor.process_getAllItemstoListOnFbd
-
 
7276
    self._processMap["getAllFbdListedItems"] = Processor.process_getAllFbdListedItems
7248
 
7277
 
7249
  def process(self, iprot, oprot):
7278
  def process(self, iprot, oprot):
7250
    (name, type, seqid) = iprot.readMessageBegin()
7279
    (name, type, seqid) = iprot.readMessageBegin()
7251
    if name not in self._processMap:
7280
    if name not in self._processMap:
7252
      iprot.skip(TType.STRUCT)
7281
      iprot.skip(TType.STRUCT)
Line 9471... Line 9500...
9471
    oprot.writeMessageBegin("getAllItemstoListOnFbd", TMessageType.REPLY, seqid)
9500
    oprot.writeMessageBegin("getAllItemstoListOnFbd", TMessageType.REPLY, seqid)
9472
    result.write(oprot)
9501
    result.write(oprot)
9473
    oprot.writeMessageEnd()
9502
    oprot.writeMessageEnd()
9474
    oprot.trans.flush()
9503
    oprot.trans.flush()
9475
 
9504
 
-
 
9505
  def process_getAllFbdListedItems(self, seqid, iprot, oprot):
-
 
9506
    args = getAllFbdListedItems_args()
-
 
9507
    args.read(iprot)
-
 
9508
    iprot.readMessageEnd()
-
 
9509
    result = getAllFbdListedItems_result()
-
 
9510
    result.success = self._handler.getAllFbdListedItems()
-
 
9511
    oprot.writeMessageBegin("getAllFbdListedItems", TMessageType.REPLY, seqid)
-
 
9512
    result.write(oprot)
-
 
9513
    oprot.writeMessageEnd()
-
 
9514
    oprot.trans.flush()
-
 
9515
 
9476
 
9516
 
9477
# HELPER FUNCTIONS AND STRUCTURES
9517
# HELPER FUNCTIONS AND STRUCTURES
9478
 
9518
 
9479
class addItem_args:
9519
class addItem_args:
9480
  """
9520
  """
Line 33380... Line 33420...
33380
      oprot.writeListEnd()
33420
      oprot.writeListEnd()
33381
      oprot.writeFieldEnd()
33421
      oprot.writeFieldEnd()
33382
    oprot.writeFieldStop()
33422
    oprot.writeFieldStop()
33383
    oprot.writeStructEnd()
33423
    oprot.writeStructEnd()
33384
 
33424
 
-
 
33425
  def validate(self):
-
 
33426
    return
-
 
33427
 
-
 
33428
 
-
 
33429
  def __repr__(self):
-
 
33430
    L = ['%s=%r' % (key, value)
-
 
33431
      for key, value in self.__dict__.iteritems()]
-
 
33432
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
33433
 
-
 
33434
  def __eq__(self, other):
-
 
33435
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
33436
 
-
 
33437
  def __ne__(self, other):
-
 
33438
    return not (self == other)
-
 
33439
 
-
 
33440
class getAllFbdListedItems_args:
-
 
33441
 
-
 
33442
  thrift_spec = (
-
 
33443
  )
-
 
33444
 
-
 
33445
  def read(self, iprot):
-
 
33446
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
33447
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
33448
      return
-
 
33449
    iprot.readStructBegin()
-
 
33450
    while True:
-
 
33451
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
33452
      if ftype == TType.STOP:
-
 
33453
        break
-
 
33454
      else:
-
 
33455
        iprot.skip(ftype)
-
 
33456
      iprot.readFieldEnd()
-
 
33457
    iprot.readStructEnd()
-
 
33458
 
-
 
33459
  def write(self, oprot):
-
 
33460
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
33461
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
33462
      return
-
 
33463
    oprot.writeStructBegin('getAllFbdListedItems_args')
-
 
33464
    oprot.writeFieldStop()
-
 
33465
    oprot.writeStructEnd()
-
 
33466
 
-
 
33467
  def validate(self):
-
 
33468
    return
-
 
33469
 
-
 
33470
 
-
 
33471
  def __repr__(self):
-
 
33472
    L = ['%s=%r' % (key, value)
-
 
33473
      for key, value in self.__dict__.iteritems()]
-
 
33474
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
33475
 
-
 
33476
  def __eq__(self, other):
-
 
33477
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
33478
 
-
 
33479
  def __ne__(self, other):
-
 
33480
    return not (self == other)
-
 
33481
 
-
 
33482
class getAllFbdListedItems_result:
-
 
33483
  """
-
 
33484
  Attributes:
-
 
33485
   - success
-
 
33486
  """
-
 
33487
 
-
 
33488
  thrift_spec = (
-
 
33489
    (0, TType.LIST, 'success', (TType.STRUCT,(Amazonlisted, Amazonlisted.thrift_spec)), None, ), # 0
-
 
33490
  )
-
 
33491
 
-
 
33492
  def __init__(self, success=None,):
-
 
33493
    self.success = success
-
 
33494
 
-
 
33495
  def read(self, iprot):
-
 
33496
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
33497
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
33498
      return
-
 
33499
    iprot.readStructBegin()
-
 
33500
    while True:
-
 
33501
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
33502
      if ftype == TType.STOP:
-
 
33503
        break
-
 
33504
      if fid == 0:
-
 
33505
        if ftype == TType.LIST:
-
 
33506
          self.success = []
-
 
33507
          (_etype862, _size859) = iprot.readListBegin()
-
 
33508
          for _i863 in xrange(_size859):
-
 
33509
            _elem864 = Amazonlisted()
-
 
33510
            _elem864.read(iprot)
-
 
33511
            self.success.append(_elem864)
-
 
33512
          iprot.readListEnd()
-
 
33513
        else:
-
 
33514
          iprot.skip(ftype)
-
 
33515
      else:
-
 
33516
        iprot.skip(ftype)
-
 
33517
      iprot.readFieldEnd()
-
 
33518
    iprot.readStructEnd()
-
 
33519
 
-
 
33520
  def write(self, oprot):
-
 
33521
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
33522
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
33523
      return
-
 
33524
    oprot.writeStructBegin('getAllFbdListedItems_result')
-
 
33525
    if self.success is not None:
-
 
33526
      oprot.writeFieldBegin('success', TType.LIST, 0)
-
 
33527
      oprot.writeListBegin(TType.STRUCT, len(self.success))
-
 
33528
      for iter865 in self.success:
-
 
33529
        iter865.write(oprot)
-
 
33530
      oprot.writeListEnd()
-
 
33531
      oprot.writeFieldEnd()
-
 
33532
    oprot.writeFieldStop()
-
 
33533
    oprot.writeStructEnd()
-
 
33534
 
33385
  def validate(self):
33535
  def validate(self):
33386
    return
33536
    return
33387
 
33537
 
33388
 
33538
 
33389
  def __repr__(self):
33539
  def __repr__(self):