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 # You can replace these from the settings file by setting the variables
# #
# SEARCH_AT_RESULTERROR_HANDLER # SEARCH_AT_RESULT
# SEARCH_MULTIMATCH_PARSER # SEARCH_AT_MULTIMATCH_INPUT
# #
# The the replacing functions must have the same inputs and outputs as # The the replacing functions must have the same inputs and outputs as
# those in this module. # those in this module.

View file

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

View file

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