Subversion Repositories SmartDukaan

Rev

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

Rev 8182 Rev 8379
Line 809... Line 809...
809
    Parameters:
809
    Parameters:
810
     - amazonlisted
810
     - amazonlisted
811
    """
811
    """
812
    pass
812
    pass
813
 
813
 
-
 
814
  def getAllItemstoListOnFba(self, ):
-
 
815
    pass
-
 
816
 
-
 
817
  def getAllItemstoListOnNonFba(self, ):
-
 
818
    pass
-
 
819
 
814
 
820
 
815
class Client(shop2020.thriftpy.generic.GenericService.Client, Iface):
821
class Client(shop2020.thriftpy.generic.GenericService.Client, Iface):
816
  def __init__(self, iprot, oprot=None):
822
  def __init__(self, iprot, oprot=None):
817
    shop2020.thriftpy.generic.GenericService.Client.__init__(self, iprot, oprot)
823
    shop2020.thriftpy.generic.GenericService.Client.__init__(self, iprot, oprot)
818
 
824
 
Line 4155... Line 4161...
4155
    self._iprot.readMessageEnd()
4161
    self._iprot.readMessageEnd()
4156
    if result.success is not None:
4162
    if result.success is not None:
4157
      return result.success
4163
      return result.success
4158
    raise TApplicationException(TApplicationException.MISSING_RESULT, "updateAmazonAttributesInBulk failed: unknown result");
4164
    raise TApplicationException(TApplicationException.MISSING_RESULT, "updateAmazonAttributesInBulk failed: unknown result");
4159
 
4165
 
-
 
4166
  def getAllItemstoListOnFba(self, ):
-
 
4167
    self.send_getAllItemstoListOnFba()
-
 
4168
    return self.recv_getAllItemstoListOnFba()
-
 
4169
 
-
 
4170
  def send_getAllItemstoListOnFba(self, ):
-
 
4171
    self._oprot.writeMessageBegin('getAllItemstoListOnFba', TMessageType.CALL, self._seqid)
-
 
4172
    args = getAllItemstoListOnFba_args()
-
 
4173
    args.write(self._oprot)
-
 
4174
    self._oprot.writeMessageEnd()
-
 
4175
    self._oprot.trans.flush()
-
 
4176
 
-
 
4177
  def recv_getAllItemstoListOnFba(self, ):
-
 
4178
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
4179
    if mtype == TMessageType.EXCEPTION:
-
 
4180
      x = TApplicationException()
-
 
4181
      x.read(self._iprot)
-
 
4182
      self._iprot.readMessageEnd()
-
 
4183
      raise x
-
 
4184
    result = getAllItemstoListOnFba_result()
-
 
4185
    result.read(self._iprot)
-
 
4186
    self._iprot.readMessageEnd()
-
 
4187
    if result.success is not None:
-
 
4188
      return result.success
-
 
4189
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllItemstoListOnFba failed: unknown result");
-
 
4190
 
-
 
4191
  def getAllItemstoListOnNonFba(self, ):
-
 
4192
    self.send_getAllItemstoListOnNonFba()
-
 
4193
    return self.recv_getAllItemstoListOnNonFba()
-
 
4194
 
-
 
4195
  def send_getAllItemstoListOnNonFba(self, ):
-
 
4196
    self._oprot.writeMessageBegin('getAllItemstoListOnNonFba', TMessageType.CALL, self._seqid)
-
 
4197
    args = getAllItemstoListOnNonFba_args()
-
 
4198
    args.write(self._oprot)
-
 
4199
    self._oprot.writeMessageEnd()
-
 
4200
    self._oprot.trans.flush()
-
 
4201
 
-
 
4202
  def recv_getAllItemstoListOnNonFba(self, ):
-
 
4203
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
4204
    if mtype == TMessageType.EXCEPTION:
-
 
4205
      x = TApplicationException()
-
 
4206
      x.read(self._iprot)
-
 
4207
      self._iprot.readMessageEnd()
-
 
4208
      raise x
-
 
4209
    result = getAllItemstoListOnNonFba_result()
-
 
4210
    result.read(self._iprot)
-
 
4211
    self._iprot.readMessageEnd()
-
 
4212
    if result.success is not None:
-
 
4213
      return result.success
-
 
4214
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllItemstoListOnNonFba failed: unknown result");
-
 
4215
 
4160
 
4216
 
4161
class Processor(shop2020.thriftpy.generic.GenericService.Processor, Iface, TProcessor):
4217
class Processor(shop2020.thriftpy.generic.GenericService.Processor, Iface, TProcessor):
4162
  def __init__(self, handler):
4218
  def __init__(self, handler):
4163
    shop2020.thriftpy.generic.GenericService.Processor.__init__(self, handler)
4219
    shop2020.thriftpy.generic.GenericService.Processor.__init__(self, handler)
4164
    self._processMap["addItem"] = Processor.process_addItem
4220
    self._processMap["addItem"] = Processor.process_addItem
Line 4266... Line 4322...
4266
    self._processMap["addEbayItem"] = Processor.process_addEbayItem
4322
    self._processMap["addEbayItem"] = Processor.process_addEbayItem
4267
    self._processMap["getEbayItem"] = Processor.process_getEbayItem
4323
    self._processMap["getEbayItem"] = Processor.process_getEbayItem
4268
    self._processMap["updateEbayItem"] = Processor.process_updateEbayItem
4324
    self._processMap["updateEbayItem"] = Processor.process_updateEbayItem
4269
    self._processMap["getAmazonListedItems"] = Processor.process_getAmazonListedItems
4325
    self._processMap["getAmazonListedItems"] = Processor.process_getAmazonListedItems
4270
    self._processMap["updateAmazonAttributesInBulk"] = Processor.process_updateAmazonAttributesInBulk
4326
    self._processMap["updateAmazonAttributesInBulk"] = Processor.process_updateAmazonAttributesInBulk
-
 
4327
    self._processMap["getAllItemstoListOnFba"] = Processor.process_getAllItemstoListOnFba
-
 
4328
    self._processMap["getAllItemstoListOnNonFba"] = Processor.process_getAllItemstoListOnNonFba
4271
 
4329
 
4272
  def process(self, iprot, oprot):
4330
  def process(self, iprot, oprot):
4273
    (name, type, seqid) = iprot.readMessageBegin()
4331
    (name, type, seqid) = iprot.readMessageBegin()
4274
    if name not in self._processMap:
4332
    if name not in self._processMap:
4275
      iprot.skip(TType.STRUCT)
4333
      iprot.skip(TType.STRUCT)
Line 5573... Line 5631...
5573
    oprot.writeMessageBegin("updateAmazonAttributesInBulk", TMessageType.REPLY, seqid)
5631
    oprot.writeMessageBegin("updateAmazonAttributesInBulk", TMessageType.REPLY, seqid)
5574
    result.write(oprot)
5632
    result.write(oprot)
5575
    oprot.writeMessageEnd()
5633
    oprot.writeMessageEnd()
5576
    oprot.trans.flush()
5634
    oprot.trans.flush()
5577
 
5635
 
-
 
5636
  def process_getAllItemstoListOnFba(self, seqid, iprot, oprot):
-
 
5637
    args = getAllItemstoListOnFba_args()
-
 
5638
    args.read(iprot)
-
 
5639
    iprot.readMessageEnd()
-
 
5640
    result = getAllItemstoListOnFba_result()
-
 
5641
    result.success = self._handler.getAllItemstoListOnFba()
-
 
5642
    oprot.writeMessageBegin("getAllItemstoListOnFba", TMessageType.REPLY, seqid)
-
 
5643
    result.write(oprot)
-
 
5644
    oprot.writeMessageEnd()
-
 
5645
    oprot.trans.flush()
-
 
5646
 
-
 
5647
  def process_getAllItemstoListOnNonFba(self, seqid, iprot, oprot):
-
 
5648
    args = getAllItemstoListOnNonFba_args()
-
 
5649
    args.read(iprot)
-
 
5650
    iprot.readMessageEnd()
-
 
5651
    result = getAllItemstoListOnNonFba_result()
-
 
5652
    result.success = self._handler.getAllItemstoListOnNonFba()
-
 
5653
    oprot.writeMessageBegin("getAllItemstoListOnNonFba", TMessageType.REPLY, seqid)
-
 
5654
    result.write(oprot)
-
 
5655
    oprot.writeMessageEnd()
-
 
5656
    oprot.trans.flush()
-
 
5657
 
5578
 
5658
 
5579
# HELPER FUNCTIONS AND STRUCTURES
5659
# HELPER FUNCTIONS AND STRUCTURES
5580
 
5660
 
5581
class addItem_args:
5661
class addItem_args:
5582
  """
5662
  """
Line 19374... Line 19454...
19374
      oprot.writeFieldEnd()
19454
      oprot.writeFieldEnd()
19375
    oprot.writeFieldStop()
19455
    oprot.writeFieldStop()
19376
    oprot.writeStructEnd()
19456
    oprot.writeStructEnd()
19377
 
19457
 
19378
  def validate(self):
19458
  def validate(self):
-
 
19459
    return
-
 
19460
 
-
 
19461
 
-
 
19462
  def __repr__(self):
-
 
19463
    L = ['%s=%r' % (key, value)
-
 
19464
      for key, value in self.__dict__.iteritems()]
-
 
19465
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
19466
 
-
 
19467
  def __eq__(self, other):
-
 
19468
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
19469
 
-
 
19470
  def __ne__(self, other):
-
 
19471
    return not (self == other)
-
 
19472
 
-
 
19473
class getAllItemstoListOnFba_args:
-
 
19474
 
-
 
19475
  thrift_spec = (
-
 
19476
  )
-
 
19477
 
-
 
19478
  def read(self, iprot):
-
 
19479
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
19480
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
19481
      return
-
 
19482
    iprot.readStructBegin()
-
 
19483
    while True:
-
 
19484
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
19485
      if ftype == TType.STOP:
-
 
19486
        break
-
 
19487
      else:
-
 
19488
        iprot.skip(ftype)
-
 
19489
      iprot.readFieldEnd()
-
 
19490
    iprot.readStructEnd()
-
 
19491
 
-
 
19492
  def write(self, oprot):
-
 
19493
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
19494
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
19495
      return
-
 
19496
    oprot.writeStructBegin('getAllItemstoListOnFba_args')
-
 
19497
    oprot.writeFieldStop()
-
 
19498
    oprot.writeStructEnd()
-
 
19499
 
-
 
19500
  def validate(self):
-
 
19501
    return
-
 
19502
 
-
 
19503
 
-
 
19504
  def __repr__(self):
-
 
19505
    L = ['%s=%r' % (key, value)
-
 
19506
      for key, value in self.__dict__.iteritems()]
-
 
19507
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
19508
 
-
 
19509
  def __eq__(self, other):
-
 
19510
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
19511
 
-
 
19512
  def __ne__(self, other):
-
 
19513
    return not (self == other)
-
 
19514
 
-
 
19515
class getAllItemstoListOnFba_result:
-
 
19516
  """
-
 
19517
  Attributes:
-
 
19518
   - success
-
 
19519
  """
-
 
19520
 
-
 
19521
  thrift_spec = (
-
 
19522
    (0, TType.LIST, 'success', (TType.STRUCT,(Amazonlisted, Amazonlisted.thrift_spec)), None, ), # 0
-
 
19523
  )
-
 
19524
 
-
 
19525
  def __init__(self, success=None,):
-
 
19526
    self.success = success
-
 
19527
 
-
 
19528
  def read(self, iprot):
-
 
19529
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
19530
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
19531
      return
-
 
19532
    iprot.readStructBegin()
-
 
19533
    while True:
-
 
19534
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
19535
      if ftype == TType.STOP:
-
 
19536
        break
-
 
19537
      if fid == 0:
-
 
19538
        if ftype == TType.LIST:
-
 
19539
          self.success = []
-
 
19540
          (_etype398, _size395) = iprot.readListBegin()
-
 
19541
          for _i399 in xrange(_size395):
-
 
19542
            _elem400 = Amazonlisted()
-
 
19543
            _elem400.read(iprot)
-
 
19544
            self.success.append(_elem400)
-
 
19545
          iprot.readListEnd()
-
 
19546
        else:
-
 
19547
          iprot.skip(ftype)
-
 
19548
      else:
-
 
19549
        iprot.skip(ftype)
-
 
19550
      iprot.readFieldEnd()
-
 
19551
    iprot.readStructEnd()
-
 
19552
 
-
 
19553
  def write(self, oprot):
-
 
19554
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
19555
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
19556
      return
-
 
19557
    oprot.writeStructBegin('getAllItemstoListOnFba_result')
-
 
19558
    if self.success is not None:
-
 
19559
      oprot.writeFieldBegin('success', TType.LIST, 0)
-
 
19560
      oprot.writeListBegin(TType.STRUCT, len(self.success))
-
 
19561
      for iter401 in self.success:
-
 
19562
        iter401.write(oprot)
-
 
19563
      oprot.writeListEnd()
-
 
19564
      oprot.writeFieldEnd()
-
 
19565
    oprot.writeFieldStop()
-
 
19566
    oprot.writeStructEnd()
-
 
19567
 
-
 
19568
  def validate(self):
-
 
19569
    return
-
 
19570
 
-
 
19571
 
-
 
19572
  def __repr__(self):
-
 
19573
    L = ['%s=%r' % (key, value)
-
 
19574
      for key, value in self.__dict__.iteritems()]
-
 
19575
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
19576
 
-
 
19577
  def __eq__(self, other):
-
 
19578
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
19579
 
-
 
19580
  def __ne__(self, other):
-
 
19581
    return not (self == other)
-
 
19582
 
-
 
19583
class getAllItemstoListOnNonFba_args:
-
 
19584
 
-
 
19585
  thrift_spec = (
-
 
19586
  )
-
 
19587
 
-
 
19588
  def read(self, iprot):
-
 
19589
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
19590
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
19591
      return
-
 
19592
    iprot.readStructBegin()
-
 
19593
    while True:
-
 
19594
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
19595
      if ftype == TType.STOP:
-
 
19596
        break
-
 
19597
      else:
-
 
19598
        iprot.skip(ftype)
-
 
19599
      iprot.readFieldEnd()
-
 
19600
    iprot.readStructEnd()
-
 
19601
 
-
 
19602
  def write(self, oprot):
-
 
19603
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
19604
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
19605
      return
-
 
19606
    oprot.writeStructBegin('getAllItemstoListOnNonFba_args')
-
 
19607
    oprot.writeFieldStop()
-
 
19608
    oprot.writeStructEnd()
-
 
19609
 
-
 
19610
  def validate(self):
-
 
19611
    return
-
 
19612
 
-
 
19613
 
-
 
19614
  def __repr__(self):
-
 
19615
    L = ['%s=%r' % (key, value)
-
 
19616
      for key, value in self.__dict__.iteritems()]
-
 
19617
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
19618
 
-
 
19619
  def __eq__(self, other):
-
 
19620
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
19621
 
-
 
19622
  def __ne__(self, other):
-
 
19623
    return not (self == other)
-
 
19624
 
-
 
19625
class getAllItemstoListOnNonFba_result:
-
 
19626
  """
-
 
19627
  Attributes:
-
 
19628
   - success
-
 
19629
  """
-
 
19630
 
-
 
19631
  thrift_spec = (
-
 
19632
    (0, TType.LIST, 'success', (TType.STRUCT,(Amazonlisted, Amazonlisted.thrift_spec)), None, ), # 0
-
 
19633
  )
-
 
19634
 
-
 
19635
  def __init__(self, success=None,):
-
 
19636
    self.success = success
-
 
19637
 
-
 
19638
  def read(self, iprot):
-
 
19639
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
19640
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
19641
      return
-
 
19642
    iprot.readStructBegin()
-
 
19643
    while True:
-
 
19644
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
19645
      if ftype == TType.STOP:
-
 
19646
        break
-
 
19647
      if fid == 0:
-
 
19648
        if ftype == TType.LIST:
-
 
19649
          self.success = []
-
 
19650
          (_etype405, _size402) = iprot.readListBegin()
-
 
19651
          for _i406 in xrange(_size402):
-
 
19652
            _elem407 = Amazonlisted()
-
 
19653
            _elem407.read(iprot)
-
 
19654
            self.success.append(_elem407)
-
 
19655
          iprot.readListEnd()
-
 
19656
        else:
-
 
19657
          iprot.skip(ftype)
-
 
19658
      else:
-
 
19659
        iprot.skip(ftype)
-
 
19660
      iprot.readFieldEnd()
-
 
19661
    iprot.readStructEnd()
-
 
19662
 
-
 
19663
  def write(self, oprot):
-
 
19664
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
19665
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
19666
      return
-
 
19667
    oprot.writeStructBegin('getAllItemstoListOnNonFba_result')
-
 
19668
    if self.success is not None:
-
 
19669
      oprot.writeFieldBegin('success', TType.LIST, 0)
-
 
19670
      oprot.writeListBegin(TType.STRUCT, len(self.success))
-
 
19671
      for iter408 in self.success:
-
 
19672
        iter408.write(oprot)
-
 
19673
      oprot.writeListEnd()
-
 
19674
      oprot.writeFieldEnd()
-
 
19675
    oprot.writeFieldStop()
-
 
19676
    oprot.writeStructEnd()
-
 
19677
 
-
 
19678
  def validate(self):
19379
    return
19679
    return
19380
 
19680
 
19381
 
19681
 
19382
  def __repr__(self):
19682
  def __repr__(self):
19383
    L = ['%s=%r' % (key, value)
19683
    L = ['%s=%r' % (key, value)