Subversion Repositories SmartDukaan

Rev

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

Rev 2025 Rev 2358
Line 37... Line 37...
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 '  StatisticsUser authenticateStatisticsUser(string username, string password)'
40
  print '  ReportUser authenticateReportUser(string username, string password)'
40
  print '  ReportUser authenticateReportUser(string username, string password)'
41
  print '   getReports(i64 role)'
41
  print '   getReports(i64 role)'
42
  print '  CatalogDashboardUser authenticateCatalogUser(string username, string password)'
42
  print '  CatalogDashboardUser authenticateCatalogUser(string username, string password, i64 role)'
43
  print ''
43
  print ''
44
  sys.exit(0)
44
  sys.exit(0)
45
 
45
 
46
pp = pprint.PrettyPrinter(indent = 2)
46
pp = pprint.PrettyPrinter(indent = 2)
47
host = 'localhost'
47
host = 'localhost'
Line 195... Line 195...
195
    print 'getReports requires 1 args'
195
    print 'getReports requires 1 args'
196
    sys.exit(1)
196
    sys.exit(1)
197
  pp.pprint(client.getReports(eval(args[0]),))
197
  pp.pprint(client.getReports(eval(args[0]),))
198
 
198
 
199
elif cmd == 'authenticateCatalogUser':
199
elif cmd == 'authenticateCatalogUser':
200
  if len(args) != 2:
200
  if len(args) != 3:
201
    print 'authenticateCatalogUser requires 2 args'
201
    print 'authenticateCatalogUser requires 3 args'
202
    sys.exit(1)
202
    sys.exit(1)
203
  pp.pprint(client.authenticateCatalogUser(args[0],args[1],))
203
  pp.pprint(client.authenticateCatalogUser(args[0],args[1],eval(args[2]),))
204
 
204
 
205
transport.close()
205
transport.close()