Subversion Repositories SmartDukaan

Rev

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

Rev 2358 Rev 2447
Line 31... Line 31...
31
  print '  void updateMessage(i64 id, string message)'
31
  print '  void updateMessage(i64 id, string message)'
32
  print '  Message getMessage(i64 id)'
32
  print '  Message getMessage(i64 id)'
33
  print '  Message getSubstitutedMessage(i64 id,  params)'
33
  print '  Message getSubstitutedMessage(i64 id,  params)'
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 '  DashboardUser authenticateDashboardUser(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)'
40
  print '  ReportUser authenticateReportUser(string username, string password)'
41
  print '   getReports(i64 role)'
41
  print '   getReports(i64 role)'
Line 158... Line 158...
158
  if len(args) != 1:
158
  if len(args) != 1:
159
    print 'deleteUser requires 1 args'
159
    print 'deleteUser requires 1 args'
160
    sys.exit(1)
160
    sys.exit(1)
161
  pp.pprint(client.deleteUser(args[0],))
161
  pp.pprint(client.deleteUser(args[0],))
162
 
162
 
163
elif cmd == 'authenticateUser':
163
elif cmd == 'authenticateDashboardUser':
164
  if len(args) != 2:
164
  if len(args) != 2:
165
    print 'authenticateUser requires 2 args'
165
    print 'authenticateDashboardUser requires 2 args'
166
    sys.exit(1)
166
    sys.exit(1)
167
  pp.pprint(client.authenticateUser(args[0],args[1],))
167
  pp.pprint(client.authenticateDashboardUser(args[0],args[1],))
168
 
168
 
169
elif cmd == 'updatePassword':
169
elif cmd == 'updatePassword':
170
  if len(args) != 3:
170
  if len(args) != 3:
171
    print 'updatePassword requires 3 args'
171
    print 'updatePassword requires 3 args'
172
    sys.exit(1)
172
    sys.exit(1)