Subversion Repositories SmartDukaan

Rev

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

Rev 2783 Rev 3086
Line 34... Line 34...
34
     - source
34
     - source
35
     - emailType
35
     - emailType
36
    """
36
    """
37
    pass
37
    pass
38
 
38
 
39
  def getEmailsToBeSent(self, emailType):
39
  def getEmailsToBeSent(self, ):
40
    """
40
    """
41
    Retreives all the emails pending for dispatch
41
    Retreives all the emails pending for dispatch
42
    
-
 
43
    Parameters:
-
 
44
     - emailType
-
 
45
    """
42
    """
46
    pass
43
    pass
47
 
44
 
48
  def markEmailAsSent(self, emailId):
45
  def markEmailAsSent(self, emailId):
49
    """
46
    """
Line 264... Line 261...
264
    self._iprot.readMessageEnd()
261
    self._iprot.readMessageEnd()
265
    if result.se != None:
262
    if result.se != None:
266
      raise result.se
263
      raise result.se
267
    return
264
    return
268
 
265
 
269
  def getEmailsToBeSent(self, emailType):
266
  def getEmailsToBeSent(self, ):
270
    """
267
    """
271
    Retreives all the emails pending for dispatch
268
    Retreives all the emails pending for dispatch
272
    
-
 
273
    Parameters:
-
 
274
     - emailType
-
 
275
    """
269
    """
276
    self.send_getEmailsToBeSent(emailType)
270
    self.send_getEmailsToBeSent()
277
    return self.recv_getEmailsToBeSent()
271
    return self.recv_getEmailsToBeSent()
278
 
272
 
279
  def send_getEmailsToBeSent(self, emailType):
273
  def send_getEmailsToBeSent(self, ):
280
    self._oprot.writeMessageBegin('getEmailsToBeSent', TMessageType.CALL, self._seqid)
274
    self._oprot.writeMessageBegin('getEmailsToBeSent', TMessageType.CALL, self._seqid)
281
    args = getEmailsToBeSent_args()
275
    args = getEmailsToBeSent_args()
282
    args.emailType = emailType
-
 
283
    args.write(self._oprot)
276
    args.write(self._oprot)
284
    self._oprot.writeMessageEnd()
277
    self._oprot.writeMessageEnd()
285
    self._oprot.trans.flush()
278
    self._oprot.trans.flush()
286
 
279
 
287
  def recv_getEmailsToBeSent(self, ):
280
  def recv_getEmailsToBeSent(self, ):
Line 914... Line 907...
914
    args = getEmailsToBeSent_args()
907
    args = getEmailsToBeSent_args()
915
    args.read(iprot)
908
    args.read(iprot)
916
    iprot.readMessageEnd()
909
    iprot.readMessageEnd()
917
    result = getEmailsToBeSent_result()
910
    result = getEmailsToBeSent_result()
918
    try:
911
    try:
919
      result.success = self._handler.getEmailsToBeSent(args.emailType)
912
      result.success = self._handler.getEmailsToBeSent()
920
    except HelperServiceException, se:
913
    except HelperServiceException, se:
921
      result.se = se
914
      result.se = se
922
    oprot.writeMessageBegin("getEmailsToBeSent", TMessageType.REPLY, seqid)
915
    oprot.writeMessageBegin("getEmailsToBeSent", TMessageType.REPLY, seqid)
923
    result.write(oprot)
916
    result.write(oprot)
924
    oprot.writeMessageEnd()
917
    oprot.writeMessageEnd()
Line 1396... Line 1389...
1396
 
1389
 
1397
  def __ne__(self, other):
1390
  def __ne__(self, other):
1398
    return not (self == other)
1391
    return not (self == other)
1399
 
1392
 
1400
class getEmailsToBeSent_args:
1393
class getEmailsToBeSent_args:
1401
  """
-
 
1402
  Attributes:
-
 
1403
   - emailType
-
 
1404
  """
-
 
1405
 
1394
 
1406
  thrift_spec = (
1395
  thrift_spec = (
1407
    None, # 0
-
 
1408
    (1, TType.STRING, 'emailType', None, None, ), # 1
-
 
1409
  )
1396
  )
1410
 
1397
 
1411
  def __init__(self, emailType=None,):
-
 
1412
    self.emailType = emailType
-
 
1413
 
-
 
1414
  def read(self, iprot):
1398
  def read(self, iprot):
1415
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
1399
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
1416
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
1400
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
1417
      return
1401
      return
1418
    iprot.readStructBegin()
1402
    iprot.readStructBegin()
1419
    while True:
1403
    while True:
1420
      (fname, ftype, fid) = iprot.readFieldBegin()
1404
      (fname, ftype, fid) = iprot.readFieldBegin()
1421
      if ftype == TType.STOP:
1405
      if ftype == TType.STOP:
1422
        break
1406
        break
1423
      if fid == 1:
-
 
1424
        if ftype == TType.STRING:
-
 
1425
          self.emailType = iprot.readString();
-
 
1426
        else:
-
 
1427
          iprot.skip(ftype)
-
 
1428
      else:
1407
      else:
1429
        iprot.skip(ftype)
1408
        iprot.skip(ftype)
1430
      iprot.readFieldEnd()
1409
      iprot.readFieldEnd()
1431
    iprot.readStructEnd()
1410
    iprot.readStructEnd()
1432
 
1411
 
1433
  def write(self, oprot):
1412
  def write(self, oprot):
1434
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
1413
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
1435
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
1414
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
1436
      return
1415
      return
1437
    oprot.writeStructBegin('getEmailsToBeSent_args')
1416
    oprot.writeStructBegin('getEmailsToBeSent_args')
1438
    if self.emailType != None:
-
 
1439
      oprot.writeFieldBegin('emailType', TType.STRING, 1)
-
 
1440
      oprot.writeString(self.emailType)
-
 
1441
      oprot.writeFieldEnd()
-
 
1442
    oprot.writeFieldStop()
1417
    oprot.writeFieldStop()
1443
    oprot.writeStructEnd()
1418
    oprot.writeStructEnd()
1444
 
1419
 
1445
  def __repr__(self):
1420
  def __repr__(self):
1446
    L = ['%s=%r' % (key, value)
1421
    L = ['%s=%r' % (key, value)