Subversion Repositories SmartDukaan

Rev

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

Rev 6736 Rev 6903
Line 86... Line 86...
86
  print '  i64 getCartsWithCouponCount(string couponCode)'
86
  print '  i64 getCartsWithCouponCount(string couponCode)'
87
  print '  void increaseTrustLevel(i64 userId, double trustLevelDelta)'
87
  print '  void increaseTrustLevel(i64 userId, double trustLevelDelta)'
88
  print '  double getTrustLevel(i64 userId)'
88
  print '  double getTrustLevel(i64 userId)'
89
  print '  bool showCODOption(i64 cartId, i64 sourceId, string pincode)'
89
  print '  bool showCODOption(i64 cartId, i64 sourceId, string pincode)'
90
  print '   getUserEmails(i64 startDate, i64 endDate)'
90
  print '   getUserEmails(i64 startDate, i64 endDate)'
-
 
91
  print '  bool insureItem(i64 itemId, i64 cartId, bool toInsure)'
-
 
92
  print '  bool cancelInsurance(i64 cartId)'
-
 
93
  print '  bool storeInsuranceSpecificDetails(i64 addressId, string dob, string guardianName)'
-
 
94
  print '  bool isInsuranceDetailPresent(i64 addressId)'
-
 
95
  print '  bool isProductAddedToCart(i64 itemId, i64 startDate, i64 endDate)'
91
  print ''
96
  print ''
92
  sys.exit(0)
97
  sys.exit(0)
93
 
98
 
94
pp = pprint.PrettyPrinter(indent = 2)
99
pp = pprint.PrettyPrinter(indent = 2)
95
host = 'localhost'
100
host = 'localhost'
Line 538... Line 543...
538
  if len(args) != 2:
543
  if len(args) != 2:
539
    print 'getUserEmails requires 2 args'
544
    print 'getUserEmails requires 2 args'
540
    sys.exit(1)
545
    sys.exit(1)
541
  pp.pprint(client.getUserEmails(eval(args[0]),eval(args[1]),))
546
  pp.pprint(client.getUserEmails(eval(args[0]),eval(args[1]),))
542
 
547
 
-
 
548
elif cmd == 'insureItem':
-
 
549
  if len(args) != 3:
-
 
550
    print 'insureItem requires 3 args'
-
 
551
    sys.exit(1)
-
 
552
  pp.pprint(client.insureItem(eval(args[0]),eval(args[1]),eval(args[2]),))
-
 
553
 
-
 
554
elif cmd == 'cancelInsurance':
-
 
555
  if len(args) != 1:
-
 
556
    print 'cancelInsurance requires 1 args'
-
 
557
    sys.exit(1)
-
 
558
  pp.pprint(client.cancelInsurance(eval(args[0]),))
-
 
559
 
-
 
560
elif cmd == 'storeInsuranceSpecificDetails':
-
 
561
  if len(args) != 3:
-
 
562
    print 'storeInsuranceSpecificDetails requires 3 args'
-
 
563
    sys.exit(1)
-
 
564
  pp.pprint(client.storeInsuranceSpecificDetails(eval(args[0]),args[1],args[2],))
-
 
565
 
-
 
566
elif cmd == 'isInsuranceDetailPresent':
-
 
567
  if len(args) != 1:
-
 
568
    print 'isInsuranceDetailPresent requires 1 args'
-
 
569
    sys.exit(1)
-
 
570
  pp.pprint(client.isInsuranceDetailPresent(eval(args[0]),))
-
 
571
 
-
 
572
elif cmd == 'isProductAddedToCart':
-
 
573
  if len(args) != 3:
-
 
574
    print 'isProductAddedToCart requires 3 args'
-
 
575
    sys.exit(1)
-
 
576
  pp.pprint(client.isProductAddedToCart(eval(args[0]),eval(args[1]),eval(args[2]),))
-
 
577
 
543
else:
578
else:
544
  print 'Unrecognized method %s' % cmd
579
  print 'Unrecognized method %s' % cmd
545
  sys.exit(1)
580
  sys.exit(1)
546
 
581
 
547
transport.close()
582
transport.close()