Subversion Repositories SmartDukaan

Rev

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

Rev 7085 Rev 7096
Line 176... Line 176...
176
  print '   receiveUpdatesForRedExpress(string awbNumber)'
176
  print '   receiveUpdatesForRedExpress(string awbNumber)'
177
  print '  RechargeTransaction createRechargeTransaction(RechargeTransaction thriftRechargeTransaction)'
177
  print '  RechargeTransaction createRechargeTransaction(RechargeTransaction thriftRechargeTransaction)'
178
  print '   getRechargeTransactions(i64 storeId)'
178
  print '   getRechargeTransactions(i64 storeId)'
179
  print '  RechargeTransaction getRechargeTransaction(i64 rechargeId)'
179
  print '  RechargeTransaction getRechargeTransaction(i64 rechargeId)'
180
  print '   getFRCs(i64 circleId, i64 operatorId)'
180
  print '   getFRCs(i64 circleId, i64 operatorId)'
-
 
181
  print '  HotspotStore getHotspotStore(i64 id, string hotspotid)'
-
 
182
  print '  TelecomCircle getTelecomCircle(i64 id, string code)'
181
  print ''
183
  print ''
182
  sys.exit(0)
184
  sys.exit(0)
183
 
185
 
184
pp = pprint.PrettyPrinter(indent = 2)
186
pp = pprint.PrettyPrinter(indent = 2)
185
host = 'localhost'
187
host = 'localhost'
Line 1168... Line 1170...
1168
  if len(args) != 2:
1170
  if len(args) != 2:
1169
    print 'getFRCs requires 2 args'
1171
    print 'getFRCs requires 2 args'
1170
    sys.exit(1)
1172
    sys.exit(1)
1171
  pp.pprint(client.getFRCs(eval(args[0]),eval(args[1]),))
1173
  pp.pprint(client.getFRCs(eval(args[0]),eval(args[1]),))
1172
 
1174
 
-
 
1175
elif cmd == 'getHotspotStore':
-
 
1176
  if len(args) != 2:
-
 
1177
    print 'getHotspotStore requires 2 args'
-
 
1178
    sys.exit(1)
-
 
1179
  pp.pprint(client.getHotspotStore(eval(args[0]),args[1],))
-
 
1180
 
-
 
1181
elif cmd == 'getTelecomCircle':
-
 
1182
  if len(args) != 2:
-
 
1183
    print 'getTelecomCircle requires 2 args'
-
 
1184
    sys.exit(1)
-
 
1185
  pp.pprint(client.getTelecomCircle(eval(args[0]),args[1],))
-
 
1186
 
1173
else:
1187
else:
1174
  print 'Unrecognized method %s' % cmd
1188
  print 'Unrecognized method %s' % cmd
1175
  sys.exit(1)
1189
  sys.exit(1)
1176
 
1190
 
1177
transport.close()
1191
transport.close()