Subversion Repositories SmartDukaan

Rev

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

Rev 12567 Rev 12620
Line 1268... Line 1268...
1268
     - itemId
1268
     - itemId
1269
     - statevat
1269
     - statevat
1270
    """
1270
    """
1271
    pass
1271
    pass
1272
 
1272
 
-
 
1273
  def getExAffiliateItemInfo(self, ):
-
 
1274
    pass
-
 
1275
 
1273
 
1276
 
1274
class Client(shop2020.thriftpy.generic.GenericService.Client, Iface):
1277
class Client(shop2020.thriftpy.generic.GenericService.Client, Iface):
1275
  def __init__(self, iprot, oprot=None):
1278
  def __init__(self, iprot, oprot=None):
1276
    shop2020.thriftpy.generic.GenericService.Client.__init__(self, iprot, oprot)
1279
    shop2020.thriftpy.generic.GenericService.Client.__init__(self, iprot, oprot)
1277
 
1280
 
Line 6715... Line 6718...
6715
    self._iprot.readMessageEnd()
6718
    self._iprot.readMessageEnd()
6716
    if result.success is not None:
6719
    if result.success is not None:
6717
      return result.success
6720
      return result.success
6718
    raise TApplicationException(TApplicationException.MISSING_RESULT, "updateItemStateVat failed: unknown result");
6721
    raise TApplicationException(TApplicationException.MISSING_RESULT, "updateItemStateVat failed: unknown result");
6719
 
6722
 
-
 
6723
  def getExAffiliateItemInfo(self, ):
-
 
6724
    self.send_getExAffiliateItemInfo()
-
 
6725
    return self.recv_getExAffiliateItemInfo()
-
 
6726
 
-
 
6727
  def send_getExAffiliateItemInfo(self, ):
-
 
6728
    self._oprot.writeMessageBegin('getExAffiliateItemInfo', TMessageType.CALL, self._seqid)
-
 
6729
    args = getExAffiliateItemInfo_args()
-
 
6730
    args.write(self._oprot)
-
 
6731
    self._oprot.writeMessageEnd()
-
 
6732
    self._oprot.trans.flush()
-
 
6733
 
-
 
6734
  def recv_getExAffiliateItemInfo(self, ):
-
 
6735
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
6736
    if mtype == TMessageType.EXCEPTION:
-
 
6737
      x = TApplicationException()
-
 
6738
      x.read(self._iprot)
-
 
6739
      self._iprot.readMessageEnd()
-
 
6740
      raise x
-
 
6741
    result = getExAffiliateItemInfo_result()
-
 
6742
    result.read(self._iprot)
-
 
6743
    self._iprot.readMessageEnd()
-
 
6744
    if result.success is not None:
-
 
6745
      return result.success
-
 
6746
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getExAffiliateItemInfo failed: unknown result");
-
 
6747
 
6720
 
6748
 
6721
class Processor(shop2020.thriftpy.generic.GenericService.Processor, Iface, TProcessor):
6749
class Processor(shop2020.thriftpy.generic.GenericService.Processor, Iface, TProcessor):
6722
  def __init__(self, handler):
6750
  def __init__(self, handler):
6723
    shop2020.thriftpy.generic.GenericService.Processor.__init__(self, handler)
6751
    shop2020.thriftpy.generic.GenericService.Processor.__init__(self, handler)
6724
    self._processMap["addItem"] = Processor.process_addItem
6752
    self._processMap["addItem"] = Processor.process_addItem
Line 6897... Line 6925...
6897
    self._processMap["addAmazonPromotion"] = Processor.process_addAmazonPromotion
6925
    self._processMap["addAmazonPromotion"] = Processor.process_addAmazonPromotion
6898
    self._processMap["getAmazonPromotion"] = Processor.process_getAmazonPromotion
6926
    self._processMap["getAmazonPromotion"] = Processor.process_getAmazonPromotion
6899
    self._processMap["updateAmazonPromotion"] = Processor.process_updateAmazonPromotion
6927
    self._processMap["updateAmazonPromotion"] = Processor.process_updateAmazonPromotion
6900
    self._processMap["markPartiallyActive"] = Processor.process_markPartiallyActive
6928
    self._processMap["markPartiallyActive"] = Processor.process_markPartiallyActive
6901
    self._processMap["updateItemStateVat"] = Processor.process_updateItemStateVat
6929
    self._processMap["updateItemStateVat"] = Processor.process_updateItemStateVat
-
 
6930
    self._processMap["getExAffiliateItemInfo"] = Processor.process_getExAffiliateItemInfo
6902
 
6931
 
6903
  def process(self, iprot, oprot):
6932
  def process(self, iprot, oprot):
6904
    (name, type, seqid) = iprot.readMessageBegin()
6933
    (name, type, seqid) = iprot.readMessageBegin()
6905
    if name not in self._processMap:
6934
    if name not in self._processMap:
6906
      iprot.skip(TType.STRUCT)
6935
      iprot.skip(TType.STRUCT)
Line 9006... Line 9035...
9006
    oprot.writeMessageBegin("updateItemStateVat", TMessageType.REPLY, seqid)
9035
    oprot.writeMessageBegin("updateItemStateVat", TMessageType.REPLY, seqid)
9007
    result.write(oprot)
9036
    result.write(oprot)
9008
    oprot.writeMessageEnd()
9037
    oprot.writeMessageEnd()
9009
    oprot.trans.flush()
9038
    oprot.trans.flush()
9010
 
9039
 
-
 
9040
  def process_getExAffiliateItemInfo(self, seqid, iprot, oprot):
-
 
9041
    args = getExAffiliateItemInfo_args()
-
 
9042
    args.read(iprot)
-
 
9043
    iprot.readMessageEnd()
-
 
9044
    result = getExAffiliateItemInfo_result()
-
 
9045
    result.success = self._handler.getExAffiliateItemInfo()
-
 
9046
    oprot.writeMessageBegin("getExAffiliateItemInfo", TMessageType.REPLY, seqid)
-
 
9047
    result.write(oprot)
-
 
9048
    oprot.writeMessageEnd()
-
 
9049
    oprot.trans.flush()
-
 
9050
 
9011
 
9051
 
9012
# HELPER FUNCTIONS AND STRUCTURES
9052
# HELPER FUNCTIONS AND STRUCTURES
9013
 
9053
 
9014
class addItem_args:
9054
class addItem_args:
9015
  """
9055
  """
Line 31676... Line 31716...
31676
      oprot.writeFieldEnd()
31716
      oprot.writeFieldEnd()
31677
    oprot.writeFieldStop()
31717
    oprot.writeFieldStop()
31678
    oprot.writeStructEnd()
31718
    oprot.writeStructEnd()
31679
 
31719
 
31680
  def validate(self):
31720
  def validate(self):
-
 
31721
    return
-
 
31722
 
-
 
31723
 
-
 
31724
  def __repr__(self):
-
 
31725
    L = ['%s=%r' % (key, value)
-
 
31726
      for key, value in self.__dict__.iteritems()]
-
 
31727
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
31728
 
-
 
31729
  def __eq__(self, other):
-
 
31730
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
31731
 
-
 
31732
  def __ne__(self, other):
-
 
31733
    return not (self == other)
-
 
31734
 
-
 
31735
class getExAffiliateItemInfo_args:
-
 
31736
 
-
 
31737
  thrift_spec = (
-
 
31738
  )
-
 
31739
 
-
 
31740
  def read(self, iprot):
-
 
31741
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
31742
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
31743
      return
-
 
31744
    iprot.readStructBegin()
-
 
31745
    while True:
-
 
31746
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
31747
      if ftype == TType.STOP:
-
 
31748
        break
-
 
31749
      else:
-
 
31750
        iprot.skip(ftype)
-
 
31751
      iprot.readFieldEnd()
-
 
31752
    iprot.readStructEnd()
-
 
31753
 
-
 
31754
  def write(self, oprot):
-
 
31755
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
31756
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
31757
      return
-
 
31758
    oprot.writeStructBegin('getExAffiliateItemInfo_args')
-
 
31759
    oprot.writeFieldStop()
-
 
31760
    oprot.writeStructEnd()
-
 
31761
 
-
 
31762
  def validate(self):
-
 
31763
    return
-
 
31764
 
-
 
31765
 
-
 
31766
  def __repr__(self):
-
 
31767
    L = ['%s=%r' % (key, value)
-
 
31768
      for key, value in self.__dict__.iteritems()]
-
 
31769
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
31770
 
-
 
31771
  def __eq__(self, other):
-
 
31772
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
31773
 
-
 
31774
  def __ne__(self, other):
-
 
31775
    return not (self == other)
-
 
31776
 
-
 
31777
class getExAffiliateItemInfo_result:
-
 
31778
  """
-
 
31779
  Attributes:
-
 
31780
   - success
-
 
31781
  """
-
 
31782
 
-
 
31783
  thrift_spec = (
-
 
31784
    (0, TType.MAP, 'success', (TType.I64,None,TType.STRUCT,(ExclusiveAffiliateItemInfo, ExclusiveAffiliateItemInfo.thrift_spec)), None, ), # 0
-
 
31785
  )
-
 
31786
 
-
 
31787
  def __init__(self, success=None,):
-
 
31788
    self.success = success
-
 
31789
 
-
 
31790
  def read(self, iprot):
-
 
31791
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
31792
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
31793
      return
-
 
31794
    iprot.readStructBegin()
-
 
31795
    while True:
-
 
31796
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
31797
      if ftype == TType.STOP:
-
 
31798
        break
-
 
31799
      if fid == 0:
-
 
31800
        if ftype == TType.MAP:
-
 
31801
          self.success = {}
-
 
31802
          (_ktype764, _vtype765, _size763 ) = iprot.readMapBegin() 
-
 
31803
          for _i767 in xrange(_size763):
-
 
31804
            _key768 = iprot.readI64();
-
 
31805
            _val769 = ExclusiveAffiliateItemInfo()
-
 
31806
            _val769.read(iprot)
-
 
31807
            self.success[_key768] = _val769
-
 
31808
          iprot.readMapEnd()
-
 
31809
        else:
-
 
31810
          iprot.skip(ftype)
-
 
31811
      else:
-
 
31812
        iprot.skip(ftype)
-
 
31813
      iprot.readFieldEnd()
-
 
31814
    iprot.readStructEnd()
-
 
31815
 
-
 
31816
  def write(self, oprot):
-
 
31817
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
31818
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
31819
      return
-
 
31820
    oprot.writeStructBegin('getExAffiliateItemInfo_result')
-
 
31821
    if self.success is not None:
-
 
31822
      oprot.writeFieldBegin('success', TType.MAP, 0)
-
 
31823
      oprot.writeMapBegin(TType.I64, TType.STRUCT, len(self.success))
-
 
31824
      for kiter770,viter771 in self.success.items():
-
 
31825
        oprot.writeI64(kiter770)
-
 
31826
        viter771.write(oprot)
-
 
31827
      oprot.writeMapEnd()
-
 
31828
      oprot.writeFieldEnd()
-
 
31829
    oprot.writeFieldStop()
-
 
31830
    oprot.writeStructEnd()
-
 
31831
 
-
 
31832
  def validate(self):
31681
    return
31833
    return
31682
 
31834
 
31683
 
31835
 
31684
  def __repr__(self):
31836
  def __repr__(self):
31685
    L = ['%s=%r' % (key, value)
31837
    L = ['%s=%r' % (key, value)