Subversion Repositories SmartDukaan

Rev

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

Rev 7897 Rev 7977
Line 766... Line 766...
766
    pass
766
    pass
767
 
767
 
768
  def getAllParentCategories(self, ):
768
  def getAllParentCategories(self, ):
769
    pass
769
    pass
770
 
770
 
-
 
771
  def addPageViewEvent(self, pageViewEvents):
-
 
772
    """
-
 
773
    Parameters:
-
 
774
     - pageViewEvents
-
 
775
    """
-
 
776
    pass
-
 
777
 
-
 
778
  def addCartEvent(self, cartEvents):
-
 
779
    """
-
 
780
    Parameters:
-
 
781
     - cartEvents
-
 
782
    """
-
 
783
    pass
-
 
784
 
771
 
785
 
772
class Client(shop2020.thriftpy.generic.GenericService.Client, Iface):
786
class Client(shop2020.thriftpy.generic.GenericService.Client, Iface):
773
  def __init__(self, iprot, oprot=None):
787
  def __init__(self, iprot, oprot=None):
774
    shop2020.thriftpy.generic.GenericService.Client.__init__(self, iprot, oprot)
788
    shop2020.thriftpy.generic.GenericService.Client.__init__(self, iprot, oprot)
775
 
789
 
Line 3922... Line 3936...
3922
    self._iprot.readMessageEnd()
3936
    self._iprot.readMessageEnd()
3923
    if result.success is not None:
3937
    if result.success is not None:
3924
      return result.success
3938
      return result.success
3925
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllParentCategories failed: unknown result");
3939
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllParentCategories failed: unknown result");
3926
 
3940
 
-
 
3941
  def addPageViewEvent(self, pageViewEvents):
-
 
3942
    """
-
 
3943
    Parameters:
-
 
3944
     - pageViewEvents
-
 
3945
    """
-
 
3946
    self.send_addPageViewEvent(pageViewEvents)
-
 
3947
    self.recv_addPageViewEvent()
-
 
3948
 
-
 
3949
  def send_addPageViewEvent(self, pageViewEvents):
-
 
3950
    self._oprot.writeMessageBegin('addPageViewEvent', TMessageType.CALL, self._seqid)
-
 
3951
    args = addPageViewEvent_args()
-
 
3952
    args.pageViewEvents = pageViewEvents
-
 
3953
    args.write(self._oprot)
-
 
3954
    self._oprot.writeMessageEnd()
-
 
3955
    self._oprot.trans.flush()
-
 
3956
 
-
 
3957
  def recv_addPageViewEvent(self, ):
-
 
3958
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
3959
    if mtype == TMessageType.EXCEPTION:
-
 
3960
      x = TApplicationException()
-
 
3961
      x.read(self._iprot)
-
 
3962
      self._iprot.readMessageEnd()
-
 
3963
      raise x
-
 
3964
    result = addPageViewEvent_result()
-
 
3965
    result.read(self._iprot)
-
 
3966
    self._iprot.readMessageEnd()
-
 
3967
    return
-
 
3968
 
-
 
3969
  def addCartEvent(self, cartEvents):
-
 
3970
    """
-
 
3971
    Parameters:
-
 
3972
     - cartEvents
-
 
3973
    """
-
 
3974
    self.send_addCartEvent(cartEvents)
-
 
3975
    self.recv_addCartEvent()
-
 
3976
 
-
 
3977
  def send_addCartEvent(self, cartEvents):
-
 
3978
    self._oprot.writeMessageBegin('addCartEvent', TMessageType.CALL, self._seqid)
-
 
3979
    args = addCartEvent_args()
-
 
3980
    args.cartEvents = cartEvents
-
 
3981
    args.write(self._oprot)
-
 
3982
    self._oprot.writeMessageEnd()
-
 
3983
    self._oprot.trans.flush()
-
 
3984
 
-
 
3985
  def recv_addCartEvent(self, ):
-
 
3986
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
3987
    if mtype == TMessageType.EXCEPTION:
-
 
3988
      x = TApplicationException()
-
 
3989
      x.read(self._iprot)
-
 
3990
      self._iprot.readMessageEnd()
-
 
3991
      raise x
-
 
3992
    result = addCartEvent_result()
-
 
3993
    result.read(self._iprot)
-
 
3994
    self._iprot.readMessageEnd()
-
 
3995
    return
-
 
3996
 
3927
 
3997
 
3928
class Processor(shop2020.thriftpy.generic.GenericService.Processor, Iface, TProcessor):
3998
class Processor(shop2020.thriftpy.generic.GenericService.Processor, Iface, TProcessor):
3929
  def __init__(self, handler):
3999
  def __init__(self, handler):
3930
    shop2020.thriftpy.generic.GenericService.Processor.__init__(self, handler)
4000
    shop2020.thriftpy.generic.GenericService.Processor.__init__(self, handler)
3931
    self._processMap["addItem"] = Processor.process_addItem
4001
    self._processMap["addItem"] = Processor.process_addItem
Line 4026... Line 4096...
4026
    self._processMap["getAllFbaListedItems"] = Processor.process_getAllFbaListedItems
4096
    self._processMap["getAllFbaListedItems"] = Processor.process_getAllFbaListedItems
4027
    self._processMap["getAllNonFbaListedItems"] = Processor.process_getAllNonFbaListedItems
4097
    self._processMap["getAllNonFbaListedItems"] = Processor.process_getAllNonFbaListedItems
4028
    self._processMap["updateItemInventory"] = Processor.process_updateItemInventory
4098
    self._processMap["updateItemInventory"] = Processor.process_updateItemInventory
4029
    self._processMap["updateTimestampForAmazonFeeds"] = Processor.process_updateTimestampForAmazonFeeds
4099
    self._processMap["updateTimestampForAmazonFeeds"] = Processor.process_updateTimestampForAmazonFeeds
4030
    self._processMap["getAllParentCategories"] = Processor.process_getAllParentCategories
4100
    self._processMap["getAllParentCategories"] = Processor.process_getAllParentCategories
-
 
4101
    self._processMap["addPageViewEvent"] = Processor.process_addPageViewEvent
-
 
4102
    self._processMap["addCartEvent"] = Processor.process_addCartEvent
4031
 
4103
 
4032
  def process(self, iprot, oprot):
4104
  def process(self, iprot, oprot):
4033
    (name, type, seqid) = iprot.readMessageBegin()
4105
    (name, type, seqid) = iprot.readMessageBegin()
4034
    if name not in self._processMap:
4106
    if name not in self._processMap:
4035
      iprot.skip(TType.STRUCT)
4107
      iprot.skip(TType.STRUCT)
Line 5256... Line 5328...
5256
    oprot.writeMessageBegin("getAllParentCategories", TMessageType.REPLY, seqid)
5328
    oprot.writeMessageBegin("getAllParentCategories", TMessageType.REPLY, seqid)
5257
    result.write(oprot)
5329
    result.write(oprot)
5258
    oprot.writeMessageEnd()
5330
    oprot.writeMessageEnd()
5259
    oprot.trans.flush()
5331
    oprot.trans.flush()
5260
 
5332
 
-
 
5333
  def process_addPageViewEvent(self, seqid, iprot, oprot):
-
 
5334
    args = addPageViewEvent_args()
-
 
5335
    args.read(iprot)
-
 
5336
    iprot.readMessageEnd()
-
 
5337
    result = addPageViewEvent_result()
-
 
5338
    self._handler.addPageViewEvent(args.pageViewEvents)
-
 
5339
    oprot.writeMessageBegin("addPageViewEvent", TMessageType.REPLY, seqid)
-
 
5340
    result.write(oprot)
-
 
5341
    oprot.writeMessageEnd()
-
 
5342
    oprot.trans.flush()
-
 
5343
 
-
 
5344
  def process_addCartEvent(self, seqid, iprot, oprot):
-
 
5345
    args = addCartEvent_args()
-
 
5346
    args.read(iprot)
-
 
5347
    iprot.readMessageEnd()
-
 
5348
    result = addCartEvent_result()
-
 
5349
    self._handler.addCartEvent(args.cartEvents)
-
 
5350
    oprot.writeMessageBegin("addCartEvent", TMessageType.REPLY, seqid)
-
 
5351
    result.write(oprot)
-
 
5352
    oprot.writeMessageEnd()
-
 
5353
    oprot.trans.flush()
-
 
5354
 
5261
 
5355
 
5262
# HELPER FUNCTIONS AND STRUCTURES
5356
# HELPER FUNCTIONS AND STRUCTURES
5263
 
5357
 
5264
class addItem_args:
5358
class addItem_args:
5265
  """
5359
  """
Line 18339... Line 18433...
18339
    oprot.writeFieldStop()
18433
    oprot.writeFieldStop()
18340
    oprot.writeStructEnd()
18434
    oprot.writeStructEnd()
18341
 
18435
 
18342
  def validate(self):
18436
  def validate(self):
18343
    return
18437
    return
-
 
18438
 
-
 
18439
 
-
 
18440
  def __repr__(self):
-
 
18441
    L = ['%s=%r' % (key, value)
-
 
18442
      for key, value in self.__dict__.iteritems()]
-
 
18443
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
18444
 
-
 
18445
  def __eq__(self, other):
-
 
18446
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
18447
 
-
 
18448
  def __ne__(self, other):
-
 
18449
    return not (self == other)
-
 
18450
 
-
 
18451
class addPageViewEvent_args:
-
 
18452
  """
-
 
18453
  Attributes:
-
 
18454
   - pageViewEvents
-
 
18455
  """
-
 
18456
 
-
 
18457
  thrift_spec = (
-
 
18458
    None, # 0
-
 
18459
    (1, TType.STRUCT, 'pageViewEvents', (PageViewEvents, PageViewEvents.thrift_spec), None, ), # 1
-
 
18460
  )
-
 
18461
 
-
 
18462
  def __init__(self, pageViewEvents=None,):
-
 
18463
    self.pageViewEvents = pageViewEvents
-
 
18464
 
-
 
18465
  def read(self, iprot):
-
 
18466
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
18467
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
18468
      return
-
 
18469
    iprot.readStructBegin()
-
 
18470
    while True:
-
 
18471
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
18472
      if ftype == TType.STOP:
-
 
18473
        break
-
 
18474
      if fid == 1:
-
 
18475
        if ftype == TType.STRUCT:
-
 
18476
          self.pageViewEvents = PageViewEvents()
-
 
18477
          self.pageViewEvents.read(iprot)
-
 
18478
        else:
-
 
18479
          iprot.skip(ftype)
-
 
18480
      else:
-
 
18481
        iprot.skip(ftype)
-
 
18482
      iprot.readFieldEnd()
-
 
18483
    iprot.readStructEnd()
-
 
18484
 
-
 
18485
  def write(self, oprot):
-
 
18486
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
18487
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
18488
      return
-
 
18489
    oprot.writeStructBegin('addPageViewEvent_args')
-
 
18490
    if self.pageViewEvents is not None:
-
 
18491
      oprot.writeFieldBegin('pageViewEvents', TType.STRUCT, 1)
-
 
18492
      self.pageViewEvents.write(oprot)
-
 
18493
      oprot.writeFieldEnd()
-
 
18494
    oprot.writeFieldStop()
-
 
18495
    oprot.writeStructEnd()
-
 
18496
 
-
 
18497
  def validate(self):
-
 
18498
    return
-
 
18499
 
-
 
18500
 
-
 
18501
  def __repr__(self):
-
 
18502
    L = ['%s=%r' % (key, value)
-
 
18503
      for key, value in self.__dict__.iteritems()]
-
 
18504
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
18505
 
-
 
18506
  def __eq__(self, other):
-
 
18507
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
18508
 
-
 
18509
  def __ne__(self, other):
-
 
18510
    return not (self == other)
-
 
18511
 
-
 
18512
class addPageViewEvent_result:
-
 
18513
 
-
 
18514
  thrift_spec = (
-
 
18515
  )
-
 
18516
 
-
 
18517
  def read(self, iprot):
-
 
18518
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
18519
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
18520
      return
-
 
18521
    iprot.readStructBegin()
-
 
18522
    while True:
-
 
18523
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
18524
      if ftype == TType.STOP:
-
 
18525
        break
-
 
18526
      else:
-
 
18527
        iprot.skip(ftype)
-
 
18528
      iprot.readFieldEnd()
-
 
18529
    iprot.readStructEnd()
-
 
18530
 
-
 
18531
  def write(self, oprot):
-
 
18532
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
18533
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
18534
      return
-
 
18535
    oprot.writeStructBegin('addPageViewEvent_result')
-
 
18536
    oprot.writeFieldStop()
-
 
18537
    oprot.writeStructEnd()
-
 
18538
 
-
 
18539
  def validate(self):
-
 
18540
    return
-
 
18541
 
-
 
18542
 
-
 
18543
  def __repr__(self):
-
 
18544
    L = ['%s=%r' % (key, value)
-
 
18545
      for key, value in self.__dict__.iteritems()]
-
 
18546
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
18547
 
-
 
18548
  def __eq__(self, other):
-
 
18549
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
18550
 
-
 
18551
  def __ne__(self, other):
-
 
18552
    return not (self == other)
-
 
18553
 
-
 
18554
class addCartEvent_args:
-
 
18555
  """
-
 
18556
  Attributes:
-
 
18557
   - cartEvents
-
 
18558
  """
-
 
18559
 
-
 
18560
  thrift_spec = (
-
 
18561
    None, # 0
-
 
18562
    (1, TType.STRUCT, 'cartEvents', (CartEvents, CartEvents.thrift_spec), None, ), # 1
-
 
18563
  )
-
 
18564
 
-
 
18565
  def __init__(self, cartEvents=None,):
-
 
18566
    self.cartEvents = cartEvents
-
 
18567
 
-
 
18568
  def read(self, iprot):
-
 
18569
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
18570
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
18571
      return
-
 
18572
    iprot.readStructBegin()
-
 
18573
    while True:
-
 
18574
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
18575
      if ftype == TType.STOP:
-
 
18576
        break
-
 
18577
      if fid == 1:
-
 
18578
        if ftype == TType.STRUCT:
-
 
18579
          self.cartEvents = CartEvents()
-
 
18580
          self.cartEvents.read(iprot)
-
 
18581
        else:
-
 
18582
          iprot.skip(ftype)
-
 
18583
      else:
-
 
18584
        iprot.skip(ftype)
-
 
18585
      iprot.readFieldEnd()
-
 
18586
    iprot.readStructEnd()
-
 
18587
 
-
 
18588
  def write(self, oprot):
-
 
18589
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
18590
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
18591
      return
-
 
18592
    oprot.writeStructBegin('addCartEvent_args')
-
 
18593
    if self.cartEvents is not None:
-
 
18594
      oprot.writeFieldBegin('cartEvents', TType.STRUCT, 1)
-
 
18595
      self.cartEvents.write(oprot)
-
 
18596
      oprot.writeFieldEnd()
-
 
18597
    oprot.writeFieldStop()
-
 
18598
    oprot.writeStructEnd()
-
 
18599
 
-
 
18600
  def validate(self):
-
 
18601
    return
-
 
18602
 
-
 
18603
 
-
 
18604
  def __repr__(self):
-
 
18605
    L = ['%s=%r' % (key, value)
-
 
18606
      for key, value in self.__dict__.iteritems()]
-
 
18607
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
18608
 
-
 
18609
  def __eq__(self, other):
-
 
18610
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
18611
 
-
 
18612
  def __ne__(self, other):
-
 
18613
    return not (self == other)
-
 
18614
 
-
 
18615
class addCartEvent_result:
-
 
18616
 
-
 
18617
  thrift_spec = (
-
 
18618
  )
-
 
18619
 
-
 
18620
  def read(self, iprot):
-
 
18621
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
18622
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
18623
      return
-
 
18624
    iprot.readStructBegin()
-
 
18625
    while True:
-
 
18626
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
18627
      if ftype == TType.STOP:
-
 
18628
        break
-
 
18629
      else:
-
 
18630
        iprot.skip(ftype)
-
 
18631
      iprot.readFieldEnd()
-
 
18632
    iprot.readStructEnd()
-
 
18633
 
-
 
18634
  def write(self, oprot):
-
 
18635
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
18636
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
18637
      return
-
 
18638
    oprot.writeStructBegin('addCartEvent_result')
-
 
18639
    oprot.writeFieldStop()
-
 
18640
    oprot.writeStructEnd()
-
 
18641
 
-
 
18642
  def validate(self):
-
 
18643
    return
18344
 
18644
 
18345
 
18645
 
18346
  def __repr__(self):
18646
  def __repr__(self):
18347
    L = ['%s=%r' % (key, value)
18647
    L = ['%s=%r' % (key, value)
18348
      for key, value in self.__dict__.iteritems()]
18648
      for key, value in self.__dict__.iteritems()]