Subversion Repositories SmartDukaan

Rev

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

Rev 4996 Rev 5055
Line 46... Line 46...
46
  print '   getRoleNamesForAgent(string agentEmailId)'
46
  print '   getRoleNamesForAgent(string agentEmailId)'
47
  print '   getPermissionsForRoleName(string roleName)'
47
  print '   getPermissionsForRoleName(string roleName)'
48
  print '  void saveQuickLink(string url, string text)'
48
  print '  void saveQuickLink(string url, string text)'
49
  print '   getQuickLinks()'
49
  print '   getQuickLinks()'
50
  print '  void updateQuickLink(i64 id, string url, string text)'
50
  print '  void updateQuickLink(i64 id, string url, string text)'
-
 
51
  print '   getEmailsForNotificationsSent(i64 startDatetime, i64 endDatetime)'
51
  print ''
52
  print ''
52
  sys.exit(0)
53
  sys.exit(0)
53
 
54
 
54
pp = pprint.PrettyPrinter(indent = 2)
55
pp = pprint.PrettyPrinter(indent = 2)
55
host = 'localhost'
56
host = 'localhost'
Line 258... Line 259...
258
  if len(args) != 3:
259
  if len(args) != 3:
259
    print 'updateQuickLink requires 3 args'
260
    print 'updateQuickLink requires 3 args'
260
    sys.exit(1)
261
    sys.exit(1)
261
  pp.pprint(client.updateQuickLink(eval(args[0]),args[1],args[2],))
262
  pp.pprint(client.updateQuickLink(eval(args[0]),args[1],args[2],))
262
 
263
 
-
 
264
elif cmd == 'getEmailsForNotificationsSent':
-
 
265
  if len(args) != 2:
-
 
266
    print 'getEmailsForNotificationsSent requires 2 args'
-
 
267
    sys.exit(1)
-
 
268
  pp.pprint(client.getEmailsForNotificationsSent(eval(args[0]),eval(args[1]),))
-
 
269
 
263
else:
270
else:
264
  print 'Unrecognized method %s' % cmd
271
  print 'Unrecognized method %s' % cmd
265
  sys.exit(1)
272
  sys.exit(1)
266
 
273
 
267
transport.close()
274
transport.close()