Some doc cleanup.

This commit is contained in:
Griatch 2014-11-02 10:42:29 +01:00
parent edc25824f7
commit 0077408d02
3 changed files with 8 additions and 10 deletions

View file

@ -116,8 +116,8 @@ def cmdparser(raw_string, cmdset, caller, match_index=None):
#
# You can replace these from the settings file by setting the variables
#
# SEARCH_AT_RESULTERROR_HANDLER
# SEARCH_MULTIMATCH_PARSER
# SEARCH_AT_RESULT
# SEARCH_AT_MULTIMATCH_INPUT
#
# The the replacing functions must have the same inputs and outputs as
# those in this module.

View file

@ -389,9 +389,10 @@ class ObjectDB(TypedObject):
equal to searchdata. A special use is to search for
"key" here if you want to do a key-search without
including aliases.
quiet (bool) - don't display default error messages - return multiple
matches as a list and no matches as None. If not
set (default), will echo error messages and return None.
quiet (bool) - don't display default error messages - this tells the
search method that the user wants to handle all errors
themselves. It also changes the return value type, see
below.
exact (bool) - if unset (default) - prefers to match to beginning of
string rather than not matching at all. If set, requires
exact mathing of entire string.
@ -405,10 +406,7 @@ class ObjectDB(TypedObject):
match:
a unique object match
quiet=True:
no match or multimatch:
returns None or list of multi-matches
match:
a unique object match
returns a list of 0, 1 or more matches
"""
is_string = isinstance(searchdata, basestring)

View file

@ -1053,7 +1053,7 @@ class Exit(Object):
locks=str(exidbobj.locks),
auto_help=False,
destination=exidbobj.db_destination,
arg_regex=r"$",
arg_regex=r"^$",
is_exit=True,
obj=exidbobj)
# create a cmdset