Subversion Repositories SmartDukaan

Rev

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

Rev 7265 Rev 7272
Line 103... Line 103...
103
  print '  Insurer getInsurer(i64 insurerId)'
103
  print '  Insurer getInsurer(i64 insurerId)'
104
  print '   getAllInsurers()'
104
  print '   getAllInsurers()'
105
  print '  void updateInsuranceDeclaredAmount(i64 insurerId, double amount)'
105
  print '  void updateInsuranceDeclaredAmount(i64 insurerId, double amount)'
106
  print '  i64 getFreebieForItem(i64 itemId)'
106
  print '  i64 getFreebieForItem(i64 itemId)'
107
  print '  void addOrUpdateFreebieForItem(FreebieItem freebieItem)'
107
  print '  void addOrUpdateFreebieForItem(FreebieItem freebieItem)'
-
 
108
  print '  void addOrUpdateBrandInfo(BrandInfo brandInfo)'
-
 
109
  print '   getBrandInfo()'
108
  print '  StorePricing getStorePricing(i64 itemId)'
110
  print '  StorePricing getStorePricing(i64 itemId)'
109
  print '  void updateStorePricing(StorePricing sp)'
111
  print '  void updateStorePricing(StorePricing sp)'
110
  print ''
112
  print ''
111
  sys.exit(0)
113
  sys.exit(0)
112
 
114
 
Line 659... Line 661...
659
  if len(args) != 1:
661
  if len(args) != 1:
660
    print 'addOrUpdateFreebieForItem requires 1 args'
662
    print 'addOrUpdateFreebieForItem requires 1 args'
661
    sys.exit(1)
663
    sys.exit(1)
662
  pp.pprint(client.addOrUpdateFreebieForItem(eval(args[0]),))
664
  pp.pprint(client.addOrUpdateFreebieForItem(eval(args[0]),))
663
 
665
 
-
 
666
elif cmd == 'addOrUpdateBrandInfo':
-
 
667
  if len(args) != 1:
-
 
668
    print 'addOrUpdateBrandInfo requires 1 args'
-
 
669
    sys.exit(1)
-
 
670
  pp.pprint(client.addOrUpdateBrandInfo(eval(args[0]),))
-
 
671
 
-
 
672
elif cmd == 'getBrandInfo':
-
 
673
  if len(args) != 0:
-
 
674
    print 'getBrandInfo requires 0 args'
-
 
675
    sys.exit(1)
-
 
676
  pp.pprint(client.getBrandInfo())
-
 
677
 
664
elif cmd == 'getStorePricing':
678
elif cmd == 'getStorePricing':
665
  if len(args) != 1:
679
  if len(args) != 1:
666
    print 'getStorePricing requires 1 args'
680
    print 'getStorePricing requires 1 args'
667
    sys.exit(1)
681
    sys.exit(1)
668
  pp.pprint(client.getStorePricing(eval(args[0]),))
682
  pp.pprint(client.getStorePricing(eval(args[0]),))