Subversion Repositories SmartDukaan

Rev

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

Rev 15251 Rev 17782
Line 730... Line 730...
730
    Parameters:
730
    Parameters:
731
     - accessToken
731
     - accessToken
732
    """
732
    """
733
    pass
733
    pass
734
 
734
 
-
 
735
  def addItemsToCart(self, cartId, itemQty, couponCode):
-
 
736
    """
-
 
737
    Parameters:
-
 
738
     - cartId
-
 
739
     - itemQty
-
 
740
     - couponCode
-
 
741
    """
-
 
742
    pass
-
 
743
 
-
 
744
  def validateCartNew(self, cartId, pinCode, sourceId):
-
 
745
    """
-
 
746
    Parameters:
-
 
747
     - cartId
-
 
748
     - pinCode
-
 
749
     - sourceId
-
 
750
    """
-
 
751
    pass
-
 
752
 
735
 
753
 
736
class Client(shop2020.thriftpy.generic.GenericService.Client, Iface):
754
class Client(shop2020.thriftpy.generic.GenericService.Client, Iface):
737
  """
755
  """
738
  service
756
  service
739
  """
757
  """
Line 3511... Line 3529...
3511
    self._iprot.readMessageEnd()
3529
    self._iprot.readMessageEnd()
3512
    if result.success is not None:
3530
    if result.success is not None:
3513
      return result.success
3531
      return result.success
3514
    raise TApplicationException(TApplicationException.MISSING_RESULT, "validateAccessToken failed: unknown result");
3532
    raise TApplicationException(TApplicationException.MISSING_RESULT, "validateAccessToken failed: unknown result");
3515
 
3533
 
-
 
3534
  def addItemsToCart(self, cartId, itemQty, couponCode):
-
 
3535
    """
-
 
3536
    Parameters:
-
 
3537
     - cartId
-
 
3538
     - itemQty
-
 
3539
     - couponCode
-
 
3540
    """
-
 
3541
    self.send_addItemsToCart(cartId, itemQty, couponCode)
-
 
3542
    return self.recv_addItemsToCart()
-
 
3543
 
-
 
3544
  def send_addItemsToCart(self, cartId, itemQty, couponCode):
-
 
3545
    self._oprot.writeMessageBegin('addItemsToCart', TMessageType.CALL, self._seqid)
-
 
3546
    args = addItemsToCart_args()
-
 
3547
    args.cartId = cartId
-
 
3548
    args.itemQty = itemQty
-
 
3549
    args.couponCode = couponCode
-
 
3550
    args.write(self._oprot)
-
 
3551
    self._oprot.writeMessageEnd()
-
 
3552
    self._oprot.trans.flush()
-
 
3553
 
-
 
3554
  def recv_addItemsToCart(self, ):
-
 
3555
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
3556
    if mtype == TMessageType.EXCEPTION:
-
 
3557
      x = TApplicationException()
-
 
3558
      x.read(self._iprot)
-
 
3559
      self._iprot.readMessageEnd()
-
 
3560
      raise x
-
 
3561
    result = addItemsToCart_result()
-
 
3562
    result.read(self._iprot)
-
 
3563
    self._iprot.readMessageEnd()
-
 
3564
    if result.success is not None:
-
 
3565
      return result.success
-
 
3566
    raise TApplicationException(TApplicationException.MISSING_RESULT, "addItemsToCart failed: unknown result");
-
 
3567
 
-
 
3568
  def validateCartNew(self, cartId, pinCode, sourceId):
-
 
3569
    """
-
 
3570
    Parameters:
-
 
3571
     - cartId
-
 
3572
     - pinCode
-
 
3573
     - sourceId
-
 
3574
    """
-
 
3575
    self.send_validateCartNew(cartId, pinCode, sourceId)
-
 
3576
    return self.recv_validateCartNew()
-
 
3577
 
-
 
3578
  def send_validateCartNew(self, cartId, pinCode, sourceId):
-
 
3579
    self._oprot.writeMessageBegin('validateCartNew', TMessageType.CALL, self._seqid)
-
 
3580
    args = validateCartNew_args()
-
 
3581
    args.cartId = cartId
-
 
3582
    args.pinCode = pinCode
-
 
3583
    args.sourceId = sourceId
-
 
3584
    args.write(self._oprot)
-
 
3585
    self._oprot.writeMessageEnd()
-
 
3586
    self._oprot.trans.flush()
-
 
3587
 
-
 
3588
  def recv_validateCartNew(self, ):
-
 
3589
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
3590
    if mtype == TMessageType.EXCEPTION:
-
 
3591
      x = TApplicationException()
-
 
3592
      x.read(self._iprot)
-
 
3593
      self._iprot.readMessageEnd()
-
 
3594
      raise x
-
 
3595
    result = validateCartNew_result()
-
 
3596
    result.read(self._iprot)
-
 
3597
    self._iprot.readMessageEnd()
-
 
3598
    if result.success is not None:
-
 
3599
      return result.success
-
 
3600
    raise TApplicationException(TApplicationException.MISSING_RESULT, "validateCartNew failed: unknown result");
-
 
3601
 
3516
 
3602
 
3517
class Processor(shop2020.thriftpy.generic.GenericService.Processor, Iface, TProcessor):
3603
class Processor(shop2020.thriftpy.generic.GenericService.Processor, Iface, TProcessor):
3518
  def __init__(self, handler):
3604
  def __init__(self, handler):
3519
    shop2020.thriftpy.generic.GenericService.Processor.__init__(self, handler)
3605
    shop2020.thriftpy.generic.GenericService.Processor.__init__(self, handler)
3520
    self._processMap["createAnonymousUser"] = Processor.process_createAnonymousUser
3606
    self._processMap["createAnonymousUser"] = Processor.process_createAnonymousUser
Line 3598... Line 3684...
3598
    self._processMap["registerCounter"] = Processor.process_registerCounter
3684
    self._processMap["registerCounter"] = Processor.process_registerCounter
3599
    self._processMap["searchCounter"] = Processor.process_searchCounter
3685
    self._processMap["searchCounter"] = Processor.process_searchCounter
3600
    self._processMap["getAllUsersByCounter"] = Processor.process_getAllUsersByCounter
3686
    self._processMap["getAllUsersByCounter"] = Processor.process_getAllUsersByCounter
3601
    self._processMap["getActiveAccessTokenForUser"] = Processor.process_getActiveAccessTokenForUser
3687
    self._processMap["getActiveAccessTokenForUser"] = Processor.process_getActiveAccessTokenForUser
3602
    self._processMap["validateAccessToken"] = Processor.process_validateAccessToken
3688
    self._processMap["validateAccessToken"] = Processor.process_validateAccessToken
-
 
3689
    self._processMap["addItemsToCart"] = Processor.process_addItemsToCart
-
 
3690
    self._processMap["validateCartNew"] = Processor.process_validateCartNew
3603
 
3691
 
3604
  def process(self, iprot, oprot):
3692
  def process(self, iprot, oprot):
3605
    (name, type, seqid) = iprot.readMessageBegin()
3693
    (name, type, seqid) = iprot.readMessageBegin()
3606
    if name not in self._processMap:
3694
    if name not in self._processMap:
3607
      iprot.skip(TType.STRUCT)
3695
      iprot.skip(TType.STRUCT)
Line 4703... Line 4791...
4703
    oprot.writeMessageBegin("validateAccessToken", TMessageType.REPLY, seqid)
4791
    oprot.writeMessageBegin("validateAccessToken", TMessageType.REPLY, seqid)
4704
    result.write(oprot)
4792
    result.write(oprot)
4705
    oprot.writeMessageEnd()
4793
    oprot.writeMessageEnd()
4706
    oprot.trans.flush()
4794
    oprot.trans.flush()
4707
 
4795
 
-
 
4796
  def process_addItemsToCart(self, seqid, iprot, oprot):
-
 
4797
    args = addItemsToCart_args()
-
 
4798
    args.read(iprot)
-
 
4799
    iprot.readMessageEnd()
-
 
4800
    result = addItemsToCart_result()
-
 
4801
    result.success = self._handler.addItemsToCart(args.cartId, args.itemQty, args.couponCode)
-
 
4802
    oprot.writeMessageBegin("addItemsToCart", TMessageType.REPLY, seqid)
-
 
4803
    result.write(oprot)
-
 
4804
    oprot.writeMessageEnd()
-
 
4805
    oprot.trans.flush()
-
 
4806
 
-
 
4807
  def process_validateCartNew(self, seqid, iprot, oprot):
-
 
4808
    args = validateCartNew_args()
-
 
4809
    args.read(iprot)
-
 
4810
    iprot.readMessageEnd()
-
 
4811
    result = validateCartNew_result()
-
 
4812
    result.success = self._handler.validateCartNew(args.cartId, args.pinCode, args.sourceId)
-
 
4813
    oprot.writeMessageBegin("validateCartNew", TMessageType.REPLY, seqid)
-
 
4814
    result.write(oprot)
-
 
4815
    oprot.writeMessageEnd()
-
 
4816
    oprot.trans.flush()
-
 
4817
 
4708
 
4818
 
4709
# HELPER FUNCTIONS AND STRUCTURES
4819
# HELPER FUNCTIONS AND STRUCTURES
4710
 
4820
 
4711
class createAnonymousUser_args:
4821
class createAnonymousUser_args:
4712
  """
4822
  """
Line 16197... Line 16307...
16197
      oprot.writeFieldEnd()
16307
      oprot.writeFieldEnd()
16198
    oprot.writeFieldStop()
16308
    oprot.writeFieldStop()
16199
    oprot.writeStructEnd()
16309
    oprot.writeStructEnd()
16200
 
16310
 
16201
  def validate(self):
16311
  def validate(self):
-
 
16312
    return
-
 
16313
 
-
 
16314
 
-
 
16315
  def __repr__(self):
-
 
16316
    L = ['%s=%r' % (key, value)
-
 
16317
      for key, value in self.__dict__.iteritems()]
-
 
16318
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
16319
 
-
 
16320
  def __eq__(self, other):
-
 
16321
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
16322
 
-
 
16323
  def __ne__(self, other):
-
 
16324
    return not (self == other)
-
 
16325
 
-
 
16326
class addItemsToCart_args:
-
 
16327
  """
-
 
16328
  Attributes:
-
 
16329
   - cartId
-
 
16330
   - itemQty
-
 
16331
   - couponCode
-
 
16332
  """
-
 
16333
 
-
 
16334
  thrift_spec = (
-
 
16335
    None, # 0
-
 
16336
    (1, TType.I64, 'cartId', None, None, ), # 1
-
 
16337
    (2, TType.LIST, 'itemQty', (TType.STRUCT,(ItemQuantity, ItemQuantity.thrift_spec)), None, ), # 2
-
 
16338
    (3, TType.STRING, 'couponCode', None, None, ), # 3
-
 
16339
  )
-
 
16340
 
-
 
16341
  def __init__(self, cartId=None, itemQty=None, couponCode=None,):
-
 
16342
    self.cartId = cartId
-
 
16343
    self.itemQty = itemQty
-
 
16344
    self.couponCode = couponCode
-
 
16345
 
-
 
16346
  def read(self, iprot):
-
 
16347
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
16348
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
16349
      return
-
 
16350
    iprot.readStructBegin()
-
 
16351
    while True:
-
 
16352
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
16353
      if ftype == TType.STOP:
-
 
16354
        break
-
 
16355
      if fid == 1:
-
 
16356
        if ftype == TType.I64:
-
 
16357
          self.cartId = iprot.readI64();
-
 
16358
        else:
-
 
16359
          iprot.skip(ftype)
-
 
16360
      elif fid == 2:
-
 
16361
        if ftype == TType.LIST:
-
 
16362
          self.itemQty = []
-
 
16363
          (_etype251, _size248) = iprot.readListBegin()
-
 
16364
          for _i252 in xrange(_size248):
-
 
16365
            _elem253 = ItemQuantity()
-
 
16366
            _elem253.read(iprot)
-
 
16367
            self.itemQty.append(_elem253)
-
 
16368
          iprot.readListEnd()
-
 
16369
        else:
-
 
16370
          iprot.skip(ftype)
-
 
16371
      elif fid == 3:
-
 
16372
        if ftype == TType.STRING:
-
 
16373
          self.couponCode = iprot.readString();
-
 
16374
        else:
-
 
16375
          iprot.skip(ftype)
-
 
16376
      else:
-
 
16377
        iprot.skip(ftype)
-
 
16378
      iprot.readFieldEnd()
-
 
16379
    iprot.readStructEnd()
-
 
16380
 
-
 
16381
  def write(self, oprot):
-
 
16382
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
16383
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
16384
      return
-
 
16385
    oprot.writeStructBegin('addItemsToCart_args')
-
 
16386
    if self.cartId is not None:
-
 
16387
      oprot.writeFieldBegin('cartId', TType.I64, 1)
-
 
16388
      oprot.writeI64(self.cartId)
-
 
16389
      oprot.writeFieldEnd()
-
 
16390
    if self.itemQty is not None:
-
 
16391
      oprot.writeFieldBegin('itemQty', TType.LIST, 2)
-
 
16392
      oprot.writeListBegin(TType.STRUCT, len(self.itemQty))
-
 
16393
      for iter254 in self.itemQty:
-
 
16394
        iter254.write(oprot)
-
 
16395
      oprot.writeListEnd()
-
 
16396
      oprot.writeFieldEnd()
-
 
16397
    if self.couponCode is not None:
-
 
16398
      oprot.writeFieldBegin('couponCode', TType.STRING, 3)
-
 
16399
      oprot.writeString(self.couponCode)
-
 
16400
      oprot.writeFieldEnd()
-
 
16401
    oprot.writeFieldStop()
-
 
16402
    oprot.writeStructEnd()
-
 
16403
 
-
 
16404
  def validate(self):
-
 
16405
    return
-
 
16406
 
-
 
16407
 
-
 
16408
  def __repr__(self):
-
 
16409
    L = ['%s=%r' % (key, value)
-
 
16410
      for key, value in self.__dict__.iteritems()]
-
 
16411
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
16412
 
-
 
16413
  def __eq__(self, other):
-
 
16414
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
16415
 
-
 
16416
  def __ne__(self, other):
-
 
16417
    return not (self == other)
-
 
16418
 
-
 
16419
class addItemsToCart_result:
-
 
16420
  """
-
 
16421
  Attributes:
-
 
16422
   - success
-
 
16423
  """
-
 
16424
 
-
 
16425
  thrift_spec = (
-
 
16426
    (0, TType.BOOL, 'success', None, None, ), # 0
-
 
16427
  )
-
 
16428
 
-
 
16429
  def __init__(self, success=None,):
-
 
16430
    self.success = success
-
 
16431
 
-
 
16432
  def read(self, iprot):
-
 
16433
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
16434
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
16435
      return
-
 
16436
    iprot.readStructBegin()
-
 
16437
    while True:
-
 
16438
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
16439
      if ftype == TType.STOP:
-
 
16440
        break
-
 
16441
      if fid == 0:
-
 
16442
        if ftype == TType.BOOL:
-
 
16443
          self.success = iprot.readBool();
-
 
16444
        else:
-
 
16445
          iprot.skip(ftype)
-
 
16446
      else:
-
 
16447
        iprot.skip(ftype)
-
 
16448
      iprot.readFieldEnd()
-
 
16449
    iprot.readStructEnd()
-
 
16450
 
-
 
16451
  def write(self, oprot):
-
 
16452
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
16453
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
16454
      return
-
 
16455
    oprot.writeStructBegin('addItemsToCart_result')
-
 
16456
    if self.success is not None:
-
 
16457
      oprot.writeFieldBegin('success', TType.BOOL, 0)
-
 
16458
      oprot.writeBool(self.success)
-
 
16459
      oprot.writeFieldEnd()
-
 
16460
    oprot.writeFieldStop()
-
 
16461
    oprot.writeStructEnd()
-
 
16462
 
-
 
16463
  def validate(self):
-
 
16464
    return
-
 
16465
 
-
 
16466
 
-
 
16467
  def __repr__(self):
-
 
16468
    L = ['%s=%r' % (key, value)
-
 
16469
      for key, value in self.__dict__.iteritems()]
-
 
16470
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
16471
 
-
 
16472
  def __eq__(self, other):
-
 
16473
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
16474
 
-
 
16475
  def __ne__(self, other):
-
 
16476
    return not (self == other)
-
 
16477
 
-
 
16478
class validateCartNew_args:
-
 
16479
  """
-
 
16480
  Attributes:
-
 
16481
   - cartId
-
 
16482
   - pinCode
-
 
16483
   - sourceId
-
 
16484
  """
-
 
16485
 
-
 
16486
  thrift_spec = (
-
 
16487
    None, # 0
-
 
16488
    (1, TType.I64, 'cartId', None, None, ), # 1
-
 
16489
    (2, TType.STRING, 'pinCode', None, None, ), # 2
-
 
16490
    (3, TType.I64, 'sourceId', None, None, ), # 3
-
 
16491
  )
-
 
16492
 
-
 
16493
  def __init__(self, cartId=None, pinCode=None, sourceId=None,):
-
 
16494
    self.cartId = cartId
-
 
16495
    self.pinCode = pinCode
-
 
16496
    self.sourceId = sourceId
-
 
16497
 
-
 
16498
  def read(self, iprot):
-
 
16499
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
16500
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
16501
      return
-
 
16502
    iprot.readStructBegin()
-
 
16503
    while True:
-
 
16504
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
16505
      if ftype == TType.STOP:
-
 
16506
        break
-
 
16507
      if fid == 1:
-
 
16508
        if ftype == TType.I64:
-
 
16509
          self.cartId = iprot.readI64();
-
 
16510
        else:
-
 
16511
          iprot.skip(ftype)
-
 
16512
      elif fid == 2:
-
 
16513
        if ftype == TType.STRING:
-
 
16514
          self.pinCode = iprot.readString();
-
 
16515
        else:
-
 
16516
          iprot.skip(ftype)
-
 
16517
      elif fid == 3:
-
 
16518
        if ftype == TType.I64:
-
 
16519
          self.sourceId = iprot.readI64();
-
 
16520
        else:
-
 
16521
          iprot.skip(ftype)
-
 
16522
      else:
-
 
16523
        iprot.skip(ftype)
-
 
16524
      iprot.readFieldEnd()
-
 
16525
    iprot.readStructEnd()
-
 
16526
 
-
 
16527
  def write(self, oprot):
-
 
16528
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
16529
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
16530
      return
-
 
16531
    oprot.writeStructBegin('validateCartNew_args')
-
 
16532
    if self.cartId is not None:
-
 
16533
      oprot.writeFieldBegin('cartId', TType.I64, 1)
-
 
16534
      oprot.writeI64(self.cartId)
-
 
16535
      oprot.writeFieldEnd()
-
 
16536
    if self.pinCode is not None:
-
 
16537
      oprot.writeFieldBegin('pinCode', TType.STRING, 2)
-
 
16538
      oprot.writeString(self.pinCode)
-
 
16539
      oprot.writeFieldEnd()
-
 
16540
    if self.sourceId is not None:
-
 
16541
      oprot.writeFieldBegin('sourceId', TType.I64, 3)
-
 
16542
      oprot.writeI64(self.sourceId)
-
 
16543
      oprot.writeFieldEnd()
-
 
16544
    oprot.writeFieldStop()
-
 
16545
    oprot.writeStructEnd()
-
 
16546
 
-
 
16547
  def validate(self):
-
 
16548
    return
-
 
16549
 
-
 
16550
 
-
 
16551
  def __repr__(self):
-
 
16552
    L = ['%s=%r' % (key, value)
-
 
16553
      for key, value in self.__dict__.iteritems()]
-
 
16554
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
16555
 
-
 
16556
  def __eq__(self, other):
-
 
16557
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
16558
 
-
 
16559
  def __ne__(self, other):
-
 
16560
    return not (self == other)
-
 
16561
 
-
 
16562
class validateCartNew_result:
-
 
16563
  """
-
 
16564
  Attributes:
-
 
16565
   - success
-
 
16566
  """
-
 
16567
 
-
 
16568
  thrift_spec = (
-
 
16569
    (0, TType.STRING, 'success', None, None, ), # 0
-
 
16570
  )
-
 
16571
 
-
 
16572
  def __init__(self, success=None,):
-
 
16573
    self.success = success
-
 
16574
 
-
 
16575
  def read(self, iprot):
-
 
16576
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
16577
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
16578
      return
-
 
16579
    iprot.readStructBegin()
-
 
16580
    while True:
-
 
16581
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
16582
      if ftype == TType.STOP:
-
 
16583
        break
-
 
16584
      if fid == 0:
-
 
16585
        if ftype == TType.STRING:
-
 
16586
          self.success = iprot.readString();
-
 
16587
        else:
-
 
16588
          iprot.skip(ftype)
-
 
16589
      else:
-
 
16590
        iprot.skip(ftype)
-
 
16591
      iprot.readFieldEnd()
-
 
16592
    iprot.readStructEnd()
-
 
16593
 
-
 
16594
  def write(self, oprot):
-
 
16595
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
16596
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
16597
      return
-
 
16598
    oprot.writeStructBegin('validateCartNew_result')
-
 
16599
    if self.success is not None:
-
 
16600
      oprot.writeFieldBegin('success', TType.STRING, 0)
-
 
16601
      oprot.writeString(self.success)
-
 
16602
      oprot.writeFieldEnd()
-
 
16603
    oprot.writeFieldStop()
-
 
16604
    oprot.writeStructEnd()
-
 
16605
 
-
 
16606
  def validate(self):
16202
    return
16607
    return
16203
 
16608
 
16204
 
16609
 
16205
  def __repr__(self):
16610
  def __repr__(self):
16206
    L = ['%s=%r' % (key, value)
16611
    L = ['%s=%r' % (key, value)