Some first ideas around search optimizations.

This commit is contained in:
Griatch 2015-09-10 21:56:17 +02:00
parent 36acd9255c
commit a630e6d020

View file

@ -255,6 +255,7 @@ def parse_language(speaker, emote):
return emote, mapping
def parse_sdescs_and_recogs(sender, candidates, emote, map_obj=False):
"""
Read a textraw emote and parse it into an intermediary
@ -739,6 +740,17 @@ class RPObject(DefaultObject):
"""
return self.db.recog_objmap.get(obj, (None, None))[1]
# def search(self, searchdata, **kwargs):
# """
# This version of search will pre-parse searchdata
# for eventual matches against sdescs in candidates.
# """
# if isinstance(searchdata, basestring):
# pass
# if not candidates:
def get_display_name(self, looker, **kwargs):
"""
Displays the name of the object in a viewer-aware manner.