Subversion Repositories SmartDukaan

Rev

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

Rev 3431 Rev 3499
Line 102... Line 102...
102
    Parameters:
102
    Parameters:
103
     - timestamp
103
     - timestamp
104
    """
104
    """
105
    pass
105
    pass
106
 
106
 
-
 
107
  def processCODTxn(self, transactionId):
-
 
108
    """
-
 
109
    Parameters:
-
 
110
     - transactionId
-
 
111
    """
-
 
112
    pass
-
 
113
 
107
 
114
 
108
class Client(shop2020.thriftpy.generic.GenericService.Client, Iface):
115
class Client(shop2020.thriftpy.generic.GenericService.Client, Iface):
109
  def __init__(self, iprot, oprot=None):
116
  def __init__(self, iprot, oprot=None):
110
    shop2020.thriftpy.generic.GenericService.Client.__init__(self, iprot, oprot)
117
    shop2020.thriftpy.generic.GenericService.Client.__init__(self, iprot, oprot)
111
 
118
 
Line 487... Line 494...
487
    result = updateLastEmailProcessedTimestamp_result()
494
    result = updateLastEmailProcessedTimestamp_result()
488
    result.read(self._iprot)
495
    result.read(self._iprot)
489
    self._iprot.readMessageEnd()
496
    self._iprot.readMessageEnd()
490
    return
497
    return
491
 
498
 
-
 
499
  def processCODTxn(self, transactionId):
-
 
500
    """
-
 
501
    Parameters:
-
 
502
     - transactionId
-
 
503
    """
-
 
504
    self.send_processCODTxn(transactionId)
-
 
505
    self.recv_processCODTxn()
-
 
506
 
-
 
507
  def send_processCODTxn(self, transactionId):
-
 
508
    self._oprot.writeMessageBegin('processCODTxn', TMessageType.CALL, self._seqid)
-
 
509
    args = processCODTxn_args()
-
 
510
    args.transactionId = transactionId
-
 
511
    args.write(self._oprot)
-
 
512
    self._oprot.writeMessageEnd()
-
 
513
    self._oprot.trans.flush()
-
 
514
 
-
 
515
  def recv_processCODTxn(self, ):
-
 
516
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
517
    if mtype == TMessageType.EXCEPTION:
-
 
518
      x = TApplicationException()
-
 
519
      x.read(self._iprot)
-
 
520
      self._iprot.readMessageEnd()
-
 
521
      raise x
-
 
522
    result = processCODTxn_result()
-
 
523
    result.read(self._iprot)
-
 
524
    self._iprot.readMessageEnd()
-
 
525
    return
-
 
526
 
492
 
527
 
493
class Processor(shop2020.thriftpy.generic.GenericService.Processor, Iface, TProcessor):
528
class Processor(shop2020.thriftpy.generic.GenericService.Processor, Iface, TProcessor):
494
  def __init__(self, handler):
529
  def __init__(self, handler):
495
    shop2020.thriftpy.generic.GenericService.Processor.__init__(self, handler)
530
    shop2020.thriftpy.generic.GenericService.Processor.__init__(self, handler)
496
    self._processMap["getTickets"] = Processor.process_getTickets
531
    self._processMap["getTickets"] = Processor.process_getTickets
Line 504... Line 539...
504
    self._processMap["updatePasswordForAgent"] = Processor.process_updatePasswordForAgent
539
    self._processMap["updatePasswordForAgent"] = Processor.process_updatePasswordForAgent
505
    self._processMap["getRoleNamesForAgent"] = Processor.process_getRoleNamesForAgent
540
    self._processMap["getRoleNamesForAgent"] = Processor.process_getRoleNamesForAgent
506
    self._processMap["getPermissionsForRoleName"] = Processor.process_getPermissionsForRoleName
541
    self._processMap["getPermissionsForRoleName"] = Processor.process_getPermissionsForRoleName
507
    self._processMap["getLastEmailProcessedTimestamp"] = Processor.process_getLastEmailProcessedTimestamp
542
    self._processMap["getLastEmailProcessedTimestamp"] = Processor.process_getLastEmailProcessedTimestamp
508
    self._processMap["updateLastEmailProcessedTimestamp"] = Processor.process_updateLastEmailProcessedTimestamp
543
    self._processMap["updateLastEmailProcessedTimestamp"] = Processor.process_updateLastEmailProcessedTimestamp
-
 
544
    self._processMap["processCODTxn"] = Processor.process_processCODTxn
509
 
545
 
510
  def process(self, iprot, oprot):
546
  def process(self, iprot, oprot):
511
    (name, type, seqid) = iprot.readMessageBegin()
547
    (name, type, seqid) = iprot.readMessageBegin()
512
    if name not in self._processMap:
548
    if name not in self._processMap:
513
      iprot.skip(TType.STRUCT)
549
      iprot.skip(TType.STRUCT)
Line 663... Line 699...
663
    oprot.writeMessageBegin("updateLastEmailProcessedTimestamp", TMessageType.REPLY, seqid)
699
    oprot.writeMessageBegin("updateLastEmailProcessedTimestamp", TMessageType.REPLY, seqid)
664
    result.write(oprot)
700
    result.write(oprot)
665
    oprot.writeMessageEnd()
701
    oprot.writeMessageEnd()
666
    oprot.trans.flush()
702
    oprot.trans.flush()
667
 
703
 
-
 
704
  def process_processCODTxn(self, seqid, iprot, oprot):
-
 
705
    args = processCODTxn_args()
-
 
706
    args.read(iprot)
-
 
707
    iprot.readMessageEnd()
-
 
708
    result = processCODTxn_result()
-
 
709
    self._handler.processCODTxn(args.transactionId)
-
 
710
    oprot.writeMessageBegin("processCODTxn", TMessageType.REPLY, seqid)
-
 
711
    result.write(oprot)
-
 
712
    oprot.writeMessageEnd()
-
 
713
    oprot.trans.flush()
-
 
714
 
668
 
715
 
669
# HELPER FUNCTIONS AND STRUCTURES
716
# HELPER FUNCTIONS AND STRUCTURES
670
 
717
 
671
class getTickets_args:
718
class getTickets_args:
672
  """
719
  """
Line 2204... Line 2251...
2204
    oprot.writeFieldStop()
2251
    oprot.writeFieldStop()
2205
    oprot.writeStructEnd()
2252
    oprot.writeStructEnd()
2206
 
2253
 
2207
  def validate(self):
2254
  def validate(self):
2208
    return
2255
    return
-
 
2256
 
-
 
2257
 
-
 
2258
  def __repr__(self):
-
 
2259
    L = ['%s=%r' % (key, value)
-
 
2260
      for key, value in self.__dict__.iteritems()]
-
 
2261
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
2262
 
-
 
2263
  def __eq__(self, other):
-
 
2264
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
2265
 
-
 
2266
  def __ne__(self, other):
-
 
2267
    return not (self == other)
-
 
2268
 
-
 
2269
class processCODTxn_args:
-
 
2270
  """
-
 
2271
  Attributes:
-
 
2272
   - transactionId
-
 
2273
  """
-
 
2274
 
-
 
2275
  thrift_spec = (
-
 
2276
    None, # 0
-
 
2277
    (1, TType.I64, 'transactionId', None, None, ), # 1
-
 
2278
  )
-
 
2279
 
-
 
2280
  def __init__(self, transactionId=None,):
-
 
2281
    self.transactionId = transactionId
-
 
2282
 
-
 
2283
  def read(self, iprot):
-
 
2284
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
2285
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
2286
      return
-
 
2287
    iprot.readStructBegin()
-
 
2288
    while True:
-
 
2289
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
2290
      if ftype == TType.STOP:
-
 
2291
        break
-
 
2292
      if fid == 1:
-
 
2293
        if ftype == TType.I64:
-
 
2294
          self.transactionId = iprot.readI64();
-
 
2295
        else:
-
 
2296
          iprot.skip(ftype)
-
 
2297
      else:
-
 
2298
        iprot.skip(ftype)
-
 
2299
      iprot.readFieldEnd()
-
 
2300
    iprot.readStructEnd()
-
 
2301
 
-
 
2302
  def write(self, oprot):
-
 
2303
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
2304
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
2305
      return
-
 
2306
    oprot.writeStructBegin('processCODTxn_args')
-
 
2307
    if self.transactionId is not None:
-
 
2308
      oprot.writeFieldBegin('transactionId', TType.I64, 1)
-
 
2309
      oprot.writeI64(self.transactionId)
-
 
2310
      oprot.writeFieldEnd()
-
 
2311
    oprot.writeFieldStop()
-
 
2312
    oprot.writeStructEnd()
-
 
2313
 
-
 
2314
  def validate(self):
-
 
2315
    return
-
 
2316
 
-
 
2317
 
-
 
2318
  def __repr__(self):
-
 
2319
    L = ['%s=%r' % (key, value)
-
 
2320
      for key, value in self.__dict__.iteritems()]
-
 
2321
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
2322
 
-
 
2323
  def __eq__(self, other):
-
 
2324
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
2325
 
-
 
2326
  def __ne__(self, other):
-
 
2327
    return not (self == other)
-
 
2328
 
-
 
2329
class processCODTxn_result:
-
 
2330
 
-
 
2331
  thrift_spec = (
-
 
2332
  )
-
 
2333
 
-
 
2334
  def read(self, iprot):
-
 
2335
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
2336
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
2337
      return
-
 
2338
    iprot.readStructBegin()
-
 
2339
    while True:
-
 
2340
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
2341
      if ftype == TType.STOP:
-
 
2342
        break
-
 
2343
      else:
-
 
2344
        iprot.skip(ftype)
-
 
2345
      iprot.readFieldEnd()
-
 
2346
    iprot.readStructEnd()
-
 
2347
 
-
 
2348
  def write(self, oprot):
-
 
2349
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
2350
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
2351
      return
-
 
2352
    oprot.writeStructBegin('processCODTxn_result')
-
 
2353
    oprot.writeFieldStop()
-
 
2354
    oprot.writeStructEnd()
-
 
2355
 
-
 
2356
  def validate(self):
-
 
2357
    return
2209
 
2358
 
2210
 
2359
 
2211
  def __repr__(self):
2360
  def __repr__(self):
2212
    L = ['%s=%r' % (key, value)
2361
    L = ['%s=%r' % (key, value)
2213
      for key, value in self.__dict__.iteritems()]
2362
      for key, value in self.__dict__.iteritems()]