Subversion Repositories SmartDukaan

Rev

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

Rev 12888 Rev 12892
Line 1274... Line 1274...
1274
    pass
1274
    pass
1275
 
1275
 
1276
  def getAllItemstoListOnFbg(self, ):
1276
  def getAllItemstoListOnFbg(self, ):
1277
    pass
1277
    pass
1278
 
1278
 
-
 
1279
  def getAllFbgListedItems(self, ):
-
 
1280
    pass
-
 
1281
 
1279
 
1282
 
1280
class Client(shop2020.thriftpy.generic.GenericService.Client, Iface):
1283
class Client(shop2020.thriftpy.generic.GenericService.Client, Iface):
1281
  def __init__(self, iprot, oprot=None):
1284
  def __init__(self, iprot, oprot=None):
1282
    shop2020.thriftpy.generic.GenericService.Client.__init__(self, iprot, oprot)
1285
    shop2020.thriftpy.generic.GenericService.Client.__init__(self, iprot, oprot)
1283
 
1286
 
Line 6771... Line 6774...
6771
    self._iprot.readMessageEnd()
6774
    self._iprot.readMessageEnd()
6772
    if result.success is not None:
6775
    if result.success is not None:
6773
      return result.success
6776
      return result.success
6774
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllItemstoListOnFbg failed: unknown result");
6777
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllItemstoListOnFbg failed: unknown result");
6775
 
6778
 
-
 
6779
  def getAllFbgListedItems(self, ):
-
 
6780
    self.send_getAllFbgListedItems()
-
 
6781
    return self.recv_getAllFbgListedItems()
-
 
6782
 
-
 
6783
  def send_getAllFbgListedItems(self, ):
-
 
6784
    self._oprot.writeMessageBegin('getAllFbgListedItems', TMessageType.CALL, self._seqid)
-
 
6785
    args = getAllFbgListedItems_args()
-
 
6786
    args.write(self._oprot)
-
 
6787
    self._oprot.writeMessageEnd()
-
 
6788
    self._oprot.trans.flush()
-
 
6789
 
-
 
6790
  def recv_getAllFbgListedItems(self, ):
-
 
6791
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
6792
    if mtype == TMessageType.EXCEPTION:
-
 
6793
      x = TApplicationException()
-
 
6794
      x.read(self._iprot)
-
 
6795
      self._iprot.readMessageEnd()
-
 
6796
      raise x
-
 
6797
    result = getAllFbgListedItems_result()
-
 
6798
    result.read(self._iprot)
-
 
6799
    self._iprot.readMessageEnd()
-
 
6800
    if result.success is not None:
-
 
6801
      return result.success
-
 
6802
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllFbgListedItems failed: unknown result");
-
 
6803
 
6776
 
6804
 
6777
class Processor(shop2020.thriftpy.generic.GenericService.Processor, Iface, TProcessor):
6805
class Processor(shop2020.thriftpy.generic.GenericService.Processor, Iface, TProcessor):
6778
  def __init__(self, handler):
6806
  def __init__(self, handler):
6779
    shop2020.thriftpy.generic.GenericService.Processor.__init__(self, handler)
6807
    shop2020.thriftpy.generic.GenericService.Processor.__init__(self, handler)
6780
    self._processMap["addItem"] = Processor.process_addItem
6808
    self._processMap["addItem"] = Processor.process_addItem
Line 6955... Line 6983...
6955
    self._processMap["updateAmazonPromotion"] = Processor.process_updateAmazonPromotion
6983
    self._processMap["updateAmazonPromotion"] = Processor.process_updateAmazonPromotion
6956
    self._processMap["markPartiallyActive"] = Processor.process_markPartiallyActive
6984
    self._processMap["markPartiallyActive"] = Processor.process_markPartiallyActive
6957
    self._processMap["updateItemStateVat"] = Processor.process_updateItemStateVat
6985
    self._processMap["updateItemStateVat"] = Processor.process_updateItemStateVat
6958
    self._processMap["getExAffiliateItemInfo"] = Processor.process_getExAffiliateItemInfo
6986
    self._processMap["getExAffiliateItemInfo"] = Processor.process_getExAffiliateItemInfo
6959
    self._processMap["getAllItemstoListOnFbg"] = Processor.process_getAllItemstoListOnFbg
6987
    self._processMap["getAllItemstoListOnFbg"] = Processor.process_getAllItemstoListOnFbg
-
 
6988
    self._processMap["getAllFbgListedItems"] = Processor.process_getAllFbgListedItems
6960
 
6989
 
6961
  def process(self, iprot, oprot):
6990
  def process(self, iprot, oprot):
6962
    (name, type, seqid) = iprot.readMessageBegin()
6991
    (name, type, seqid) = iprot.readMessageBegin()
6963
    if name not in self._processMap:
6992
    if name not in self._processMap:
6964
      iprot.skip(TType.STRUCT)
6993
      iprot.skip(TType.STRUCT)
Line 9086... Line 9115...
9086
    oprot.writeMessageBegin("getAllItemstoListOnFbg", TMessageType.REPLY, seqid)
9115
    oprot.writeMessageBegin("getAllItemstoListOnFbg", TMessageType.REPLY, seqid)
9087
    result.write(oprot)
9116
    result.write(oprot)
9088
    oprot.writeMessageEnd()
9117
    oprot.writeMessageEnd()
9089
    oprot.trans.flush()
9118
    oprot.trans.flush()
9090
 
9119
 
-
 
9120
  def process_getAllFbgListedItems(self, seqid, iprot, oprot):
-
 
9121
    args = getAllFbgListedItems_args()
-
 
9122
    args.read(iprot)
-
 
9123
    iprot.readMessageEnd()
-
 
9124
    result = getAllFbgListedItems_result()
-
 
9125
    result.success = self._handler.getAllFbgListedItems()
-
 
9126
    oprot.writeMessageBegin("getAllFbgListedItems", TMessageType.REPLY, seqid)
-
 
9127
    result.write(oprot)
-
 
9128
    oprot.writeMessageEnd()
-
 
9129
    oprot.trans.flush()
-
 
9130
 
9091
 
9131
 
9092
# HELPER FUNCTIONS AND STRUCTURES
9132
# HELPER FUNCTIONS AND STRUCTURES
9093
 
9133
 
9094
class addItem_args:
9134
class addItem_args:
9095
  """
9135
  """
Line 31977... Line 32017...
31977
      oprot.writeListEnd()
32017
      oprot.writeListEnd()
31978
      oprot.writeFieldEnd()
32018
      oprot.writeFieldEnd()
31979
    oprot.writeFieldStop()
32019
    oprot.writeFieldStop()
31980
    oprot.writeStructEnd()
32020
    oprot.writeStructEnd()
31981
 
32021
 
-
 
32022
  def validate(self):
-
 
32023
    return
-
 
32024
 
-
 
32025
 
-
 
32026
  def __repr__(self):
-
 
32027
    L = ['%s=%r' % (key, value)
-
 
32028
      for key, value in self.__dict__.iteritems()]
-
 
32029
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
32030
 
-
 
32031
  def __eq__(self, other):
-
 
32032
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
32033
 
-
 
32034
  def __ne__(self, other):
-
 
32035
    return not (self == other)
-
 
32036
 
-
 
32037
class getAllFbgListedItems_args:
-
 
32038
 
-
 
32039
  thrift_spec = (
-
 
32040
  )
-
 
32041
 
-
 
32042
  def read(self, iprot):
-
 
32043
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
32044
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
32045
      return
-
 
32046
    iprot.readStructBegin()
-
 
32047
    while True:
-
 
32048
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
32049
      if ftype == TType.STOP:
-
 
32050
        break
-
 
32051
      else:
-
 
32052
        iprot.skip(ftype)
-
 
32053
      iprot.readFieldEnd()
-
 
32054
    iprot.readStructEnd()
-
 
32055
 
-
 
32056
  def write(self, oprot):
-
 
32057
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
32058
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
32059
      return
-
 
32060
    oprot.writeStructBegin('getAllFbgListedItems_args')
-
 
32061
    oprot.writeFieldStop()
-
 
32062
    oprot.writeStructEnd()
-
 
32063
 
-
 
32064
  def validate(self):
-
 
32065
    return
-
 
32066
 
-
 
32067
 
-
 
32068
  def __repr__(self):
-
 
32069
    L = ['%s=%r' % (key, value)
-
 
32070
      for key, value in self.__dict__.iteritems()]
-
 
32071
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
32072
 
-
 
32073
  def __eq__(self, other):
-
 
32074
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
32075
 
-
 
32076
  def __ne__(self, other):
-
 
32077
    return not (self == other)
-
 
32078
 
-
 
32079
class getAllFbgListedItems_result:
-
 
32080
  """
-
 
32081
  Attributes:
-
 
32082
   - success
-
 
32083
  """
-
 
32084
 
-
 
32085
  thrift_spec = (
-
 
32086
    (0, TType.LIST, 'success', (TType.STRUCT,(Amazonlisted, Amazonlisted.thrift_spec)), None, ), # 0
-
 
32087
  )
-
 
32088
 
-
 
32089
  def __init__(self, success=None,):
-
 
32090
    self.success = success
-
 
32091
 
-
 
32092
  def read(self, iprot):
-
 
32093
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
32094
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
32095
      return
-
 
32096
    iprot.readStructBegin()
-
 
32097
    while True:
-
 
32098
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
32099
      if ftype == TType.STOP:
-
 
32100
        break
-
 
32101
      if fid == 0:
-
 
32102
        if ftype == TType.LIST:
-
 
32103
          self.success = []
-
 
32104
          (_etype782, _size779) = iprot.readListBegin()
-
 
32105
          for _i783 in xrange(_size779):
-
 
32106
            _elem784 = Amazonlisted()
-
 
32107
            _elem784.read(iprot)
-
 
32108
            self.success.append(_elem784)
-
 
32109
          iprot.readListEnd()
-
 
32110
        else:
-
 
32111
          iprot.skip(ftype)
-
 
32112
      else:
-
 
32113
        iprot.skip(ftype)
-
 
32114
      iprot.readFieldEnd()
-
 
32115
    iprot.readStructEnd()
-
 
32116
 
-
 
32117
  def write(self, oprot):
-
 
32118
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
32119
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
32120
      return
-
 
32121
    oprot.writeStructBegin('getAllFbgListedItems_result')
-
 
32122
    if self.success is not None:
-
 
32123
      oprot.writeFieldBegin('success', TType.LIST, 0)
-
 
32124
      oprot.writeListBegin(TType.STRUCT, len(self.success))
-
 
32125
      for iter785 in self.success:
-
 
32126
        iter785.write(oprot)
-
 
32127
      oprot.writeListEnd()
-
 
32128
      oprot.writeFieldEnd()
-
 
32129
    oprot.writeFieldStop()
-
 
32130
    oprot.writeStructEnd()
-
 
32131
 
31982
  def validate(self):
32132
  def validate(self):
31983
    return
32133
    return
31984
 
32134
 
31985
 
32135
 
31986
  def __repr__(self):
32136
  def __repr__(self):