Subversion Repositories SmartDukaan

Rev

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

Rev 494 Rev 759
Line 29... Line 29...
29
  print '  Message getSubstitutedMessage(i64 id,  params)'
29
  print '  Message getSubstitutedMessage(i64 id,  params)'
30
  print '  bool addUser(string username, string password, i64 warehouseId)'
30
  print '  bool addUser(string username, string password, i64 warehouseId)'
31
  print '  bool deleteUser(string username)'
31
  print '  bool deleteUser(string username)'
32
  print '  i64 authenticateUser(string username, string password)'
32
  print '  i64 authenticateUser(string username, string password)'
33
  print '  bool updatePassword(string username, string oldPassword, string newPassword)'
33
  print '  bool updatePassword(string username, string oldPassword, string newPassword)'
-
 
34
  print '  LogisticsUser authenticateLogisticsUser(string username, string password)'
34
  print ''
35
  print ''
35
  sys.exit(0)
36
  sys.exit(0)
36
 
37
 
37
pp = pprint.PrettyPrinter(indent = 2)
38
pp = pprint.PrettyPrinter(indent = 2)
38
host = 'localhost'
39
host = 'localhost'
Line 137... Line 138...
137
  if len(args) != 3:
138
  if len(args) != 3:
138
    print 'updatePassword requires 3 args'
139
    print 'updatePassword requires 3 args'
139
    sys.exit(1)
140
    sys.exit(1)
140
  pp.pprint(client.updatePassword(args[0],args[1],args[2],))
141
  pp.pprint(client.updatePassword(args[0],args[1],args[2],))
141
 
142
 
-
 
143
elif cmd == 'authenticateLogisticsUser':
-
 
144
  if len(args) != 2:
-
 
145
    print 'authenticateLogisticsUser requires 2 args'
-
 
146
    sys.exit(1)
-
 
147
  pp.pprint(client.authenticateLogisticsUser(args[0],args[1],))
-
 
148
 
142
transport.close()
149
transport.close()