Subversion Repositories SmartDukaan

Rev

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

Rev 7026 Rev 7073
Line 172... Line 172...
172
  print '   getPhysicalOrders(i64 fromDate, i64 toDate)'
172
  print '   getPhysicalOrders(i64 fromDate, i64 toDate)'
173
  print '  string getDocument(i64 docType, i64 docSource)'
173
  print '  string getDocument(i64 docType, i64 docSource)'
174
  print '  bool changeShippingAddress(i64 orderId, string line1, string line2, string city, string state, string pin)'
174
  print '  bool changeShippingAddress(i64 orderId, string line1, string line2, string city, string state, string pin)'
175
  print '  string retrieveInvoice(i64 orderId)'
175
  print '  string retrieveInvoice(i64 orderId)'
176
  print '   receiveUpdatesForRedExpress(string awbNumber)'
176
  print '   receiveUpdatesForRedExpress(string awbNumber)'
-
 
177
  print '  RechargeTransaction createRechargeTransaction(RechargeTransaction thriftRechargeTransaction)'
177
  print ''
178
  print ''
178
  sys.exit(0)
179
  sys.exit(0)
179
 
180
 
180
pp = pprint.PrettyPrinter(indent = 2)
181
pp = pprint.PrettyPrinter(indent = 2)
181
host = 'localhost'
182
host = 'localhost'
Line 1140... Line 1141...
1140
  if len(args) != 1:
1141
  if len(args) != 1:
1141
    print 'receiveUpdatesForRedExpress requires 1 args'
1142
    print 'receiveUpdatesForRedExpress requires 1 args'
1142
    sys.exit(1)
1143
    sys.exit(1)
1143
  pp.pprint(client.receiveUpdatesForRedExpress(args[0],))
1144
  pp.pprint(client.receiveUpdatesForRedExpress(args[0],))
1144
 
1145
 
-
 
1146
elif cmd == 'createRechargeTransaction':
-
 
1147
  if len(args) != 1:
-
 
1148
    print 'createRechargeTransaction requires 1 args'
-
 
1149
    sys.exit(1)
-
 
1150
  pp.pprint(client.createRechargeTransaction(eval(args[0]),))
-
 
1151
 
1145
else:
1152
else:
1146
  print 'Unrecognized method %s' % cmd
1153
  print 'Unrecognized method %s' % cmd
1147
  sys.exit(1)
1154
  sys.exit(1)
1148
 
1155
 
1149
transport.close()
1156
transport.close()