Subversion Repositories SmartDukaan

Rev

Rev 13600 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 13600 Rev 21847
Line 114... Line 114...
114
    """
114
    """
115
    pass
115
    pass
116
 
116
 
117
  def getSuppliers(self, ):
117
  def getSuppliers(self, ):
118
    """
118
    """
-
 
119
    Returns all the valid suppliers with GST Codes
-
 
120
    """
-
 
121
    pass
-
 
122
 
-
 
123
  def getAllSuppliers(self, ):
-
 
124
    """
119
    Returns all the valid suppliers
125
    Returns all the valid suppliers
120
    """
126
    """
121
    pass
127
    pass
122
 
128
 
123
  def fulfillPO(self, purchaseOrderId, itemId, quantity):
129
  def fulfillPO(self, purchaseOrderId, itemId, quantity):
Line 680... Line 686...
680
      raise result.e
686
      raise result.e
681
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getPendingPurchaseOrders failed: unknown result");
687
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getPendingPurchaseOrders failed: unknown result");
682
 
688
 
683
  def getSuppliers(self, ):
689
  def getSuppliers(self, ):
684
    """
690
    """
685
    Returns all the valid suppliers
691
    Returns all the valid suppliers with GST Codes
686
    """
692
    """
687
    self.send_getSuppliers()
693
    self.send_getSuppliers()
688
    return self.recv_getSuppliers()
694
    return self.recv_getSuppliers()
689
 
695
 
690
  def send_getSuppliers(self, ):
696
  def send_getSuppliers(self, ):
Line 708... Line 714...
708
      return result.success
714
      return result.success
709
    if result.e is not None:
715
    if result.e is not None:
710
      raise result.e
716
      raise result.e
711
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getSuppliers failed: unknown result");
717
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getSuppliers failed: unknown result");
712
 
718
 
-
 
719
  def getAllSuppliers(self, ):
-
 
720
    """
-
 
721
    Returns all the valid suppliers
-
 
722
    """
-
 
723
    self.send_getAllSuppliers()
-
 
724
    return self.recv_getAllSuppliers()
-
 
725
 
-
 
726
  def send_getAllSuppliers(self, ):
-
 
727
    self._oprot.writeMessageBegin('getAllSuppliers', TMessageType.CALL, self._seqid)
-
 
728
    args = getAllSuppliers_args()
-
 
729
    args.write(self._oprot)
-
 
730
    self._oprot.writeMessageEnd()
-
 
731
    self._oprot.trans.flush()
-
 
732
 
-
 
733
  def recv_getAllSuppliers(self, ):
-
 
734
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
735
    if mtype == TMessageType.EXCEPTION:
-
 
736
      x = TApplicationException()
-
 
737
      x.read(self._iprot)
-
 
738
      self._iprot.readMessageEnd()
-
 
739
      raise x
-
 
740
    result = getAllSuppliers_result()
-
 
741
    result.read(self._iprot)
-
 
742
    self._iprot.readMessageEnd()
-
 
743
    if result.success is not None:
-
 
744
      return result.success
-
 
745
    if result.e is not None:
-
 
746
      raise result.e
-
 
747
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getAllSuppliers failed: unknown result");
-
 
748
 
713
  def fulfillPO(self, purchaseOrderId, itemId, quantity):
749
  def fulfillPO(self, purchaseOrderId, itemId, quantity):
714
    """
750
    """
715
    Fulfills a given purchase order with an item.
751
    Fulfills a given purchase order with an item.
716
 
752
 
717
    Parameters:
753
    Parameters:
Line 1452... Line 1488...
1452
    self._processMap["getAllPurchases"] = Processor.process_getAllPurchases
1488
    self._processMap["getAllPurchases"] = Processor.process_getAllPurchases
1453
    self._processMap["getPurchasesForPO"] = Processor.process_getPurchasesForPO
1489
    self._processMap["getPurchasesForPO"] = Processor.process_getPurchasesForPO
1454
    self._processMap["getPurchaseOrderForPurchase"] = Processor.process_getPurchaseOrderForPurchase
1490
    self._processMap["getPurchaseOrderForPurchase"] = Processor.process_getPurchaseOrderForPurchase
1455
    self._processMap["getPendingPurchaseOrders"] = Processor.process_getPendingPurchaseOrders
1491
    self._processMap["getPendingPurchaseOrders"] = Processor.process_getPendingPurchaseOrders
1456
    self._processMap["getSuppliers"] = Processor.process_getSuppliers
1492
    self._processMap["getSuppliers"] = Processor.process_getSuppliers
-
 
1493
    self._processMap["getAllSuppliers"] = Processor.process_getAllSuppliers
1457
    self._processMap["fulfillPO"] = Processor.process_fulfillPO
1494
    self._processMap["fulfillPO"] = Processor.process_fulfillPO
1458
    self._processMap["updatePurchaseOrder"] = Processor.process_updatePurchaseOrder
1495
    self._processMap["updatePurchaseOrder"] = Processor.process_updatePurchaseOrder
1459
    self._processMap["unFulfillPO"] = Processor.process_unFulfillPO
1496
    self._processMap["unFulfillPO"] = Processor.process_unFulfillPO
1460
    self._processMap["getInvoices"] = Processor.process_getInvoices
1497
    self._processMap["getInvoices"] = Processor.process_getInvoices
1461
    self._processMap["getInvoicesForWarehouse"] = Processor.process_getInvoicesForWarehouse
1498
    self._processMap["getInvoicesForWarehouse"] = Processor.process_getInvoicesForWarehouse
Line 1641... Line 1678...
1641
    oprot.writeMessageBegin("getSuppliers", TMessageType.REPLY, seqid)
1678
    oprot.writeMessageBegin("getSuppliers", TMessageType.REPLY, seqid)
1642
    result.write(oprot)
1679
    result.write(oprot)
1643
    oprot.writeMessageEnd()
1680
    oprot.writeMessageEnd()
1644
    oprot.trans.flush()
1681
    oprot.trans.flush()
1645
 
1682
 
-
 
1683
  def process_getAllSuppliers(self, seqid, iprot, oprot):
-
 
1684
    args = getAllSuppliers_args()
-
 
1685
    args.read(iprot)
-
 
1686
    iprot.readMessageEnd()
-
 
1687
    result = getAllSuppliers_result()
-
 
1688
    try:
-
 
1689
      result.success = self._handler.getAllSuppliers()
-
 
1690
    except PurchaseServiceException, e:
-
 
1691
      result.e = e
-
 
1692
    oprot.writeMessageBegin("getAllSuppliers", TMessageType.REPLY, seqid)
-
 
1693
    result.write(oprot)
-
 
1694
    oprot.writeMessageEnd()
-
 
1695
    oprot.trans.flush()
-
 
1696
 
1646
  def process_fulfillPO(self, seqid, iprot, oprot):
1697
  def process_fulfillPO(self, seqid, iprot, oprot):
1647
    args = fulfillPO_args()
1698
    args = fulfillPO_args()
1648
    args.read(iprot)
1699
    args.read(iprot)
1649
    iprot.readMessageEnd()
1700
    iprot.readMessageEnd()
1650
    result = fulfillPO_result()
1701
    result = fulfillPO_result()
Line 3437... Line 3488...
3437
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3488
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
3438
 
3489
 
3439
  def __ne__(self, other):
3490
  def __ne__(self, other):
3440
    return not (self == other)
3491
    return not (self == other)
3441
 
3492
 
-
 
3493
class getAllSuppliers_args:
-
 
3494
 
-
 
3495
  thrift_spec = (
-
 
3496
  )
-
 
3497
 
-
 
3498
  def read(self, iprot):
-
 
3499
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
3500
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
3501
      return
-
 
3502
    iprot.readStructBegin()
-
 
3503
    while True:
-
 
3504
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
3505
      if ftype == TType.STOP:
-
 
3506
        break
-
 
3507
      else:
-
 
3508
        iprot.skip(ftype)
-
 
3509
      iprot.readFieldEnd()
-
 
3510
    iprot.readStructEnd()
-
 
3511
 
-
 
3512
  def write(self, oprot):
-
 
3513
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
3514
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
3515
      return
-
 
3516
    oprot.writeStructBegin('getAllSuppliers_args')
-
 
3517
    oprot.writeFieldStop()
-
 
3518
    oprot.writeStructEnd()
-
 
3519
 
-
 
3520
  def validate(self):
-
 
3521
    return
-
 
3522
 
-
 
3523
 
-
 
3524
  def __repr__(self):
-
 
3525
    L = ['%s=%r' % (key, value)
-
 
3526
      for key, value in self.__dict__.iteritems()]
-
 
3527
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
3528
 
-
 
3529
  def __eq__(self, other):
-
 
3530
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
3531
 
-
 
3532
  def __ne__(self, other):
-
 
3533
    return not (self == other)
-
 
3534
 
-
 
3535
class getAllSuppliers_result:
-
 
3536
  """
-
 
3537
  Attributes:
-
 
3538
   - success
-
 
3539
   - e
-
 
3540
  """
-
 
3541
 
-
 
3542
  thrift_spec = (
-
 
3543
    (0, TType.LIST, 'success', (TType.STRUCT,(Supplier, Supplier.thrift_spec)), None, ), # 0
-
 
3544
    (1, TType.STRUCT, 'e', (PurchaseServiceException, PurchaseServiceException.thrift_spec), None, ), # 1
-
 
3545
  )
-
 
3546
 
-
 
3547
  def __init__(self, success=None, e=None,):
-
 
3548
    self.success = success
-
 
3549
    self.e = e
-
 
3550
 
-
 
3551
  def read(self, iprot):
-
 
3552
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
3553
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
3554
      return
-
 
3555
    iprot.readStructBegin()
-
 
3556
    while True:
-
 
3557
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
3558
      if ftype == TType.STOP:
-
 
3559
        break
-
 
3560
      if fid == 0:
-
 
3561
        if ftype == TType.LIST:
-
 
3562
          self.success = []
-
 
3563
          (_etype45, _size42) = iprot.readListBegin()
-
 
3564
          for _i46 in xrange(_size42):
-
 
3565
            _elem47 = Supplier()
-
 
3566
            _elem47.read(iprot)
-
 
3567
            self.success.append(_elem47)
-
 
3568
          iprot.readListEnd()
-
 
3569
        else:
-
 
3570
          iprot.skip(ftype)
-
 
3571
      elif fid == 1:
-
 
3572
        if ftype == TType.STRUCT:
-
 
3573
          self.e = PurchaseServiceException()
-
 
3574
          self.e.read(iprot)
-
 
3575
        else:
-
 
3576
          iprot.skip(ftype)
-
 
3577
      else:
-
 
3578
        iprot.skip(ftype)
-
 
3579
      iprot.readFieldEnd()
-
 
3580
    iprot.readStructEnd()
-
 
3581
 
-
 
3582
  def write(self, oprot):
-
 
3583
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
3584
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
3585
      return
-
 
3586
    oprot.writeStructBegin('getAllSuppliers_result')
-
 
3587
    if self.success is not None:
-
 
3588
      oprot.writeFieldBegin('success', TType.LIST, 0)
-
 
3589
      oprot.writeListBegin(TType.STRUCT, len(self.success))
-
 
3590
      for iter48 in self.success:
-
 
3591
        iter48.write(oprot)
-
 
3592
      oprot.writeListEnd()
-
 
3593
      oprot.writeFieldEnd()
-
 
3594
    if self.e is not None:
-
 
3595
      oprot.writeFieldBegin('e', TType.STRUCT, 1)
-
 
3596
      self.e.write(oprot)
-
 
3597
      oprot.writeFieldEnd()
-
 
3598
    oprot.writeFieldStop()
-
 
3599
    oprot.writeStructEnd()
-
 
3600
 
-
 
3601
  def validate(self):
-
 
3602
    return
-
 
3603
 
-
 
3604
 
-
 
3605
  def __repr__(self):
-
 
3606
    L = ['%s=%r' % (key, value)
-
 
3607
      for key, value in self.__dict__.iteritems()]
-
 
3608
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
3609
 
-
 
3610
  def __eq__(self, other):
-
 
3611
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
3612
 
-
 
3613
  def __ne__(self, other):
-
 
3614
    return not (self == other)
-
 
3615
 
3442
class fulfillPO_args:
3616
class fulfillPO_args:
3443
  """
3617
  """
3444
  Attributes:
3618
  Attributes:
3445
   - purchaseOrderId
3619
   - purchaseOrderId
3446
   - itemId
3620
   - itemId
Line 3934... Line 4108...
3934
      if ftype == TType.STOP:
4108
      if ftype == TType.STOP:
3935
        break
4109
        break
3936
      if fid == 0:
4110
      if fid == 0:
3937
        if ftype == TType.LIST:
4111
        if ftype == TType.LIST:
3938
          self.success = []
4112
          self.success = []
3939
          (_etype45, _size42) = iprot.readListBegin()
4113
          (_etype52, _size49) = iprot.readListBegin()
3940
          for _i46 in xrange(_size42):
4114
          for _i53 in xrange(_size49):
3941
            _elem47 = Invoice()
4115
            _elem54 = Invoice()
3942
            _elem47.read(iprot)
4116
            _elem54.read(iprot)
3943
            self.success.append(_elem47)
4117
            self.success.append(_elem54)
3944
          iprot.readListEnd()
4118
          iprot.readListEnd()
3945
        else:
4119
        else:
3946
          iprot.skip(ftype)
4120
          iprot.skip(ftype)
3947
      else:
4121
      else:
3948
        iprot.skip(ftype)
4122
        iprot.skip(ftype)
Line 3955... Line 4129...
3955
      return
4129
      return
3956
    oprot.writeStructBegin('getInvoices_result')
4130
    oprot.writeStructBegin('getInvoices_result')
3957
    if self.success is not None:
4131
    if self.success is not None:
3958
      oprot.writeFieldBegin('success', TType.LIST, 0)
4132
      oprot.writeFieldBegin('success', TType.LIST, 0)
3959
      oprot.writeListBegin(TType.STRUCT, len(self.success))
4133
      oprot.writeListBegin(TType.STRUCT, len(self.success))
3960
      for iter48 in self.success:
4134
      for iter55 in self.success:
3961
        iter48.write(oprot)
4135
        iter55.write(oprot)
3962
      oprot.writeListEnd()
4136
      oprot.writeListEnd()
3963
      oprot.writeFieldEnd()
4137
      oprot.writeFieldEnd()
3964
    oprot.writeFieldStop()
4138
    oprot.writeFieldStop()
3965
    oprot.writeStructEnd()
4139
    oprot.writeStructEnd()
3966
 
4140
 
Line 4086... Line 4260...
4086
      if ftype == TType.STOP:
4260
      if ftype == TType.STOP:
4087
        break
4261
        break
4088
      if fid == 0:
4262
      if fid == 0:
4089
        if ftype == TType.LIST:
4263
        if ftype == TType.LIST:
4090
          self.success = []
4264
          self.success = []
4091
          (_etype52, _size49) = iprot.readListBegin()
4265
          (_etype59, _size56) = iprot.readListBegin()
4092
          for _i53 in xrange(_size49):
4266
          for _i60 in xrange(_size56):
4093
            _elem54 = Invoice()
4267
            _elem61 = Invoice()
4094
            _elem54.read(iprot)
4268
            _elem61.read(iprot)
4095
            self.success.append(_elem54)
4269
            self.success.append(_elem61)
4096
          iprot.readListEnd()
4270
          iprot.readListEnd()
4097
        else:
4271
        else:
4098
          iprot.skip(ftype)
4272
          iprot.skip(ftype)
4099
      else:
4273
      else:
4100
        iprot.skip(ftype)
4274
        iprot.skip(ftype)
Line 4107... Line 4281...
4107
      return
4281
      return
4108
    oprot.writeStructBegin('getInvoicesForWarehouse_result')
4282
    oprot.writeStructBegin('getInvoicesForWarehouse_result')
4109
    if self.success is not None:
4283
    if self.success is not None:
4110
      oprot.writeFieldBegin('success', TType.LIST, 0)
4284
      oprot.writeFieldBegin('success', TType.LIST, 0)
4111
      oprot.writeListBegin(TType.STRUCT, len(self.success))
4285
      oprot.writeListBegin(TType.STRUCT, len(self.success))
4112
      for iter55 in self.success:
4286
      for iter62 in self.success:
4113
        iter55.write(oprot)
4287
        iter62.write(oprot)
4114
      oprot.writeListEnd()
4288
      oprot.writeListEnd()
4115
      oprot.writeFieldEnd()
4289
      oprot.writeFieldEnd()
4116
    oprot.writeFieldStop()
4290
    oprot.writeFieldStop()
4117
    oprot.writeStructEnd()
4291
    oprot.writeStructEnd()
4118
 
4292
 
Line 4764... Line 4938...
4764
      if ftype == TType.STOP:
4938
      if ftype == TType.STOP:
4765
        break
4939
        break
4766
      if fid == 0:
4940
      if fid == 0:
4767
        if ftype == TType.LIST:
4941
        if ftype == TType.LIST:
4768
          self.success = []
4942
          self.success = []
4769
          (_etype59, _size56) = iprot.readListBegin()
4943
          (_etype66, _size63) = iprot.readListBegin()
4770
          for _i60 in xrange(_size56):
4944
          for _i67 in xrange(_size63):
4771
            _elem61 = PurchaseReturn()
4945
            _elem68 = PurchaseReturn()
4772
            _elem61.read(iprot)
4946
            _elem68.read(iprot)
4773
            self.success.append(_elem61)
4947
            self.success.append(_elem68)
4774
          iprot.readListEnd()
4948
          iprot.readListEnd()
4775
        else:
4949
        else:
4776
          iprot.skip(ftype)
4950
          iprot.skip(ftype)
4777
      else:
4951
      else:
4778
        iprot.skip(ftype)
4952
        iprot.skip(ftype)
Line 4785... Line 4959...
4785
      return
4959
      return
4786
    oprot.writeStructBegin('getUnsettledPurchaseReturns_result')
4960
    oprot.writeStructBegin('getUnsettledPurchaseReturns_result')
4787
    if self.success is not None:
4961
    if self.success is not None:
4788
      oprot.writeFieldBegin('success', TType.LIST, 0)
4962
      oprot.writeFieldBegin('success', TType.LIST, 0)
4789
      oprot.writeListBegin(TType.STRUCT, len(self.success))
4963
      oprot.writeListBegin(TType.STRUCT, len(self.success))
4790
      for iter62 in self.success:
4964
      for iter69 in self.success:
4791
        iter62.write(oprot)
4965
        iter69.write(oprot)
4792
      oprot.writeListEnd()
4966
      oprot.writeListEnd()
4793
      oprot.writeFieldEnd()
4967
      oprot.writeFieldEnd()
4794
    oprot.writeFieldStop()
4968
    oprot.writeFieldStop()
4795
    oprot.writeStructEnd()
4969
    oprot.writeStructEnd()
4796
 
4970
 
Line 4904... Line 5078...
4904
      if ftype == TType.STOP:
5078
      if ftype == TType.STOP:
4905
        break
5079
        break
4906
      if fid == 0:
5080
      if fid == 0:
4907
        if ftype == TType.LIST:
5081
        if ftype == TType.LIST:
4908
          self.success = []
5082
          self.success = []
4909
          (_etype66, _size63) = iprot.readListBegin()
5083
          (_etype73, _size70) = iprot.readListBegin()
4910
          for _i67 in xrange(_size63):
5084
          for _i74 in xrange(_size70):
4911
            _elem68 = PurchaseReturn()
5085
            _elem75 = PurchaseReturn()
4912
            _elem68.read(iprot)
5086
            _elem75.read(iprot)
4913
            self.success.append(_elem68)
5087
            self.success.append(_elem75)
4914
          iprot.readListEnd()
5088
          iprot.readListEnd()
4915
        else:
5089
        else:
4916
          iprot.skip(ftype)
5090
          iprot.skip(ftype)
4917
      else:
5091
      else:
4918
        iprot.skip(ftype)
5092
        iprot.skip(ftype)
Line 4925... Line 5099...
4925
      return
5099
      return
4926
    oprot.writeStructBegin('getInvoice_result')
5100
    oprot.writeStructBegin('getInvoice_result')
4927
    if self.success is not None:
5101
    if self.success is not None:
4928
      oprot.writeFieldBegin('success', TType.LIST, 0)
5102
      oprot.writeFieldBegin('success', TType.LIST, 0)
4929
      oprot.writeListBegin(TType.STRUCT, len(self.success))
5103
      oprot.writeListBegin(TType.STRUCT, len(self.success))
4930
      for iter69 in self.success:
5104
      for iter76 in self.success:
4931
        iter69.write(oprot)
5105
        iter76.write(oprot)
4932
      oprot.writeListEnd()
5106
      oprot.writeListEnd()
4933
      oprot.writeFieldEnd()
5107
      oprot.writeFieldEnd()
4934
    oprot.writeFieldStop()
5108
    oprot.writeFieldStop()
4935
    oprot.writeStructEnd()
5109
    oprot.writeStructEnd()
4936
 
5110
 
Line 6135... Line 6309...
6135
      if ftype == TType.STOP:
6309
      if ftype == TType.STOP:
6136
        break
6310
        break
6137
      if fid == 0:
6311
      if fid == 0:
6138
        if ftype == TType.LIST:
6312
        if ftype == TType.LIST:
6139
          self.success = []
6313
          self.success = []
6140
          (_etype73, _size70) = iprot.readListBegin()
6314
          (_etype80, _size77) = iprot.readListBegin()
6141
          for _i74 in xrange(_size70):
6315
          for _i81 in xrange(_size77):
6142
            _elem75 = PurchaseReturnSettlement()
6316
            _elem82 = PurchaseReturnSettlement()
6143
            _elem75.read(iprot)
6317
            _elem82.read(iprot)
6144
            self.success.append(_elem75)
6318
            self.success.append(_elem82)
6145
          iprot.readListEnd()
6319
          iprot.readListEnd()
6146
        else:
6320
        else:
6147
          iprot.skip(ftype)
6321
          iprot.skip(ftype)
6148
      elif fid == 1:
6322
      elif fid == 1:
6149
        if ftype == TType.STRUCT:
6323
        if ftype == TType.STRUCT:
Line 6162... Line 6336...
6162
      return
6336
      return
6163
    oprot.writeStructBegin('getPrSettlementsForPurchaseReturn_result')
6337
    oprot.writeStructBegin('getPrSettlementsForPurchaseReturn_result')
6164
    if self.success is not None:
6338
    if self.success is not None:
6165
      oprot.writeFieldBegin('success', TType.LIST, 0)
6339
      oprot.writeFieldBegin('success', TType.LIST, 0)
6166
      oprot.writeListBegin(TType.STRUCT, len(self.success))
6340
      oprot.writeListBegin(TType.STRUCT, len(self.success))
6167
      for iter76 in self.success:
6341
      for iter83 in self.success:
6168
        iter76.write(oprot)
6342
        iter83.write(oprot)
6169
      oprot.writeListEnd()
6343
      oprot.writeListEnd()
6170
      oprot.writeFieldEnd()
6344
      oprot.writeFieldEnd()
6171
    if self.e is not None:
6345
    if self.e is not None:
6172
      oprot.writeFieldBegin('e', TType.STRUCT, 1)
6346
      oprot.writeFieldBegin('e', TType.STRUCT, 1)
6173
      self.e.write(oprot)
6347
      self.e.write(oprot)