Subversion Repositories SmartDukaan

Rev

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

Rev 1422 Rev 1610
Line 34... Line 34...
34
  print '  bool addUser(string username, string password, i64 warehouseId)'
34
  print '  bool addUser(string username, string password, i64 warehouseId)'
35
  print '  bool deleteUser(string username)'
35
  print '  bool deleteUser(string username)'
36
  print '  i64 authenticateUser(string username, string password)'
36
  print '  i64 authenticateUser(string username, string password)'
37
  print '  bool updatePassword(string username, string oldPassword, string newPassword)'
37
  print '  bool updatePassword(string username, string oldPassword, string newPassword)'
38
  print '  LogisticsUser authenticateLogisticsUser(string username, string password)'
38
  print '  LogisticsUser authenticateLogisticsUser(string username, string password)'
-
 
39
  print '  StatisticsUser authenticateStatisticsUser(string username, string password)'
39
  print ''
40
  print ''
40
  sys.exit(0)
41
  sys.exit(0)
41
 
42
 
42
pp = pprint.PrettyPrinter(indent = 2)
43
pp = pprint.PrettyPrinter(indent = 2)
43
host = 'localhost'
44
host = 'localhost'
Line 172... Line 173...
172
  if len(args) != 2:
173
  if len(args) != 2:
173
    print 'authenticateLogisticsUser requires 2 args'
174
    print 'authenticateLogisticsUser requires 2 args'
174
    sys.exit(1)
175
    sys.exit(1)
175
  pp.pprint(client.authenticateLogisticsUser(args[0],args[1],))
176
  pp.pprint(client.authenticateLogisticsUser(args[0],args[1],))
176
 
177
 
-
 
178
elif cmd == 'authenticateStatisticsUser':
-
 
179
  if len(args) != 2:
-
 
180
    print 'authenticateStatisticsUser requires 2 args'
-
 
181
    sys.exit(1)
-
 
182
  pp.pprint(client.authenticateStatisticsUser(args[0],args[1],))
-
 
183
 
177
transport.close()
184
transport.close()