Subversion Repositories SmartDukaan

Rev

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

Rev 94 Rev 2926
Line 21... Line 21...
21
  print 'Usage: ' + sys.argv[0] + ' [-h host:port] [-u url] [-f[ramed]] function [arg1 [arg2...]]'
21
  print 'Usage: ' + sys.argv[0] + ' [-h host:port] [-u url] [-f[ramed]] function [arg1 [arg2...]]'
22
  print ''
22
  print ''
23
  print 'Functions:'
23
  print 'Functions:'
24
  print '  string getPropetry(string propertyName)'
24
  print '  string getPropetry(string propertyName)'
25
  print '  void loadProperty(string propertyName, string propertyValue)'
25
  print '  void loadProperty(string propertyName, string propertyValue)'
-
 
26
  print '  void reloadProperties()'
26
  print ''
27
  print ''
27
  sys.exit(0)
28
  sys.exit(0)
28
 
29
 
29
pp = pprint.PrettyPrinter(indent = 2)
30
pp = pprint.PrettyPrinter(indent = 2)
30
host = 'localhost'
31
host = 'localhost'
Line 81... Line 82...
81
  if len(args) != 2:
82
  if len(args) != 2:
82
    print 'loadProperty requires 2 args'
83
    print 'loadProperty requires 2 args'
83
    sys.exit(1)
84
    sys.exit(1)
84
  pp.pprint(client.loadProperty(args[0],args[1],))
85
  pp.pprint(client.loadProperty(args[0],args[1],))
85
 
86
 
-
 
87
elif cmd == 'reloadProperties':
-
 
88
  if len(args) != 0:
-
 
89
    print 'reloadProperties requires 0 args'
-
 
90
    sys.exit(1)
-
 
91
  pp.pprint(client.reloadProperties())
-
 
92
 
86
transport.close()
93
transport.close()