Subversion Repositories SmartDukaan

Rev

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

Rev 7256 Rev 7265
Line 104... Line 104...
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 '  StorePricing getStorePricing(i64 itemId)'
108
  print '  StorePricing getStorePricing(i64 itemId)'
-
 
109
  print '  void updateStorePricing(StorePricing sp)'
109
  print ''
110
  print ''
110
  sys.exit(0)
111
  sys.exit(0)
111
 
112
 
112
pp = pprint.PrettyPrinter(indent = 2)
113
pp = pprint.PrettyPrinter(indent = 2)
113
host = 'localhost'
114
host = 'localhost'
Line 664... Line 665...
664
  if len(args) != 1:
665
  if len(args) != 1:
665
    print 'getStorePricing requires 1 args'
666
    print 'getStorePricing requires 1 args'
666
    sys.exit(1)
667
    sys.exit(1)
667
  pp.pprint(client.getStorePricing(eval(args[0]),))
668
  pp.pprint(client.getStorePricing(eval(args[0]),))
668
 
669
 
-
 
670
elif cmd == 'updateStorePricing':
-
 
671
  if len(args) != 1:
-
 
672
    print 'updateStorePricing requires 1 args'
-
 
673
    sys.exit(1)
-
 
674
  pp.pprint(client.updateStorePricing(eval(args[0]),))
-
 
675
 
669
else:
676
else:
670
  print 'Unrecognized method %s' % cmd
677
  print 'Unrecognized method %s' % cmd
671
  sys.exit(1)
678
  sys.exit(1)
672
 
679
 
673
transport.close()
680
transport.close()