Subversion Repositories SmartDukaan

Rev

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

Rev 1891 Rev 2025
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 ''
43
  print ''
43
  sys.exit(0)
44
  sys.exit(0)
44
 
45
 
45
pp = pprint.PrettyPrinter(indent = 2)
46
pp = pprint.PrettyPrinter(indent = 2)
46
host = 'localhost'
47
host = 'localhost'
Line 193... Line 194...
193
  if len(args) != 1:
194
  if len(args) != 1:
194
    print 'getReports requires 1 args'
195
    print 'getReports requires 1 args'
195
    sys.exit(1)
196
    sys.exit(1)
196
  pp.pprint(client.getReports(eval(args[0]),))
197
  pp.pprint(client.getReports(eval(args[0]),))
197
 
198
 
-
 
199
elif cmd == 'authenticateCatalogUser':
-
 
200
  if len(args) != 2:
-
 
201
    print 'authenticateCatalogUser requires 2 args'
-
 
202
    sys.exit(1)
-
 
203
  pp.pprint(client.authenticateCatalogUser(args[0],args[1],))
-
 
204
 
198
transport.close()
205
transport.close()