Subversion Repositories SmartDukaan

Rev

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

Rev 9456 Rev 9621
Line 151... Line 151...
151
  print '   searchSnapdealItems( searchTerm, i64 offset, i64 limit)'
151
  print '   searchSnapdealItems( searchTerm, i64 offset, i64 limit)'
152
  print '  i64 getCountForSnapdealItems()'
152
  print '  i64 getCountForSnapdealItems()'
153
  print '  i64 getSnapdealSearchResultCount( searchTerm)'
153
  print '  i64 getSnapdealSearchResultCount( searchTerm)'
154
  print '  i64 getPrefferedInsurerForItem(i64 itemId, InsurerType insurerType)'
154
  print '  i64 getPrefferedInsurerForItem(i64 itemId, InsurerType insurerType)'
155
  print '  SnapdealItem getSnapdealItembySkuAtSnapdeal(string skuAtSnapdeal)'
155
  print '  SnapdealItem getSnapdealItembySkuAtSnapdeal(string skuAtSnapdeal)'
-
 
156
  print '  ProductFeedSubmit getProductFeedSubmit(i64 catalogItemId)'
-
 
157
  print '  bool addProductFeedSubmit(ProductFeedSubmit productFeedSubmit)'
-
 
158
  print '  bool updateProductFeedSubmit(ProductFeedSubmit productFeedSubmit)'
-
 
159
  print '  bool deleteProductFeedSubmit(i64 catalogItemId)'
-
 
160
  print '   getAllProductFeedSubmit()'
156
  print ''
161
  print ''
157
  sys.exit(0)
162
  sys.exit(0)
158
 
163
 
159
pp = pprint.PrettyPrinter(indent = 2)
164
pp = pprint.PrettyPrinter(indent = 2)
160
host = 'localhost'
165
host = 'localhost'
Line 993... Line 998...
993
  if len(args) != 1:
998
  if len(args) != 1:
994
    print 'getSnapdealItembySkuAtSnapdeal requires 1 args'
999
    print 'getSnapdealItembySkuAtSnapdeal requires 1 args'
995
    sys.exit(1)
1000
    sys.exit(1)
996
  pp.pprint(client.getSnapdealItembySkuAtSnapdeal(args[0],))
1001
  pp.pprint(client.getSnapdealItembySkuAtSnapdeal(args[0],))
997
 
1002
 
-
 
1003
elif cmd == 'getProductFeedSubmit':
-
 
1004
  if len(args) != 1:
-
 
1005
    print 'getProductFeedSubmit requires 1 args'
-
 
1006
    sys.exit(1)
-
 
1007
  pp.pprint(client.getProductFeedSubmit(eval(args[0]),))
-
 
1008
 
-
 
1009
elif cmd == 'addProductFeedSubmit':
-
 
1010
  if len(args) != 1:
-
 
1011
    print 'addProductFeedSubmit requires 1 args'
-
 
1012
    sys.exit(1)
-
 
1013
  pp.pprint(client.addProductFeedSubmit(eval(args[0]),))
-
 
1014
 
-
 
1015
elif cmd == 'updateProductFeedSubmit':
-
 
1016
  if len(args) != 1:
-
 
1017
    print 'updateProductFeedSubmit requires 1 args'
-
 
1018
    sys.exit(1)
-
 
1019
  pp.pprint(client.updateProductFeedSubmit(eval(args[0]),))
-
 
1020
 
-
 
1021
elif cmd == 'deleteProductFeedSubmit':
-
 
1022
  if len(args) != 1:
-
 
1023
    print 'deleteProductFeedSubmit requires 1 args'
-
 
1024
    sys.exit(1)
-
 
1025
  pp.pprint(client.deleteProductFeedSubmit(eval(args[0]),))
-
 
1026
 
-
 
1027
elif cmd == 'getAllProductFeedSubmit':
-
 
1028
  if len(args) != 0:
-
 
1029
    print 'getAllProductFeedSubmit requires 0 args'
-
 
1030
    sys.exit(1)
-
 
1031
  pp.pprint(client.getAllProductFeedSubmit())
-
 
1032
 
998
else:
1033
else:
999
  print 'Unrecognized method %s' % cmd
1034
  print 'Unrecognized method %s' % cmd
1000
  sys.exit(1)
1035
  sys.exit(1)
1001
 
1036
 
1002
transport.close()
1037
transport.close()