Subversion Repositories SmartDukaan

Rev

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

Rev 13493 Rev 13709
Line 202... Line 202...
202
  print '  bool updateItemStateVat(i64 itemId,  statevat)'
202
  print '  bool updateItemStateVat(i64 itemId,  statevat)'
203
  print '   getExAffiliateItemInfo()'
203
  print '   getExAffiliateItemInfo()'
204
  print '   getAllItemstoListOnFbg()'
204
  print '   getAllItemstoListOnFbg()'
205
  print '   getAllFbgListedItems()'
205
  print '   getAllFbgListedItems()'
206
  print '   checkServices( lines)'
206
  print '   checkServices( lines)'
-
 
207
  print '  void addHsItem( hsItems)'
-
 
208
  print '  HsItem getHsItem(string hsItemId)'
-
 
209
  print '  void updateHsItem(HsItem hsItem)'
207
  print ''
210
  print ''
208
  sys.exit(0)
211
  sys.exit(0)
209
 
212
 
210
pp = pprint.PrettyPrinter(indent = 2)
213
pp = pprint.PrettyPrinter(indent = 2)
211
host = 'localhost'
214
host = 'localhost'
Line 1350... Line 1353...
1350
  if len(args) != 1:
1353
  if len(args) != 1:
1351
    print 'checkServices requires 1 args'
1354
    print 'checkServices requires 1 args'
1352
    sys.exit(1)
1355
    sys.exit(1)
1353
  pp.pprint(client.checkServices(eval(args[0]),))
1356
  pp.pprint(client.checkServices(eval(args[0]),))
1354
 
1357
 
-
 
1358
elif cmd == 'addHsItem':
-
 
1359
  if len(args) != 1:
-
 
1360
    print 'addHsItem requires 1 args'
-
 
1361
    sys.exit(1)
-
 
1362
  pp.pprint(client.addHsItem(eval(args[0]),))
-
 
1363
 
-
 
1364
elif cmd == 'getHsItem':
-
 
1365
  if len(args) != 1:
-
 
1366
    print 'getHsItem requires 1 args'
-
 
1367
    sys.exit(1)
-
 
1368
  pp.pprint(client.getHsItem(args[0],))
-
 
1369
 
-
 
1370
elif cmd == 'updateHsItem':
-
 
1371
  if len(args) != 1:
-
 
1372
    print 'updateHsItem requires 1 args'
-
 
1373
    sys.exit(1)
-
 
1374
  pp.pprint(client.updateHsItem(eval(args[0]),))
-
 
1375
 
1355
else:
1376
else:
1356
  print 'Unrecognized method %s' % cmd
1377
  print 'Unrecognized method %s' % cmd
1357
  sys.exit(1)
1378
  sys.exit(1)
1358
 
1379
 
1359
transport.close()
1380
transport.close()