Subversion Repositories SmartDukaan

Rev

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

Rev 6788 Rev 7222
Line 48... Line 48...
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 '   getEmailsForNotificationsSent(i64 startDatetime, i64 endDatetime)'
52
  print '  string getOrderConfirmationMail(i64 orderId)'
52
  print '  string getOrderConfirmationMail(i64 orderId)'
-
 
53
  print '  string getOrderDeliveryMail(i64 orderId)'
53
  print ''
54
  print ''
54
  sys.exit(0)
55
  sys.exit(0)
55
 
56
 
56
pp = pprint.PrettyPrinter(indent = 2)
57
pp = pprint.PrettyPrinter(indent = 2)
57
host = 'localhost'
58
host = 'localhost'
Line 272... Line 273...
272
  if len(args) != 1:
273
  if len(args) != 1:
273
    print 'getOrderConfirmationMail requires 1 args'
274
    print 'getOrderConfirmationMail requires 1 args'
274
    sys.exit(1)
275
    sys.exit(1)
275
  pp.pprint(client.getOrderConfirmationMail(eval(args[0]),))
276
  pp.pprint(client.getOrderConfirmationMail(eval(args[0]),))
276
 
277
 
-
 
278
elif cmd == 'getOrderDeliveryMail':
-
 
279
  if len(args) != 1:
-
 
280
    print 'getOrderDeliveryMail requires 1 args'
-
 
281
    sys.exit(1)
-
 
282
  pp.pprint(client.getOrderDeliveryMail(eval(args[0]),))
-
 
283
 
277
else:
284
else:
278
  print 'Unrecognized method %s' % cmd
285
  print 'Unrecognized method %s' % cmd
279
  sys.exit(1)
286
  sys.exit(1)
280
 
287
 
281
transport.close()
288
transport.close()