Subversion Repositories SmartDukaan

Rev

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

Rev 3499 Rev 4008
Line 32... Line 32...
32
  print '  void updatePasswordForAgent(string agentEmailId, string password)'
32
  print '  void updatePasswordForAgent(string agentEmailId, string password)'
33
  print '   getRoleNamesForAgent(string agentEmailId)'
33
  print '   getRoleNamesForAgent(string agentEmailId)'
34
  print '   getPermissionsForRoleName(string roleName)'
34
  print '   getPermissionsForRoleName(string roleName)'
35
  print '  i64 getLastEmailProcessedTimestamp()'
35
  print '  i64 getLastEmailProcessedTimestamp()'
36
  print '  void updateLastEmailProcessedTimestamp(i64 timestamp)'
36
  print '  void updateLastEmailProcessedTimestamp(i64 timestamp)'
37
  print '  void processCODTxn(i64 transactionId)'
-
 
38
  print ''
37
  print ''
39
  sys.exit(0)
38
  sys.exit(0)
40
 
39
 
41
pp = pprint.PrettyPrinter(indent = 2)
40
pp = pprint.PrettyPrinter(indent = 2)
42
host = 'localhost'
41
host = 'localhost'
Line 161... Line 160...
161
  if len(args) != 1:
160
  if len(args) != 1:
162
    print 'updateLastEmailProcessedTimestamp requires 1 args'
161
    print 'updateLastEmailProcessedTimestamp requires 1 args'
163
    sys.exit(1)
162
    sys.exit(1)
164
  pp.pprint(client.updateLastEmailProcessedTimestamp(eval(args[0]),))
163
  pp.pprint(client.updateLastEmailProcessedTimestamp(eval(args[0]),))
165
 
164
 
166
elif cmd == 'processCODTxn':
-
 
167
  if len(args) != 1:
-
 
168
    print 'processCODTxn requires 1 args'
-
 
169
    sys.exit(1)
-
 
170
  pp.pprint(client.processCODTxn(eval(args[0]),))
-
 
171
 
-
 
172
else:
165
else:
173
  print 'Unrecognized method %s' % cmd
166
  print 'Unrecognized method %s' % cmd
174
  sys.exit(1)
167
  sys.exit(1)
175
 
168
 
176
transport.close()
169
transport.close()