Subversion Repositories SmartDukaan

Rev

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

Rev 21090 Rev 21092
Line 2772... Line 2772...
2772
    Parameters:
2772
    Parameters:
2773
     - associateEmail
2773
     - associateEmail
2774
    """
2774
    """
2775
    pass
2775
    pass
2776
 
2776
 
-
 
2777
  def getmypmsaprofile(self, associateEmail):
-
 
2778
    """
-
 
2779
    Parameters:
-
 
2780
     - associateEmail
-
 
2781
    """
-
 
2782
    pass
-
 
2783
 
2777
 
2784
 
2778
class Client(shop2020.thriftpy.generic.GenericService.Client, Iface):
2785
class Client(shop2020.thriftpy.generic.GenericService.Client, Iface):
2779
  def __init__(self, iprot, oprot=None):
2786
  def __init__(self, iprot, oprot=None):
2780
    shop2020.thriftpy.generic.GenericService.Client.__init__(self, iprot, oprot)
2787
    shop2020.thriftpy.generic.GenericService.Client.__init__(self, iprot, oprot)
2781
 
2788
 
Line 13311... Line 13318...
13311
    self._iprot.readMessageEnd()
13318
    self._iprot.readMessageEnd()
13312
    if result.success is not None:
13319
    if result.success is not None:
13313
      return result.success
13320
      return result.success
13314
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getStatsForAssociates failed: unknown result");
13321
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getStatsForAssociates failed: unknown result");
13315
 
13322
 
-
 
13323
  def getmypmsaprofile(self, associateEmail):
-
 
13324
    """
-
 
13325
    Parameters:
-
 
13326
     - associateEmail
-
 
13327
    """
-
 
13328
    self.send_getmypmsaprofile(associateEmail)
-
 
13329
    return self.recv_getmypmsaprofile()
-
 
13330
 
-
 
13331
  def send_getmypmsaprofile(self, associateEmail):
-
 
13332
    self._oprot.writeMessageBegin('getmypmsaprofile', TMessageType.CALL, self._seqid)
-
 
13333
    args = getmypmsaprofile_args()
-
 
13334
    args.associateEmail = associateEmail
-
 
13335
    args.write(self._oprot)
-
 
13336
    self._oprot.writeMessageEnd()
-
 
13337
    self._oprot.trans.flush()
-
 
13338
 
-
 
13339
  def recv_getmypmsaprofile(self, ):
-
 
13340
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
13341
    if mtype == TMessageType.EXCEPTION:
-
 
13342
      x = TApplicationException()
-
 
13343
      x.read(self._iprot)
-
 
13344
      self._iprot.readMessageEnd()
-
 
13345
      raise x
-
 
13346
    result = getmypmsaprofile_result()
-
 
13347
    result.read(self._iprot)
-
 
13348
    self._iprot.readMessageEnd()
-
 
13349
    if result.success is not None:
-
 
13350
      return result.success
-
 
13351
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getmypmsaprofile failed: unknown result");
-
 
13352
 
13316
 
13353
 
13317
class Processor(shop2020.thriftpy.generic.GenericService.Processor, Iface, TProcessor):
13354
class Processor(shop2020.thriftpy.generic.GenericService.Processor, Iface, TProcessor):
13318
  def __init__(self, handler):
13355
  def __init__(self, handler):
13319
    shop2020.thriftpy.generic.GenericService.Processor.__init__(self, handler)
13356
    shop2020.thriftpy.generic.GenericService.Processor.__init__(self, handler)
13320
    self._processMap["createTransaction"] = Processor.process_createTransaction
13357
    self._processMap["createTransaction"] = Processor.process_createTransaction
Line 13633... Line 13670...
13633
    self._processMap["getPmsaUser"] = Processor.process_getPmsaUser
13670
    self._processMap["getPmsaUser"] = Processor.process_getPmsaUser
13634
    self._processMap["updatePmsaUser"] = Processor.process_updatePmsaUser
13671
    self._processMap["updatePmsaUser"] = Processor.process_updatePmsaUser
13635
    self._processMap["getPmsaUsers"] = Processor.process_getPmsaUsers
13672
    self._processMap["getPmsaUsers"] = Processor.process_getPmsaUsers
13636
    self._processMap["getPendingAssociates"] = Processor.process_getPendingAssociates
13673
    self._processMap["getPendingAssociates"] = Processor.process_getPendingAssociates
13637
    self._processMap["getStatsForAssociates"] = Processor.process_getStatsForAssociates
13674
    self._processMap["getStatsForAssociates"] = Processor.process_getStatsForAssociates
-
 
13675
    self._processMap["getmypmsaprofile"] = Processor.process_getmypmsaprofile
13638
 
13676
 
13639
  def process(self, iprot, oprot):
13677
  def process(self, iprot, oprot):
13640
    (name, type, seqid) = iprot.readMessageBegin()
13678
    (name, type, seqid) = iprot.readMessageBegin()
13641
    if name not in self._processMap:
13679
    if name not in self._processMap:
13642
      iprot.skip(TType.STRUCT)
13680
      iprot.skip(TType.STRUCT)
Line 17564... Line 17602...
17564
    oprot.writeMessageBegin("getStatsForAssociates", TMessageType.REPLY, seqid)
17602
    oprot.writeMessageBegin("getStatsForAssociates", TMessageType.REPLY, seqid)
17565
    result.write(oprot)
17603
    result.write(oprot)
17566
    oprot.writeMessageEnd()
17604
    oprot.writeMessageEnd()
17567
    oprot.trans.flush()
17605
    oprot.trans.flush()
17568
 
17606
 
-
 
17607
  def process_getmypmsaprofile(self, seqid, iprot, oprot):
-
 
17608
    args = getmypmsaprofile_args()
-
 
17609
    args.read(iprot)
-
 
17610
    iprot.readMessageEnd()
-
 
17611
    result = getmypmsaprofile_result()
-
 
17612
    result.success = self._handler.getmypmsaprofile(args.associateEmail)
-
 
17613
    oprot.writeMessageBegin("getmypmsaprofile", TMessageType.REPLY, seqid)
-
 
17614
    result.write(oprot)
-
 
17615
    oprot.writeMessageEnd()
-
 
17616
    oprot.trans.flush()
-
 
17617
 
17569
 
17618
 
17570
# HELPER FUNCTIONS AND STRUCTURES
17619
# HELPER FUNCTIONS AND STRUCTURES
17571
 
17620
 
17572
class createTransaction_args:
17621
class createTransaction_args:
17573
  """
17622
  """
Line 61654... Line 61703...
61654
      oprot.writeFieldEnd()
61703
      oprot.writeFieldEnd()
61655
    oprot.writeFieldStop()
61704
    oprot.writeFieldStop()
61656
    oprot.writeStructEnd()
61705
    oprot.writeStructEnd()
61657
 
61706
 
61658
  def validate(self):
61707
  def validate(self):
-
 
61708
    return
-
 
61709
 
-
 
61710
 
-
 
61711
  def __repr__(self):
-
 
61712
    L = ['%s=%r' % (key, value)
-
 
61713
      for key, value in self.__dict__.iteritems()]
-
 
61714
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
61715
 
-
 
61716
  def __eq__(self, other):
-
 
61717
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
61718
 
-
 
61719
  def __ne__(self, other):
-
 
61720
    return not (self == other)
-
 
61721
 
-
 
61722
class getmypmsaprofile_args:
-
 
61723
  """
-
 
61724
  Attributes:
-
 
61725
   - associateEmail
-
 
61726
  """
-
 
61727
 
-
 
61728
  thrift_spec = (
-
 
61729
    None, # 0
-
 
61730
    (1, TType.STRING, 'associateEmail', None, None, ), # 1
-
 
61731
  )
-
 
61732
 
-
 
61733
  def __init__(self, associateEmail=None,):
-
 
61734
    self.associateEmail = associateEmail
-
 
61735
 
-
 
61736
  def read(self, iprot):
-
 
61737
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
61738
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
61739
      return
-
 
61740
    iprot.readStructBegin()
-
 
61741
    while True:
-
 
61742
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
61743
      if ftype == TType.STOP:
-
 
61744
        break
-
 
61745
      if fid == 1:
-
 
61746
        if ftype == TType.STRING:
-
 
61747
          self.associateEmail = iprot.readString();
-
 
61748
        else:
-
 
61749
          iprot.skip(ftype)
-
 
61750
      else:
-
 
61751
        iprot.skip(ftype)
-
 
61752
      iprot.readFieldEnd()
-
 
61753
    iprot.readStructEnd()
-
 
61754
 
-
 
61755
  def write(self, oprot):
-
 
61756
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
61757
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
61758
      return
-
 
61759
    oprot.writeStructBegin('getmypmsaprofile_args')
-
 
61760
    if self.associateEmail is not None:
-
 
61761
      oprot.writeFieldBegin('associateEmail', TType.STRING, 1)
-
 
61762
      oprot.writeString(self.associateEmail)
-
 
61763
      oprot.writeFieldEnd()
-
 
61764
    oprot.writeFieldStop()
-
 
61765
    oprot.writeStructEnd()
-
 
61766
 
-
 
61767
  def validate(self):
-
 
61768
    return
-
 
61769
 
-
 
61770
 
-
 
61771
  def __repr__(self):
-
 
61772
    L = ['%s=%r' % (key, value)
-
 
61773
      for key, value in self.__dict__.iteritems()]
-
 
61774
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
61775
 
-
 
61776
  def __eq__(self, other):
-
 
61777
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
61778
 
-
 
61779
  def __ne__(self, other):
-
 
61780
    return not (self == other)
-
 
61781
 
-
 
61782
class getmypmsaprofile_result:
-
 
61783
  """
-
 
61784
  Attributes:
-
 
61785
   - success
-
 
61786
  """
-
 
61787
 
-
 
61788
  thrift_spec = (
-
 
61789
    (0, TType.STRUCT, 'success', (Pmsa, Pmsa.thrift_spec), None, ), # 0
-
 
61790
  )
-
 
61791
 
-
 
61792
  def __init__(self, success=None,):
-
 
61793
    self.success = success
-
 
61794
 
-
 
61795
  def read(self, iprot):
-
 
61796
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
61797
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
61798
      return
-
 
61799
    iprot.readStructBegin()
-
 
61800
    while True:
-
 
61801
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
61802
      if ftype == TType.STOP:
-
 
61803
        break
-
 
61804
      if fid == 0:
-
 
61805
        if ftype == TType.STRUCT:
-
 
61806
          self.success = Pmsa()
-
 
61807
          self.success.read(iprot)
-
 
61808
        else:
-
 
61809
          iprot.skip(ftype)
-
 
61810
      else:
-
 
61811
        iprot.skip(ftype)
-
 
61812
      iprot.readFieldEnd()
-
 
61813
    iprot.readStructEnd()
-
 
61814
 
-
 
61815
  def write(self, oprot):
-
 
61816
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
61817
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
61818
      return
-
 
61819
    oprot.writeStructBegin('getmypmsaprofile_result')
-
 
61820
    if self.success is not None:
-
 
61821
      oprot.writeFieldBegin('success', TType.STRUCT, 0)
-
 
61822
      self.success.write(oprot)
-
 
61823
      oprot.writeFieldEnd()
-
 
61824
    oprot.writeFieldStop()
-
 
61825
    oprot.writeStructEnd()
-
 
61826
 
-
 
61827
  def validate(self):
61659
    return
61828
    return
61660
 
61829
 
61661
 
61830
 
61662
  def __repr__(self):
61831
  def __repr__(self):
61663
    L = ['%s=%r' % (key, value)
61832
    L = ['%s=%r' % (key, value)