Subversion Repositories SmartDukaan

Rev

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

Rev 7293 Rev 7308
Line 186... Line 186...
186
  print '   getRechargeTransactionsByNumber(string number, i64 storeId)'
186
  print '   getRechargeTransactionsByNumber(string number, i64 storeId)'
187
  print '  bool updateHotspotStorePassword(i64 storeId, string password)'
187
  print '  bool updateHotspotStorePassword(i64 storeId, string password)'
188
  print '  i64 topupCompanyWallet(i64 companyId, i64 amount)'
188
  print '  i64 topupCompanyWallet(i64 companyId, i64 amount)'
189
  print '  i64 getWalletBalanceForCompany(i64 companyId)'
189
  print '  i64 getWalletBalanceForCompany(i64 companyId)'
190
  print '  SourceDetail getSourceDetail(i64 source)'
190
  print '  SourceDetail getSourceDetail(i64 source)'
-
 
191
  print '   getAllCircles()'
-
 
192
  print '  bool deleteFrcs( frcIdsToDelete)'
191
  print ''
193
  print ''
192
  sys.exit(0)
194
  sys.exit(0)
193
 
195
 
194
pp = pprint.PrettyPrinter(indent = 2)
196
pp = pprint.PrettyPrinter(indent = 2)
195
host = 'localhost'
197
host = 'localhost'
Line 1238... Line 1240...
1238
  if len(args) != 1:
1240
  if len(args) != 1:
1239
    print 'getSourceDetail requires 1 args'
1241
    print 'getSourceDetail requires 1 args'
1240
    sys.exit(1)
1242
    sys.exit(1)
1241
  pp.pprint(client.getSourceDetail(eval(args[0]),))
1243
  pp.pprint(client.getSourceDetail(eval(args[0]),))
1242
 
1244
 
-
 
1245
elif cmd == 'getAllCircles':
-
 
1246
  if len(args) != 0:
-
 
1247
    print 'getAllCircles requires 0 args'
-
 
1248
    sys.exit(1)
-
 
1249
  pp.pprint(client.getAllCircles())
-
 
1250
 
-
 
1251
elif cmd == 'deleteFrcs':
-
 
1252
  if len(args) != 1:
-
 
1253
    print 'deleteFrcs requires 1 args'
-
 
1254
    sys.exit(1)
-
 
1255
  pp.pprint(client.deleteFrcs(eval(args[0]),))
-
 
1256
 
1243
else:
1257
else:
1244
  print 'Unrecognized method %s' % cmd
1258
  print 'Unrecognized method %s' % cmd
1245
  sys.exit(1)
1259
  sys.exit(1)
1246
 
1260
 
1247
transport.close()
1261
transport.close()