Subversion Repositories SmartDukaan

Rev

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

Rev 19182 Rev 19889
Line 111... Line 111...
111
  print '  Address getBillingAddressForUser(i64 userId)'
111
  print '  Address getBillingAddressForUser(i64 userId)'
112
  print '  bool isCreditorAssigned(i64 userId)'
112
  print '  bool isCreditorAssigned(i64 userId)'
113
  print '  bool isTaxInvoiceEnabledUser(i64 userId)'
113
  print '  bool isTaxInvoiceEnabledUser(i64 userId)'
114
  print '  bool taxInvoiceAvailable(i64 addressId)'
114
  print '  bool taxInvoiceAvailable(i64 addressId)'
115
  print '   getCartByValue( cartIds)'
115
  print '   getCartByValue( cartIds)'
-
 
116
  print '   getCounterName( userIds)'
116
  print ''
117
  print ''
117
  sys.exit(0)
118
  sys.exit(0)
118
 
119
 
119
pp = pprint.PrettyPrinter(indent = 2)
120
pp = pprint.PrettyPrinter(indent = 2)
120
host = 'localhost'
121
host = 'localhost'
Line 713... Line 714...
713
  if len(args) != 1:
714
  if len(args) != 1:
714
    print 'getCartByValue requires 1 args'
715
    print 'getCartByValue requires 1 args'
715
    sys.exit(1)
716
    sys.exit(1)
716
  pp.pprint(client.getCartByValue(eval(args[0]),))
717
  pp.pprint(client.getCartByValue(eval(args[0]),))
717
 
718
 
-
 
719
elif cmd == 'getCounterName':
-
 
720
  if len(args) != 1:
-
 
721
    print 'getCounterName requires 1 args'
-
 
722
    sys.exit(1)
-
 
723
  pp.pprint(client.getCounterName(eval(args[0]),))
-
 
724
 
718
else:
725
else:
719
  print 'Unrecognized method %s' % cmd
726
  print 'Unrecognized method %s' % cmd
720
  sys.exit(1)
727
  sys.exit(1)
721
 
728
 
722
transport.close()
729
transport.close()