Subversion Repositories SmartDukaan

Rev

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

Rev 12620 Rev 12888
Line 1271... Line 1271...
1271
    pass
1271
    pass
1272
 
1272
 
1273
  def getExAffiliateItemInfo(self, ):
1273
  def getExAffiliateItemInfo(self, ):
1274
    pass
1274
    pass
1275
 
1275
 
-
 
1276
  def getAllItemstoListOnFbg(self, ):
-
 
1277
    pass
-
 
1278
 
1276
 
1279
 
1277
class Client(shop2020.thriftpy.generic.GenericService.Client, Iface):
1280
class Client(shop2020.thriftpy.generic.GenericService.Client, Iface):
1278
  def __init__(self, iprot, oprot=None):
1281
  def __init__(self, iprot, oprot=None):
1279
    shop2020.thriftpy.generic.GenericService.Client.__init__(self, iprot, oprot)
1282
    shop2020.thriftpy.generic.GenericService.Client.__init__(self, iprot, oprot)
1280
 
1283
 
Line 6743... Line 6746...
6743
    self._iprot.readMessageEnd()
6746
    self._iprot.readMessageEnd()
6744
    if result.success is not None:
6747
    if result.success is not None:
6745
      return result.success
6748
      return result.success
6746
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getExAffiliateItemInfo failed: unknown result");
6749
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getExAffiliateItemInfo failed: unknown result");
6747
 
6750
 
-
 
6751
  def getAllItemstoListOnFbg(self, ):
-
 
6752
    self.send_getAllItemstoListOnFbg()
-
 
6753
    return self.recv_getAllItemstoListOnFbg()
-
 
6754
 
-
 
6755
  def send_getAllItemstoListOnFbg(self, ):
-
 
6756
    self._oprot.writeMessageBegin('getAllItemstoListOnFbg', TMessageType.CALL, self._seqid)
-
 
6757
    args = getAllItemstoListOnFbg_args()
-
 
6758
    args.write(self._oprot)
-
 
6759
    self._oprot.writeMessageEnd()
-
 
6760
    self._oprot.trans.flush()
-
 
6761
 
-
 
6762
  def recv_getAllItemstoListOnFbg(self, ):
-
 
6763
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
6764
    if mtype == TMessageType.EXCEPTION:
-
 
6765
      x = TApplicationException()
-
 
6766
      x.read(self._iprot)
-
 
6767
      self._iprot.readMessageEnd()
-
 
6768
      raise x
-
 
6769
    result = getAllItemstoListOnFbg_result()
-
 
6770
    result.read(self._iprot)
-
 
6771
    self._iprot.readMessageEnd()
-
 
6772
    if result.success is not None:
-
 
6773
      return result.success
-
 
6774
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllItemstoListOnFbg failed: unknown result");
-
 
6775
 
6748
 
6776
 
6749
class Processor(shop2020.thriftpy.generic.GenericService.Processor, Iface, TProcessor):
6777
class Processor(shop2020.thriftpy.generic.GenericService.Processor, Iface, TProcessor):
6750
  def __init__(self, handler):
6778
  def __init__(self, handler):
6751
    shop2020.thriftpy.generic.GenericService.Processor.__init__(self, handler)
6779
    shop2020.thriftpy.generic.GenericService.Processor.__init__(self, handler)
6752
    self._processMap["addItem"] = Processor.process_addItem
6780
    self._processMap["addItem"] = Processor.process_addItem
Line 6926... Line 6954...
6926
    self._processMap["getAmazonPromotion"] = Processor.process_getAmazonPromotion
6954
    self._processMap["getAmazonPromotion"] = Processor.process_getAmazonPromotion
6927
    self._processMap["updateAmazonPromotion"] = Processor.process_updateAmazonPromotion
6955
    self._processMap["updateAmazonPromotion"] = Processor.process_updateAmazonPromotion
6928
    self._processMap["markPartiallyActive"] = Processor.process_markPartiallyActive
6956
    self._processMap["markPartiallyActive"] = Processor.process_markPartiallyActive
6929
    self._processMap["updateItemStateVat"] = Processor.process_updateItemStateVat
6957
    self._processMap["updateItemStateVat"] = Processor.process_updateItemStateVat
6930
    self._processMap["getExAffiliateItemInfo"] = Processor.process_getExAffiliateItemInfo
6958
    self._processMap["getExAffiliateItemInfo"] = Processor.process_getExAffiliateItemInfo
-
 
6959
    self._processMap["getAllItemstoListOnFbg"] = Processor.process_getAllItemstoListOnFbg
6931
 
6960
 
6932
  def process(self, iprot, oprot):
6961
  def process(self, iprot, oprot):
6933
    (name, type, seqid) = iprot.readMessageBegin()
6962
    (name, type, seqid) = iprot.readMessageBegin()
6934
    if name not in self._processMap:
6963
    if name not in self._processMap:
6935
      iprot.skip(TType.STRUCT)
6964
      iprot.skip(TType.STRUCT)
Line 9046... Line 9075...
9046
    oprot.writeMessageBegin("getExAffiliateItemInfo", TMessageType.REPLY, seqid)
9075
    oprot.writeMessageBegin("getExAffiliateItemInfo", TMessageType.REPLY, seqid)
9047
    result.write(oprot)
9076
    result.write(oprot)
9048
    oprot.writeMessageEnd()
9077
    oprot.writeMessageEnd()
9049
    oprot.trans.flush()
9078
    oprot.trans.flush()
9050
 
9079
 
-
 
9080
  def process_getAllItemstoListOnFbg(self, seqid, iprot, oprot):
-
 
9081
    args = getAllItemstoListOnFbg_args()
-
 
9082
    args.read(iprot)
-
 
9083
    iprot.readMessageEnd()
-
 
9084
    result = getAllItemstoListOnFbg_result()
-
 
9085
    result.success = self._handler.getAllItemstoListOnFbg()
-
 
9086
    oprot.writeMessageBegin("getAllItemstoListOnFbg", TMessageType.REPLY, seqid)
-
 
9087
    result.write(oprot)
-
 
9088
    oprot.writeMessageEnd()
-
 
9089
    oprot.trans.flush()
-
 
9090
 
9051
 
9091
 
9052
# HELPER FUNCTIONS AND STRUCTURES
9092
# HELPER FUNCTIONS AND STRUCTURES
9053
 
9093
 
9054
class addItem_args:
9094
class addItem_args:
9055
  """
9095
  """
Line 31828... Line 31868...
31828
      oprot.writeFieldEnd()
31868
      oprot.writeFieldEnd()
31829
    oprot.writeFieldStop()
31869
    oprot.writeFieldStop()
31830
    oprot.writeStructEnd()
31870
    oprot.writeStructEnd()
31831
 
31871
 
31832
  def validate(self):
31872
  def validate(self):
-
 
31873
    return
-
 
31874
 
-
 
31875
 
-
 
31876
  def __repr__(self):
-
 
31877
    L = ['%s=%r' % (key, value)
-
 
31878
      for key, value in self.__dict__.iteritems()]
-
 
31879
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
31880
 
-
 
31881
  def __eq__(self, other):
-
 
31882
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
31883
 
-
 
31884
  def __ne__(self, other):
-
 
31885
    return not (self == other)
-
 
31886
 
-
 
31887
class getAllItemstoListOnFbg_args:
-
 
31888
 
-
 
31889
  thrift_spec = (
-
 
31890
  )
-
 
31891
 
-
 
31892
  def read(self, iprot):
-
 
31893
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
31894
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
31895
      return
-
 
31896
    iprot.readStructBegin()
-
 
31897
    while True:
-
 
31898
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
31899
      if ftype == TType.STOP:
-
 
31900
        break
-
 
31901
      else:
-
 
31902
        iprot.skip(ftype)
-
 
31903
      iprot.readFieldEnd()
-
 
31904
    iprot.readStructEnd()
-
 
31905
 
-
 
31906
  def write(self, oprot):
-
 
31907
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
31908
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
31909
      return
-
 
31910
    oprot.writeStructBegin('getAllItemstoListOnFbg_args')
-
 
31911
    oprot.writeFieldStop()
-
 
31912
    oprot.writeStructEnd()
-
 
31913
 
-
 
31914
  def validate(self):
-
 
31915
    return
-
 
31916
 
-
 
31917
 
-
 
31918
  def __repr__(self):
-
 
31919
    L = ['%s=%r' % (key, value)
-
 
31920
      for key, value in self.__dict__.iteritems()]
-
 
31921
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
31922
 
-
 
31923
  def __eq__(self, other):
-
 
31924
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
31925
 
-
 
31926
  def __ne__(self, other):
-
 
31927
    return not (self == other)
-
 
31928
 
-
 
31929
class getAllItemstoListOnFbg_result:
-
 
31930
  """
-
 
31931
  Attributes:
-
 
31932
   - success
-
 
31933
  """
-
 
31934
 
-
 
31935
  thrift_spec = (
-
 
31936
    (0, TType.LIST, 'success', (TType.STRUCT,(Amazonlisted, Amazonlisted.thrift_spec)), None, ), # 0
-
 
31937
  )
-
 
31938
 
-
 
31939
  def __init__(self, success=None,):
-
 
31940
    self.success = success
-
 
31941
 
-
 
31942
  def read(self, iprot):
-
 
31943
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
31944
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
31945
      return
-
 
31946
    iprot.readStructBegin()
-
 
31947
    while True:
-
 
31948
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
31949
      if ftype == TType.STOP:
-
 
31950
        break
-
 
31951
      if fid == 0:
-
 
31952
        if ftype == TType.LIST:
-
 
31953
          self.success = []
-
 
31954
          (_etype775, _size772) = iprot.readListBegin()
-
 
31955
          for _i776 in xrange(_size772):
-
 
31956
            _elem777 = Amazonlisted()
-
 
31957
            _elem777.read(iprot)
-
 
31958
            self.success.append(_elem777)
-
 
31959
          iprot.readListEnd()
-
 
31960
        else:
-
 
31961
          iprot.skip(ftype)
-
 
31962
      else:
-
 
31963
        iprot.skip(ftype)
-
 
31964
      iprot.readFieldEnd()
-
 
31965
    iprot.readStructEnd()
-
 
31966
 
-
 
31967
  def write(self, oprot):
-
 
31968
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
31969
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
31970
      return
-
 
31971
    oprot.writeStructBegin('getAllItemstoListOnFbg_result')
-
 
31972
    if self.success is not None:
-
 
31973
      oprot.writeFieldBegin('success', TType.LIST, 0)
-
 
31974
      oprot.writeListBegin(TType.STRUCT, len(self.success))
-
 
31975
      for iter778 in self.success:
-
 
31976
        iter778.write(oprot)
-
 
31977
      oprot.writeListEnd()
-
 
31978
      oprot.writeFieldEnd()
-
 
31979
    oprot.writeFieldStop()
-
 
31980
    oprot.writeStructEnd()
-
 
31981
 
-
 
31982
  def validate(self):
31833
    return
31983
    return
31834
 
31984
 
31835
 
31985
 
31836
  def __repr__(self):
31986
  def __repr__(self):
31837
    L = ['%s=%r' % (key, value)
31987
    L = ['%s=%r' % (key, value)