Subversion Repositories SmartDukaan

Rev

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

Rev 5791 Rev 6104
Line 38... Line 38...
38
  print '  void updateLastEmailProcessedTimestamp(i64 timestamp)'
38
  print '  void updateLastEmailProcessedTimestamp(i64 timestamp)'
39
  print '  void changeAgentStatus(bool status, string emailId)'
39
  print '  void changeAgentStatus(bool status, string emailId)'
40
  print '  void insertAgent(Agent agent,  role)'
40
  print '  void insertAgent(Agent agent,  role)'
41
  print '  void changeAgentRole(i64 id,  role)'
41
  print '  void changeAgentRole(i64 id,  role)'
42
  print '  i32 getOpenTicketCountForAgent(i64 agentId)'
42
  print '  i32 getOpenTicketCountForAgent(i64 agentId)'
-
 
43
  print '   getOpenTicketsMap()'
43
  print ''
44
  print ''
44
  sys.exit(0)
45
  sys.exit(0)
45
 
46
 
46
pp = pprint.PrettyPrinter(indent = 2)
47
pp = pprint.PrettyPrinter(indent = 2)
47
host = 'localhost'
48
host = 'localhost'
Line 202... Line 203...
202
  if len(args) != 1:
203
  if len(args) != 1:
203
    print 'getOpenTicketCountForAgent requires 1 args'
204
    print 'getOpenTicketCountForAgent requires 1 args'
204
    sys.exit(1)
205
    sys.exit(1)
205
  pp.pprint(client.getOpenTicketCountForAgent(eval(args[0]),))
206
  pp.pprint(client.getOpenTicketCountForAgent(eval(args[0]),))
206
 
207
 
-
 
208
elif cmd == 'getOpenTicketsMap':
-
 
209
  if len(args) != 0:
-
 
210
    print 'getOpenTicketsMap requires 0 args'
-
 
211
    sys.exit(1)
-
 
212
  pp.pprint(client.getOpenTicketsMap())
-
 
213
 
207
else:
214
else:
208
  print 'Unrecognized method %s' % cmd
215
  print 'Unrecognized method %s' % cmd
209
  sys.exit(1)
216
  sys.exit(1)
210
 
217
 
211
transport.close()
218
transport.close()