Subversion Repositories SmartDukaan

Rev

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

Rev 7367 Rev 7382
Line 689... Line 689...
689
    Parameters:
689
    Parameters:
690
     - itemIds
690
     - itemIds
691
    """
691
    """
692
    pass
692
    pass
693
 
693
 
694
  def updateStorePricing(self, sp):
694
  def updateStorePricing(self, sp, allColors):
695
    """
695
    """
696
    Parameters:
696
    Parameters:
697
     - sp
697
     - sp
-
 
698
     - allColors
698
    """
699
    """
699
    pass
700
    pass
700
 
701
 
701
  def getAllAmazonListedItems(self, ):
702
  def getAllAmazonListedItems(self, ):
702
    pass
703
    pass
Line 3535... Line 3536...
3535
    self._iprot.readMessageEnd()
3536
    self._iprot.readMessageEnd()
3536
    if result.success is not None:
3537
    if result.success is not None:
3537
      return result.success
3538
      return result.success
3538
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getStorePricings failed: unknown result");
3539
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getStorePricings failed: unknown result");
3539
 
3540
 
3540
  def updateStorePricing(self, sp):
3541
  def updateStorePricing(self, sp, allColors):
3541
    """
3542
    """
3542
    Parameters:
3543
    Parameters:
3543
     - sp
3544
     - sp
-
 
3545
     - allColors
3544
    """
3546
    """
3545
    self.send_updateStorePricing(sp)
3547
    self.send_updateStorePricing(sp, allColors)
3546
    self.recv_updateStorePricing()
3548
    self.recv_updateStorePricing()
3547
 
3549
 
3548
  def send_updateStorePricing(self, sp):
3550
  def send_updateStorePricing(self, sp, allColors):
3549
    self._oprot.writeMessageBegin('updateStorePricing', TMessageType.CALL, self._seqid)
3551
    self._oprot.writeMessageBegin('updateStorePricing', TMessageType.CALL, self._seqid)
3550
    args = updateStorePricing_args()
3552
    args = updateStorePricing_args()
3551
    args.sp = sp
3553
    args.sp = sp
-
 
3554
    args.allColors = allColors
3552
    args.write(self._oprot)
3555
    args.write(self._oprot)
3553
    self._oprot.writeMessageEnd()
3556
    self._oprot.writeMessageEnd()
3554
    self._oprot.trans.flush()
3557
    self._oprot.trans.flush()
3555
 
3558
 
3556
  def recv_updateStorePricing(self, ):
3559
  def recv_updateStorePricing(self, ):
Line 4963... Line 4966...
4963
  def process_updateStorePricing(self, seqid, iprot, oprot):
4966
  def process_updateStorePricing(self, seqid, iprot, oprot):
4964
    args = updateStorePricing_args()
4967
    args = updateStorePricing_args()
4965
    args.read(iprot)
4968
    args.read(iprot)
4966
    iprot.readMessageEnd()
4969
    iprot.readMessageEnd()
4967
    result = updateStorePricing_result()
4970
    result = updateStorePricing_result()
4968
    self._handler.updateStorePricing(args.sp)
4971
    self._handler.updateStorePricing(args.sp, args.allColors)
4969
    oprot.writeMessageBegin("updateStorePricing", TMessageType.REPLY, seqid)
4972
    oprot.writeMessageBegin("updateStorePricing", TMessageType.REPLY, seqid)
4970
    result.write(oprot)
4973
    result.write(oprot)
4971
    oprot.writeMessageEnd()
4974
    oprot.writeMessageEnd()
4972
    oprot.trans.flush()
4975
    oprot.trans.flush()
4973
 
4976
 
Line 16616... Line 16619...
16616
 
16619
 
16617
class updateStorePricing_args:
16620
class updateStorePricing_args:
16618
  """
16621
  """
16619
  Attributes:
16622
  Attributes:
16620
   - sp
16623
   - sp
-
 
16624
   - allColors
16621
  """
16625
  """
16622
 
16626
 
16623
  thrift_spec = (
16627
  thrift_spec = (
16624
    None, # 0
16628
    None, # 0
16625
    (1, TType.STRUCT, 'sp', (StorePricing, StorePricing.thrift_spec), None, ), # 1
16629
    (1, TType.STRUCT, 'sp', (StorePricing, StorePricing.thrift_spec), None, ), # 1
-
 
16630
    (2, TType.BOOL, 'allColors', None, None, ), # 2
16626
  )
16631
  )
16627
 
16632
 
16628
  def __init__(self, sp=None,):
16633
  def __init__(self, sp=None, allColors=None,):
16629
    self.sp = sp
16634
    self.sp = sp
-
 
16635
    self.allColors = allColors
16630
 
16636
 
16631
  def read(self, iprot):
16637
  def read(self, iprot):
16632
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
16638
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
16633
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
16639
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
16634
      return
16640
      return
Line 16641... Line 16647...
16641
        if ftype == TType.STRUCT:
16647
        if ftype == TType.STRUCT:
16642
          self.sp = StorePricing()
16648
          self.sp = StorePricing()
16643
          self.sp.read(iprot)
16649
          self.sp.read(iprot)
16644
        else:
16650
        else:
16645
          iprot.skip(ftype)
16651
          iprot.skip(ftype)
-
 
16652
      elif fid == 2:
-
 
16653
        if ftype == TType.BOOL:
-
 
16654
          self.allColors = iprot.readBool();
-
 
16655
        else:
-
 
16656
          iprot.skip(ftype)
16646
      else:
16657
      else:
16647
        iprot.skip(ftype)
16658
        iprot.skip(ftype)
16648
      iprot.readFieldEnd()
16659
      iprot.readFieldEnd()
16649
    iprot.readStructEnd()
16660
    iprot.readStructEnd()
16650
 
16661
 
Line 16655... Line 16666...
16655
    oprot.writeStructBegin('updateStorePricing_args')
16666
    oprot.writeStructBegin('updateStorePricing_args')
16656
    if self.sp is not None:
16667
    if self.sp is not None:
16657
      oprot.writeFieldBegin('sp', TType.STRUCT, 1)
16668
      oprot.writeFieldBegin('sp', TType.STRUCT, 1)
16658
      self.sp.write(oprot)
16669
      self.sp.write(oprot)
16659
      oprot.writeFieldEnd()
16670
      oprot.writeFieldEnd()
-
 
16671
    if self.allColors is not None:
-
 
16672
      oprot.writeFieldBegin('allColors', TType.BOOL, 2)
-
 
16673
      oprot.writeBool(self.allColors)
-
 
16674
      oprot.writeFieldEnd()
16660
    oprot.writeFieldStop()
16675
    oprot.writeFieldStop()
16661
    oprot.writeStructEnd()
16676
    oprot.writeStructEnd()
16662
 
16677
 
16663
  def validate(self):
16678
  def validate(self):
16664
    return
16679
    return