Subversion Repositories SmartDukaan

Rev

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

Rev 765 Rev 3431
Line 1... Line 1...
1
#
1
#
2
# Autogenerated by Thrift
2
# Autogenerated by Thrift Compiler (0.7.0)
3
#
3
#
4
# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
4
# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5
#
5
#
6
 
6
 
7
from thrift.Thrift import *
7
from thrift.Thrift import *
8
from ttypes import *
8
from ttypes import *
9
from thrift.Thrift import TProcessor
9
from thrift.Thrift import TProcessor
10
from thrift.transport import TTransport
10
from thrift.transport import TTransport
11
from thrift.protocol import TBinaryProtocol
11
from thrift.protocol import TBinaryProtocol, TProtocol
12
try:
12
try:
13
  from thrift.protocol import fastbinary
13
  from thrift.protocol import fastbinary
14
except:
14
except:
15
  fastbinary = None
15
  fastbinary = None
16
 
16
 
Line 29... Line 29...
29
 
29
 
30
 
30
 
31
class Client(Iface):
31
class Client(Iface):
32
  def __init__(self, iprot, oprot=None):
32
  def __init__(self, iprot, oprot=None):
33
    self._iprot = self._oprot = iprot
33
    self._iprot = self._oprot = iprot
34
    if oprot != None:
34
    if oprot is not None:
35
      self._oprot = oprot
35
      self._oprot = oprot
36
    self._seqid = 0
36
    self._seqid = 0
37
 
37
 
38
  def closeSession(self, ):
38
  def closeSession(self, ):
39
    self.send_closeSession()
39
    self.send_closeSession()
Line 161... Line 161...
161
      return
161
      return
162
    oprot.writeStructBegin('closeSession_args')
162
    oprot.writeStructBegin('closeSession_args')
163
    oprot.writeFieldStop()
163
    oprot.writeFieldStop()
164
    oprot.writeStructEnd()
164
    oprot.writeStructEnd()
165
 
165
 
-
 
166
  def validate(self):
-
 
167
    return
-
 
168
 
-
 
169
 
166
  def __repr__(self):
170
  def __repr__(self):
167
    L = ['%s=%r' % (key, value)
171
    L = ['%s=%r' % (key, value)
168
      for key, value in self.__dict__.iteritems()]
172
      for key, value in self.__dict__.iteritems()]
169
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
173
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
170
 
174
 
Line 199... Line 203...
199
      return
203
      return
200
    oprot.writeStructBegin('closeSession_result')
204
    oprot.writeStructBegin('closeSession_result')
201
    oprot.writeFieldStop()
205
    oprot.writeFieldStop()
202
    oprot.writeStructEnd()
206
    oprot.writeStructEnd()
203
 
207
 
-
 
208
  def validate(self):
-
 
209
    return
-
 
210
 
-
 
211
 
204
  def __repr__(self):
212
  def __repr__(self):
205
    L = ['%s=%r' % (key, value)
213
    L = ['%s=%r' % (key, value)
206
      for key, value in self.__dict__.iteritems()]
214
      for key, value in self.__dict__.iteritems()]
207
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
215
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
208
 
216
 
Line 256... Line 264...
256
  def write(self, oprot):
264
  def write(self, oprot):
257
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
265
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
258
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
266
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
259
      return
267
      return
260
    oprot.writeStructBegin('log_args')
268
    oprot.writeStructBegin('log_args')
261
    if self.messageType != None:
269
    if self.messageType is not None:
262
      oprot.writeFieldBegin('messageType', TType.I32, 1)
270
      oprot.writeFieldBegin('messageType', TType.I32, 1)
263
      oprot.writeI32(self.messageType)
271
      oprot.writeI32(self.messageType)
264
      oprot.writeFieldEnd()
272
      oprot.writeFieldEnd()
265
    if self.message != None:
273
    if self.message is not None:
266
      oprot.writeFieldBegin('message', TType.STRING, 2)
274
      oprot.writeFieldBegin('message', TType.STRING, 2)
267
      oprot.writeString(self.message)
275
      oprot.writeString(self.message)
268
      oprot.writeFieldEnd()
276
      oprot.writeFieldEnd()
269
    oprot.writeFieldStop()
277
    oprot.writeFieldStop()
270
    oprot.writeStructEnd()
278
    oprot.writeStructEnd()
271
 
279
 
-
 
280
  def validate(self):
-
 
281
    return
-
 
282
 
-
 
283
 
272
  def __repr__(self):
284
  def __repr__(self):
273
    L = ['%s=%r' % (key, value)
285
    L = ['%s=%r' % (key, value)
274
      for key, value in self.__dict__.iteritems()]
286
      for key, value in self.__dict__.iteritems()]
275
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
287
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
276
 
288
 
Line 305... Line 317...
305
      return
317
      return
306
    oprot.writeStructBegin('log_result')
318
    oprot.writeStructBegin('log_result')
307
    oprot.writeFieldStop()
319
    oprot.writeFieldStop()
308
    oprot.writeStructEnd()
320
    oprot.writeStructEnd()
309
 
321
 
-
 
322
  def validate(self):
-
 
323
    return
-
 
324
 
-
 
325
 
310
  def __repr__(self):
326
  def __repr__(self):
311
    L = ['%s=%r' % (key, value)
327
    L = ['%s=%r' % (key, value)
312
      for key, value in self.__dict__.iteritems()]
328
      for key, value in self.__dict__.iteritems()]
313
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
329
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
314
 
330
 
315
  def __eq__(self, other):
331
  def __eq__(self, other):
316
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
332
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
317
 
333
 
318
  def __ne__(self, other):
334
  def __ne__(self, other):
319
    return not (self == other)
335
    return not (self == other)
320
 
-
 
321
 
-