Skip to content

Commit 17dc011

Browse files
author
Richard Jones
committed
added some quoting instructions to roundup-admin
1 parent 97c52a9 commit 17dc011

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

roundup-admin

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
# BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
1717
# SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
1818
#
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 $
2020

2121
# python version check
2222
from roundup import version_check
@@ -138,6 +138,18 @@ printed results:
138138
accepted; an empty string, a single node, or a list of nodes joined by
139139
commas is accepted.
140140
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)
152+
141153
When multiple nodes are specified to the roundup get or roundup set
142154
commands, the specified properties are retrieved or set on all the listed
143155
nodes.
@@ -1000,6 +1012,10 @@ if __name__ == '__main__':
10001012

10011013
#
10021014
# $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+
#
10031019
# Revision 1.55 2001/12/17 03:52:47 richard
10041020
# Implemented file store rollback. As a bonus, the hyperdb is now capable of
10051021
# storing more than one file per node - if a property name is supplied,

0 commit comments

Comments
 (0)