Migrate. Added the "view" access restriction (to make objects invisible). Also changed the input of ObjectDB.objects.object_search() to not require a caller as an argument (this makes it consistent with other search methods). All default systems should have updated to the new call, but if you have custom calls, you need to change them to fit the new syntax (this is only important if explicitly use ObjectDB.objects.object_search; if you just use caller.search you should be fine)
This commit is contained in:
parent
28fe2ad3f4
commit
27809694d7
13 changed files with 267 additions and 34 deletions
|
|
@ -44,15 +44,15 @@ HelpEntry = ContentType.objects.get(app_label="help", model="helpentry").model_c
|
|||
# is reachable from within each command class
|
||||
# by using self.caller.search()!
|
||||
#
|
||||
# def object_search(self, character, ostring,
|
||||
# def object_search(self, ostring, caller=None,
|
||||
# global_search=False,
|
||||
# attribute_name=None):
|
||||
# """
|
||||
# Search as an object and return results.
|
||||
#
|
||||
# character: (Object) The object performing the search.
|
||||
# ostring: (string) The string to compare names against.
|
||||
# Can be a dbref. If name is appended by *, a player is searched for.
|
||||
# caller: (Object) The object performing the search.
|
||||
# global_search: Search all objects, not just the current location/inventory
|
||||
# attribute_name: (string) Which attribute to search in each object.
|
||||
# If None, the default 'name' attribute is used.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue