comparison roundup-admin @ 471:f51b017eff05

added some quoting instructions to roundup-admin
author Richard Jones <richard@users.sourceforge.net>
date Mon, 31 Dec 2001 05:12:01 +0000
parents 9f7320624bc2
children e18210e77a39
comparison
equal deleted inserted replaced
470:9f7320624bc2 471:f51b017eff05
14 # BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS 14 # BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
15 # FOR A PARTICULAR PURPOSE. THE CODE PROVIDED HEREUNDER IS ON AN "AS IS" 15 # FOR A PARTICULAR PURPOSE. THE CODE PROVIDED HEREUNDER IS ON AN "AS IS"
16 # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE, 16 # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
17 # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. 17 # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
18 # 18 #
19 # $Id: roundup-admin,v 1.56 2001-12-31 05:09:20 richard Exp $ 19 # $Id: roundup-admin,v 1.57 2001-12-31 05:12:01 richard Exp $
20 20
21 # python version check 21 # python version check
22 from roundup import version_check 22 from roundup import version_check
23 23
24 import sys, os, getpass, getopt, re, UserDict, shlex 24 import sys, os, getpass, getopt, re, UserDict, shlex
135 node designators and key strings are both accepted. 135 node designators and key strings are both accepted.
136 . Multilink values are printed as lists of node designators joined by commas. 136 . Multilink values are printed as lists of node designators joined by commas.
137 When given as an argument, node designators and key strings are both 137 When given as an argument, node designators and key strings are both
138 accepted; an empty string, a single node, or a list of nodes joined by 138 accepted; an empty string, a single node, or a list of nodes joined by
139 commas is accepted. 139 commas is accepted.
140
141 When property values must contain spaces, just surround the value with
142 quotes, either ' or ". A single space may also be backslash-quoted. If a
143 valuu must contain a quote character, it must be backslash-quoted or inside
144 quotes. Examples:
145 hello world (2 tokens: hello, world)
146 "hello world" (1 token: hello world)
147 "Roch'e" Compaan (2 tokens: Roch'e Compaan)
148 Roch\'e Compaan (2 tokens: Roch'e Compaan)
149 address="1 2 3" (1 token: address=1 2 3)
150 \\ (1 token: \)
151 \n\r\t (1 token: a newline, carriage-return and tab)
140 152
141 When multiple nodes are specified to the roundup get or roundup set 153 When multiple nodes are specified to the roundup get or roundup set
142 commands, the specified properties are retrieved or set on all the listed 154 commands, the specified properties are retrieved or set on all the listed
143 nodes. 155 nodes.
144 156
998 tool = AdminTool() 1010 tool = AdminTool()
999 sys.exit(tool.main()) 1011 sys.exit(tool.main())
1000 1012
1001 # 1013 #
1002 # $Log: not supported by cvs2svn $ 1014 # $Log: not supported by cvs2svn $
1015 # Revision 1.56 2001/12/31 05:09:20 richard
1016 # Added better tokenising to roundup-admin - handles spaces and stuff. Can
1017 # use quoting or backslashes. See the roundup.token pydoc.
1018 #
1003 # Revision 1.55 2001/12/17 03:52:47 richard 1019 # Revision 1.55 2001/12/17 03:52:47 richard
1004 # Implemented file store rollback. As a bonus, the hyperdb is now capable of 1020 # Implemented file store rollback. As a bonus, the hyperdb is now capable of
1005 # storing more than one file per node - if a property name is supplied, 1021 # storing more than one file per node - if a property name is supplied,
1006 # the file is called designator.property. 1022 # the file is called designator.property.
1007 # I decided not to migrate the existing files stored over to the new naming 1023 # I decided not to migrate the existing files stored over to the new naming

Roundup Issue Tracker: http://roundup-tracker.org/