Subversion Repositories SmartDukaan

Rev

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

Rev 21838 Rev 21853
Line 36077... Line 36077...
36077
   - success
36077
   - success
36078
   - cex
36078
   - cex
36079
  """
36079
  """
36080
 
36080
 
36081
  thrift_spec = (
36081
  thrift_spec = (
36082
    (0, TType.LIST, 'success', (TType.STRING,None), None, ), # 0
36082
    (0, TType.LIST, 'success', (TType.STRUCT,(CategoryHsnCode, CategoryHsnCode.thrift_spec)), None, ), # 0
36083
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
36083
    (1, TType.STRUCT, 'cex', (CatalogServiceException, CatalogServiceException.thrift_spec), None, ), # 1
36084
  )
36084
  )
36085
 
36085
 
36086
  def __init__(self, success=None, cex=None,):
36086
  def __init__(self, success=None, cex=None,):
36087
    self.success = success
36087
    self.success = success
Line 36099... Line 36099...
36099
      if fid == 0:
36099
      if fid == 0:
36100
        if ftype == TType.LIST:
36100
        if ftype == TType.LIST:
36101
          self.success = []
36101
          self.success = []
36102
          (_etype995, _size992) = iprot.readListBegin()
36102
          (_etype995, _size992) = iprot.readListBegin()
36103
          for _i996 in xrange(_size992):
36103
          for _i996 in xrange(_size992):
36104
            _elem997 = iprot.readString();
36104
            _elem997 = CategoryHsnCode()
-
 
36105
            _elem997.read(iprot)
36105
            self.success.append(_elem997)
36106
            self.success.append(_elem997)
36106
          iprot.readListEnd()
36107
          iprot.readListEnd()
36107
        else:
36108
        else:
36108
          iprot.skip(ftype)
36109
          iprot.skip(ftype)
36109
      elif fid == 1:
36110
      elif fid == 1:
Line 36122... Line 36123...
36122
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
36123
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
36123
      return
36124
      return
36124
    oprot.writeStructBegin('getHsnCodesByCategory_result')
36125
    oprot.writeStructBegin('getHsnCodesByCategory_result')
36125
    if self.success is not None:
36126
    if self.success is not None:
36126
      oprot.writeFieldBegin('success', TType.LIST, 0)
36127
      oprot.writeFieldBegin('success', TType.LIST, 0)
36127
      oprot.writeListBegin(TType.STRING, len(self.success))
36128
      oprot.writeListBegin(TType.STRUCT, len(self.success))
36128
      for iter998 in self.success:
36129
      for iter998 in self.success:
36129
        oprot.writeString(iter998)
36130
        iter998.write(oprot)
36130
      oprot.writeListEnd()
36131
      oprot.writeListEnd()
36131
      oprot.writeFieldEnd()
36132
      oprot.writeFieldEnd()
36132
    if self.cex is not None:
36133
    if self.cex is not None:
36133
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
36134
      oprot.writeFieldBegin('cex', TType.STRUCT, 1)
36134
      self.cex.write(oprot)
36135
      self.cex.write(oprot)