Subversion Repositories SmartDukaan

Rev

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

Rev 9404 Rev 9456
Line 568... Line 568...
568
     - warehouse_id
568
     - warehouse_id
569
     - item_id
569
     - item_id
570
    """
570
    """
571
    pass
571
    pass
572
 
572
 
-
 
573
  def getLastUpdatedTimeForSnapdealInventory(self, ):
-
 
574
    pass
-
 
575
 
573
 
576
 
574
class Client(shop2020.thriftpy.generic.GenericService.Client, Iface):
577
class Client(shop2020.thriftpy.generic.GenericService.Client, Iface):
575
  def __init__(self, iprot, oprot=None):
578
  def __init__(self, iprot, oprot=None):
576
    shop2020.thriftpy.generic.GenericService.Client.__init__(self, iprot, oprot)
579
    shop2020.thriftpy.generic.GenericService.Client.__init__(self, iprot, oprot)
577
 
580
 
Line 2673... Line 2676...
2673
    self._iprot.readMessageEnd()
2676
    self._iprot.readMessageEnd()
2674
    if result.success is not None:
2677
    if result.success is not None:
2675
      return result.success
2678
      return result.success
2676
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getNlcForWarehouse failed: unknown result");
2679
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getNlcForWarehouse failed: unknown result");
2677
 
2680
 
-
 
2681
  def getLastUpdatedTimeForSnapdealInventory(self, ):
-
 
2682
    self.send_getLastUpdatedTimeForSnapdealInventory()
-
 
2683
    return self.recv_getLastUpdatedTimeForSnapdealInventory()
-
 
2684
 
-
 
2685
  def send_getLastUpdatedTimeForSnapdealInventory(self, ):
-
 
2686
    self._oprot.writeMessageBegin('getLastUpdatedTimeForSnapdealInventory', TMessageType.CALL, self._seqid)
-
 
2687
    args = getLastUpdatedTimeForSnapdealInventory_args()
-
 
2688
    args.write(self._oprot)
-
 
2689
    self._oprot.writeMessageEnd()
-
 
2690
    self._oprot.trans.flush()
-
 
2691
 
-
 
2692
  def recv_getLastUpdatedTimeForSnapdealInventory(self, ):
-
 
2693
    (fname, mtype, rseqid) = self._iprot.readMessageBegin()
-
 
2694
    if mtype == TMessageType.EXCEPTION:
-
 
2695
      x = TApplicationException()
-
 
2696
      x.read(self._iprot)
-
 
2697
      self._iprot.readMessageEnd()
-
 
2698
      raise x
-
 
2699
    result = getLastUpdatedTimeForSnapdealInventory_result()
-
 
2700
    result.read(self._iprot)
-
 
2701
    self._iprot.readMessageEnd()
-
 
2702
    if result.success is not None:
-
 
2703
      return result.success
-
 
2704
    raise TApplicationException(TApplicationException.MISSING_RESULT, "getLastUpdatedTimeForSnapdealInventory failed: unknown result");
-
 
2705
 
2678
 
2706
 
2679
class Processor(shop2020.thriftpy.generic.GenericService.Processor, Iface, TProcessor):
2707
class Processor(shop2020.thriftpy.generic.GenericService.Processor, Iface, TProcessor):
2680
  def __init__(self, handler):
2708
  def __init__(self, handler):
2681
    shop2020.thriftpy.generic.GenericService.Processor.__init__(self, handler)
2709
    shop2020.thriftpy.generic.GenericService.Processor.__init__(self, handler)
2682
    self._processMap["addWarehouse"] = Processor.process_addWarehouse
2710
    self._processMap["addWarehouse"] = Processor.process_addWarehouse
Line 2742... Line 2770...
2742
    self._processMap["getOursGoodWarehouseIdsForLocation"] = Processor.process_getOursGoodWarehouseIdsForLocation
2770
    self._processMap["getOursGoodWarehouseIdsForLocation"] = Processor.process_getOursGoodWarehouseIdsForLocation
2743
    self._processMap["getHoldInventoryDetailForItemForWarehouseIdExceptSource"] = Processor.process_getHoldInventoryDetailForItemForWarehouseIdExceptSource
2771
    self._processMap["getHoldInventoryDetailForItemForWarehouseIdExceptSource"] = Processor.process_getHoldInventoryDetailForItemForWarehouseIdExceptSource
2744
    self._processMap["getSnapdealInventoryForItem"] = Processor.process_getSnapdealInventoryForItem
2772
    self._processMap["getSnapdealInventoryForItem"] = Processor.process_getSnapdealInventoryForItem
2745
    self._processMap["addOrUpdateSnapdealInventoryForItem"] = Processor.process_addOrUpdateSnapdealInventoryForItem
2773
    self._processMap["addOrUpdateSnapdealInventoryForItem"] = Processor.process_addOrUpdateSnapdealInventoryForItem
2746
    self._processMap["getNlcForWarehouse"] = Processor.process_getNlcForWarehouse
2774
    self._processMap["getNlcForWarehouse"] = Processor.process_getNlcForWarehouse
-
 
2775
    self._processMap["getLastUpdatedTimeForSnapdealInventory"] = Processor.process_getLastUpdatedTimeForSnapdealInventory
2747
 
2776
 
2748
  def process(self, iprot, oprot):
2777
  def process(self, iprot, oprot):
2749
    (name, type, seqid) = iprot.readMessageBegin()
2778
    (name, type, seqid) = iprot.readMessageBegin()
2750
    if name not in self._processMap:
2779
    if name not in self._processMap:
2751
      iprot.skip(TType.STRUCT)
2780
      iprot.skip(TType.STRUCT)
Line 3542... Line 3571...
3542
    oprot.writeMessageBegin("getNlcForWarehouse", TMessageType.REPLY, seqid)
3571
    oprot.writeMessageBegin("getNlcForWarehouse", TMessageType.REPLY, seqid)
3543
    result.write(oprot)
3572
    result.write(oprot)
3544
    oprot.writeMessageEnd()
3573
    oprot.writeMessageEnd()
3545
    oprot.trans.flush()
3574
    oprot.trans.flush()
3546
 
3575
 
-
 
3576
  def process_getLastUpdatedTimeForSnapdealInventory(self, seqid, iprot, oprot):
-
 
3577
    args = getLastUpdatedTimeForSnapdealInventory_args()
-
 
3578
    args.read(iprot)
-
 
3579
    iprot.readMessageEnd()
-
 
3580
    result = getLastUpdatedTimeForSnapdealInventory_result()
-
 
3581
    result.success = self._handler.getLastUpdatedTimeForSnapdealInventory()
-
 
3582
    oprot.writeMessageBegin("getLastUpdatedTimeForSnapdealInventory", TMessageType.REPLY, seqid)
-
 
3583
    result.write(oprot)
-
 
3584
    oprot.writeMessageEnd()
-
 
3585
    oprot.trans.flush()
-
 
3586
 
3547
 
3587
 
3548
# HELPER FUNCTIONS AND STRUCTURES
3588
# HELPER FUNCTIONS AND STRUCTURES
3549
 
3589
 
3550
class addWarehouse_args:
3590
class addWarehouse_args:
3551
  """
3591
  """
Line 12033... Line 12073...
12033
      oprot.writeFieldEnd()
12073
      oprot.writeFieldEnd()
12034
    oprot.writeFieldStop()
12074
    oprot.writeFieldStop()
12035
    oprot.writeStructEnd()
12075
    oprot.writeStructEnd()
12036
 
12076
 
12037
  def validate(self):
12077
  def validate(self):
-
 
12078
    return
-
 
12079
 
-
 
12080
 
-
 
12081
  def __repr__(self):
-
 
12082
    L = ['%s=%r' % (key, value)
-
 
12083
      for key, value in self.__dict__.iteritems()]
-
 
12084
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
12085
 
-
 
12086
  def __eq__(self, other):
-
 
12087
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
12088
 
-
 
12089
  def __ne__(self, other):
-
 
12090
    return not (self == other)
-
 
12091
 
-
 
12092
class getLastUpdatedTimeForSnapdealInventory_args:
-
 
12093
 
-
 
12094
  thrift_spec = (
-
 
12095
  )
-
 
12096
 
-
 
12097
  def read(self, iprot):
-
 
12098
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
12099
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
12100
      return
-
 
12101
    iprot.readStructBegin()
-
 
12102
    while True:
-
 
12103
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
12104
      if ftype == TType.STOP:
-
 
12105
        break
-
 
12106
      else:
-
 
12107
        iprot.skip(ftype)
-
 
12108
      iprot.readFieldEnd()
-
 
12109
    iprot.readStructEnd()
-
 
12110
 
-
 
12111
  def write(self, oprot):
-
 
12112
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
12113
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
12114
      return
-
 
12115
    oprot.writeStructBegin('getLastUpdatedTimeForSnapdealInventory_args')
-
 
12116
    oprot.writeFieldStop()
-
 
12117
    oprot.writeStructEnd()
-
 
12118
 
-
 
12119
  def validate(self):
-
 
12120
    return
-
 
12121
 
-
 
12122
 
-
 
12123
  def __repr__(self):
-
 
12124
    L = ['%s=%r' % (key, value)
-
 
12125
      for key, value in self.__dict__.iteritems()]
-
 
12126
    return '%s(%s)' % (self.__class__.__name__, ', '.join(L))
-
 
12127
 
-
 
12128
  def __eq__(self, other):
-
 
12129
    return isinstance(other, self.__class__) and self.__dict__ == other.__dict__
-
 
12130
 
-
 
12131
  def __ne__(self, other):
-
 
12132
    return not (self == other)
-
 
12133
 
-
 
12134
class getLastUpdatedTimeForSnapdealInventory_result:
-
 
12135
  """
-
 
12136
  Attributes:
-
 
12137
   - success
-
 
12138
  """
-
 
12139
 
-
 
12140
  thrift_spec = (
-
 
12141
    (0, TType.I64, 'success', None, None, ), # 0
-
 
12142
  )
-
 
12143
 
-
 
12144
  def __init__(self, success=None,):
-
 
12145
    self.success = success
-
 
12146
 
-
 
12147
  def read(self, iprot):
-
 
12148
    if iprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and isinstance(iprot.trans, TTransport.CReadableTransport) and self.thrift_spec is not None and fastbinary is not None:
-
 
12149
      fastbinary.decode_binary(self, iprot.trans, (self.__class__, self.thrift_spec))
-
 
12150
      return
-
 
12151
    iprot.readStructBegin()
-
 
12152
    while True:
-
 
12153
      (fname, ftype, fid) = iprot.readFieldBegin()
-
 
12154
      if ftype == TType.STOP:
-
 
12155
        break
-
 
12156
      if fid == 0:
-
 
12157
        if ftype == TType.I64:
-
 
12158
          self.success = iprot.readI64();
-
 
12159
        else:
-
 
12160
          iprot.skip(ftype)
-
 
12161
      else:
-
 
12162
        iprot.skip(ftype)
-
 
12163
      iprot.readFieldEnd()
-
 
12164
    iprot.readStructEnd()
-
 
12165
 
-
 
12166
  def write(self, oprot):
-
 
12167
    if oprot.__class__ == TBinaryProtocol.TBinaryProtocolAccelerated and self.thrift_spec is not None and fastbinary is not None:
-
 
12168
      oprot.trans.write(fastbinary.encode_binary(self, (self.__class__, self.thrift_spec)))
-
 
12169
      return
-
 
12170
    oprot.writeStructBegin('getLastUpdatedTimeForSnapdealInventory_result')
-
 
12171
    if self.success is not None:
-
 
12172
      oprot.writeFieldBegin('success', TType.I64, 0)
-
 
12173
      oprot.writeI64(self.success)
-
 
12174
      oprot.writeFieldEnd()
-
 
12175
    oprot.writeFieldStop()
-
 
12176
    oprot.writeStructEnd()
-
 
12177
 
-
 
12178
  def validate(self):
12038
    return
12179
    return
12039
 
12180
 
12040
 
12181
 
12041
  def __repr__(self):
12182
  def __repr__(self):
12042
    L = ['%s=%r' % (key, value)
12183
    L = ['%s=%r' % (key, value)