Subversion Repositories SmartDukaan

Rev

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

Rev 8590 Rev 8616
Line 862... Line 862...
862
    pass
862
    pass
863
 
863
 
864
  def getAllItemstoListOnNonFba(self, ):
864
  def getAllItemstoListOnNonFba(self, ):
865
    pass
865
    pass
866
 
866
 
-
 
867
  def getAllSnapdealListedActiveItems(self, ):
-
 
868
    pass
-
 
869
 
867
 
870
 
868
class Client(shop2020.thriftpy.generic.GenericService.Client, Iface):
871
class Client(shop2020.thriftpy.generic.GenericService.Client, Iface):
869
  def __init__(self, iprot, oprot=None):
872
  def __init__(self, iprot, oprot=None):
870
    shop2020.thriftpy.generic.GenericService.Client.__init__(self, iprot, oprot)
873
    shop2020.thriftpy.generic.GenericService.Client.__init__(self, iprot, oprot)
871
 
874
 
Line 4473... Line 4476...
4473
    self._iprot.readMessageEnd()
4476
    self._iprot.readMessageEnd()
4474
    if result.success is not None:
4477
    if result.success is not None:
4475
      return result.success
4478
      return result.success
4476
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllItemstoListOnNonFba failed: unknown result");
4479
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllItemstoListOnNonFba failed: unknown result");
4477
 
4480
 
-
 
4481
  def getAllSnapdealListedActiveItems(self, ):
-
 
4482
    self.send_getAllSnapdealListedActiveItems()
-
 
4483
    return self.recv_getAllSnapdealListedActiveItems()
-
 
4484
 
-
 
4485
  def send_getAllSnapdealListedActiveItems(self, ):
-
 
4486
    self._oprot.writeMessageBegin('getAllSnapdealListedActiveItems', TMessageType.CALL, self._seqid)
-
 
4487
    args = getAllSnapdealListedActiveItems_args()
-
 
4488
    args.write(self._oprot)
-
 
4489
    self._oprot.writeMessageEnd()
-
 
4490
    self._oprot.trans.flush()
-
 
4491
 
-
 
4492
  def recv_getAllSnapdealListedActiveItems(self, ):
-
 
4493
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
4494
    if mtype == TMessageType.EXCEPTION:
-
 
4495
      x = TApplicationException()
-
 
4496
      x.read(self._iprot)
-
 
4497
      self._iprot.readMessageEnd()
-
 
4498
      raise x
-
 
4499
    result = getAllSnapdealListedActiveItems_result()
-
 
4500
    result.read(self._iprot)
-
 
4501
    self._iprot.readMessageEnd()
-
 
4502
    if result.success is not None:
-
 
4503
      return result.success
-
 
4504
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllSnapdealListedActiveItems failed: unknown result");
-
 
4505
 
4478
 
4506
 
4479
class Processor(shop2020.thriftpy.generic.GenericService.Processor, Iface, TProcessor):
4507
class Processor(shop2020.thriftpy.generic.GenericService.Processor, Iface, TProcessor):
4480
  def __init__(self, handler):
4508
  def __init__(self, handler):
4481
    shop2020.thriftpy.generic.GenericService.Processor.__init__(self, handler)
4509
    shop2020.thriftpy.generic.GenericService.Processor.__init__(self, handler)
4482
    self._processMap["addItem"] = Processor.process_addItem
4510
    self._processMap["addItem"] = Processor.process_addItem
Line 4594... Line 4622...
4594
    self._processMap["updateEbayItem"] = Processor.process_updateEbayItem
4622
    self._processMap["updateEbayItem"] = Processor.process_updateEbayItem
4595
    self._processMap["getAmazonListedItems"] = Processor.process_getAmazonListedItems
4623
    self._processMap["getAmazonListedItems"] = Processor.process_getAmazonListedItems
4596
    self._processMap["updateAmazonAttributesInBulk"] = Processor.process_updateAmazonAttributesInBulk
4624
    self._processMap["updateAmazonAttributesInBulk"] = Processor.process_updateAmazonAttributesInBulk
4597
    self._processMap["getAllItemstoListOnFba"] = Processor.process_getAllItemstoListOnFba
4625
    self._processMap["getAllItemstoListOnFba"] = Processor.process_getAllItemstoListOnFba
4598
    self._processMap["getAllItemstoListOnNonFba"] = Processor.process_getAllItemstoListOnNonFba
4626
    self._processMap["getAllItemstoListOnNonFba"] = Processor.process_getAllItemstoListOnNonFba
-
 
4627
    self._processMap["getAllSnapdealListedActiveItems"] = Processor.process_getAllSnapdealListedActiveItems
4599
 
4628
 
4600
  def process(self, iprot, oprot):
4629
  def process(self, iprot, oprot):
4601
    (name, type, seqid) = iprot.readMessageBegin()
4630
    (name, type, seqid) = iprot.readMessageBegin()
4602
    if name not in self._processMap:
4631
    if name not in self._processMap:
4603
      iprot.skip(TType.STRUCT)
4632
      iprot.skip(TType.STRUCT)
Line 6011... Line 6040...
6011
    oprot.writeMessageBegin("getAllItemstoListOnNonFba", TMessageType.REPLY, seqid)
6040
    oprot.writeMessageBegin("getAllItemstoListOnNonFba", TMessageType.REPLY, seqid)
6012
    result.write(oprot)
6041
    result.write(oprot)
6013
    oprot.writeMessageEnd()
6042
    oprot.writeMessageEnd()
6014
    oprot.trans.flush()
6043
    oprot.trans.flush()
6015
 
6044
 
-
 
6045
  def process_getAllSnapdealListedActiveItems(self, seqid, iprot, oprot):
-
 
6046
    args = getAllSnapdealListedActiveItems_args()
-
 
6047
    args.read(iprot)
-
 
6048
    iprot.readMessageEnd()
-
 
6049
    result = getAllSnapdealListedActiveItems_result()
-
 
6050
    result.success = self._handler.getAllSnapdealListedActiveItems()
-
 
6051
    oprot.writeMessageBegin("getAllSnapdealListedActiveItems", TMessageType.REPLY, seqid)
-
 
6052
    result.write(oprot)
-
 
6053
    oprot.writeMessageEnd()
-
 
6054
    oprot.trans.flush()
-
 
6055
 
6016
 
6056
 
6017
# HELPER FUNCTIONS AND STRUCTURES
6057
# HELPER FUNCTIONS AND STRUCTURES
6018
 
6058
 
6019
class addItem_args:
6059
class addItem_args:
6020
  """
6060
  """
Line 20872... Line 20912...
20872
      oprot.writeListEnd()
20912
      oprot.writeListEnd()
20873
      oprot.writeFieldEnd()
20913
      oprot.writeFieldEnd()
20874
    oprot.writeFieldStop()
20914
    oprot.writeFieldStop()
20875
    oprot.writeStructEnd()
20915
    oprot.writeStructEnd()
20876
 
20916
 
-
 
20917
  def validate(self):
-
 
20918
    return
-
 
20919
 
-
 
20920
 
-
 
20921
  def __repr__(self):
-
 
20922
    L = ['%s=%r' % (key, value)
-
 
20923
      for key, value in self.__dict__.iteritems()]
-
 
20924
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
20925
 
-
 
20926
  def __eq__(self, other):
-
 
20927
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
20928
 
-
 
20929
  def __ne__(self, other):
-
 
20930
    return not (self == other)
-
 
20931
 
-
 
20932
class getAllSnapdealListedActiveItems_args:
-
 
20933
 
-
 
20934
  thrift_spec = (
-
 
20935
  )
-
 
20936
 
-
 
20937
  def read(self, iprot):
-
 
20938
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
20939
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
20940
      return
-
 
20941
    iprot.readStructBegin()
-
 
20942
    while True:
-
 
20943
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
20944
      if ftype == TType.STOP:
-
 
20945
        break
-
 
20946
      else:
-
 
20947
        iprot.skip(ftype)
-
 
20948
      iprot.readFieldEnd()
-
 
20949
    iprot.readStructEnd()
-
 
20950
 
-
 
20951
  def write(self, oprot):
-
 
20952
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
20953
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
20954
      return
-
 
20955
    oprot.writeStructBegin('getAllSnapdealListedActiveItems_args')
-
 
20956
    oprot.writeFieldStop()
-
 
20957
    oprot.writeStructEnd()
-
 
20958
 
-
 
20959
  def validate(self):
-
 
20960
    return
-
 
20961
 
-
 
20962
 
-
 
20963
  def __repr__(self):
-
 
20964
    L = ['%s=%r' % (key, value)
-
 
20965
      for key, value in self.__dict__.iteritems()]
-
 
20966
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
20967
 
-
 
20968
  def __eq__(self, other):
-
 
20969
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
20970
 
-
 
20971
  def __ne__(self, other):
-
 
20972
    return not (self == other)
-
 
20973
 
-
 
20974
class getAllSnapdealListedActiveItems_result:
-
 
20975
  """
-
 
20976
  Attributes:
-
 
20977
   - success
-
 
20978
  """
-
 
20979
 
-
 
20980
  thrift_spec = (
-
 
20981
    (0, TType.LIST, 'success', (TType.STRUCT,(Item, Item.thrift_spec)), None, ), # 0
-
 
20982
  )
-
 
20983
 
-
 
20984
  def __init__(self, success=None,):
-
 
20985
    self.success = success
-
 
20986
 
-
 
20987
  def read(self, iprot):
-
 
20988
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
20989
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
20990
      return
-
 
20991
    iprot.readStructBegin()
-
 
20992
    while True:
-
 
20993
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
20994
      if ftype == TType.STOP:
-
 
20995
        break
-
 
20996
      if fid == 0:
-
 
20997
        if ftype == TType.LIST:
-
 
20998
          self.success = []
-
 
20999
          (_etype470, _size467) = iprot.readListBegin()
-
 
21000
          for _i471 in xrange(_size467):
-
 
21001
            _elem472 = Item()
-
 
21002
            _elem472.read(iprot)
-
 
21003
            self.success.append(_elem472)
-
 
21004
          iprot.readListEnd()
-
 
21005
        else:
-
 
21006
          iprot.skip(ftype)
-
 
21007
      else:
-
 
21008
        iprot.skip(ftype)
-
 
21009
      iprot.readFieldEnd()
-
 
21010
    iprot.readStructEnd()
-
 
21011
 
-
 
21012
  def write(self, oprot):
-
 
21013
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
21014
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
21015
      return
-
 
21016
    oprot.writeStructBegin('getAllSnapdealListedActiveItems_result')
-
 
21017
    if self.success is not None:
-
 
21018
      oprot.writeFieldBegin('success', TType.LIST, 0)
-
 
21019
      oprot.writeListBegin(TType.STRUCT, len(self.success))
-
 
21020
      for iter473 in self.success:
-
 
21021
        iter473.write(oprot)
-
 
21022
      oprot.writeListEnd()
-
 
21023
      oprot.writeFieldEnd()
-
 
21024
    oprot.writeFieldStop()
-
 
21025
    oprot.writeStructEnd()
-
 
21026
 
20877
  def validate(self):
21027
  def validate(self):
20878
    return
21028
    return
20879
 
21029
 
20880
 
21030
 
20881
  def __repr__(self):
21031
  def __repr__(self):