'show' changed to 'look'
This commit is contained in:
parent
07403352af
commit
a96a896b5b
1 changed files with 8 additions and 8 deletions
|
|
@ -34,9 +34,9 @@ syntax <field> = <new value>, like so:
|
||||||
> name = Ashley
|
> name = Ashley
|
||||||
Field 'Name' set to: Ashley
|
Field 'Name' set to: Ashley
|
||||||
|
|
||||||
Typing 'show' by itself will show the form and its current values.
|
Typing 'look' by itself will show the form and its current values.
|
||||||
|
|
||||||
> show
|
> look
|
||||||
|
|
||||||
Name: Ashley
|
Name: Ashley
|
||||||
Age:
|
Age:
|
||||||
|
|
@ -54,7 +54,7 @@ Form data is presented as an EvTable, so text of any length will wrap cleanly.
|
||||||
|
|
||||||
> history = EVERY MORNING I WAKE UP AND OPEN PALM SLAM[...]
|
> history = EVERY MORNING I WAKE UP AND OPEN PALM SLAM[...]
|
||||||
Field 'History' set to: EVERY MORNING I WAKE UP AND[...]
|
Field 'History' set to: EVERY MORNING I WAKE UP AND[...]
|
||||||
> show
|
> look
|
||||||
|
|
||||||
Name: Ashley
|
Name: Ashley
|
||||||
Age: 31
|
Age: 31
|
||||||
|
|
@ -178,7 +178,7 @@ def init_fill_field(formtemplate, caller, callback, pretext="", posttext="",
|
||||||
helptext = ("Available commands:|/"
|
helptext = ("Available commands:|/"
|
||||||
"|w<field> = <new value>:|n Set given field to new value, replacing the old value|/"
|
"|w<field> = <new value>:|n Set given field to new value, replacing the old value|/"
|
||||||
"|wclear <field>:|n Clear the value in the given field, making it blank|/"
|
"|wclear <field>:|n Clear the value in the given field, making it blank|/"
|
||||||
"|wshow|n: Show the form's current values|/"
|
"|wlook|n: Show the form's current values|/"
|
||||||
"|whelp|n: Display this help screen|/"
|
"|whelp|n: Display this help screen|/"
|
||||||
"|wquit|n: Quit the form menu without submitting|/"
|
"|wquit|n: Quit the form menu without submitting|/"
|
||||||
"|w%s|n: Submit this form and quit the menu" % submitcmd)
|
"|w%s|n: Submit this form and quit the menu" % submitcmd)
|
||||||
|
|
@ -217,7 +217,7 @@ def menunode_fieldfill(caller, raw_string, **kwargs):
|
||||||
helptext = caller.ndb._menutree.helptext
|
helptext = caller.ndb._menutree.helptext
|
||||||
|
|
||||||
# Syntax error
|
# Syntax error
|
||||||
syntax_err = "Syntax: <field> = <new value>|/Or: clear <field>, help, show, quit|/'%s' to submit form" % submitcmd
|
syntax_err = "Syntax: <field> = <new value>|/Or: clear <field>, help, look, quit|/'%s' to submit form" % submitcmd
|
||||||
|
|
||||||
# Display current form data
|
# Display current form data
|
||||||
text = (display_formdata(formtemplate, formdata, pretext=pretext,
|
text = (display_formdata(formtemplate, formdata, pretext=pretext,
|
||||||
|
|
@ -245,8 +245,8 @@ def menunode_fieldfill(caller, raw_string, **kwargs):
|
||||||
callback(caller, formdata)
|
callback(caller, formdata)
|
||||||
return None, None
|
return None, None
|
||||||
|
|
||||||
# Test for 'show' command
|
# Test for 'look' command
|
||||||
if raw_string.lower().strip() == "show":
|
if raw_string.lower().strip() == "look" or raw_string.lower().strip() == "l":
|
||||||
return text, options
|
return text, options
|
||||||
|
|
||||||
# Test for 'clear' command
|
# Test for 'clear' command
|
||||||
|
|
@ -508,7 +508,7 @@ class CmdTestMenu(Command):
|
||||||
<field> = <new value>
|
<field> = <new value>
|
||||||
clear <field>
|
clear <field>
|
||||||
help
|
help
|
||||||
show
|
look
|
||||||
quit
|
quit
|
||||||
send
|
send
|
||||||
"""
|
"""
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue