Subversion Repositories SmartDukaan

Rev

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

Rev 1610 Rev 1891
Line 35... Line 35...
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 '  StatisticsUser authenticateStatisticsUser(string username, string password)'
-
 
40
  print '  ReportUser authenticateReportUser(string username, string password)'
-
 
41
  print '   getReports(i64 role)'
40
  print ''
42
  print ''
41
  sys.exit(0)
43
  sys.exit(0)
42
 
44
 
43
pp = pprint.PrettyPrinter(indent = 2)
45
pp = pprint.PrettyPrinter(indent = 2)
44
host = 'localhost'
46
host = 'localhost'
Line 179... Line 181...
179
  if len(args) != 2:
181
  if len(args) != 2:
180
    print 'authenticateStatisticsUser requires 2 args'
182
    print 'authenticateStatisticsUser requires 2 args'
181
    sys.exit(1)
183
    sys.exit(1)
182
  pp.pprint(client.authenticateStatisticsUser(args[0],args[1],))
184
  pp.pprint(client.authenticateStatisticsUser(args[0],args[1],))
183
 
185
 
-
 
186
elif cmd == 'authenticateReportUser':
-
 
187
  if len(args) != 2:
-
 
188
    print 'authenticateReportUser requires 2 args'
-
 
189
    sys.exit(1)
-
 
190
  pp.pprint(client.authenticateReportUser(args[0],args[1],))
-
 
191
 
-
 
192
elif cmd == 'getReports':
-
 
193
  if len(args) != 1:
-
 
194
    print 'getReports requires 1 args'
-
 
195
    sys.exit(1)
-
 
196
  pp.pprint(client.getReports(eval(args[0]),))
-
 
197
 
184
transport.close()
198
transport.close()