Refactor some names to make api cleaner to read.

This commit is contained in:
Griatch 2017-01-14 22:21:12 +01:00
parent f7936df104
commit 506c5c6d39
7 changed files with 91 additions and 12 deletions

View file

@ -291,7 +291,7 @@ class ObjectDBManager(TypedObjectManager):
# main search methods and helper functions
@returns_typeclass_list
def object_search(self, searchdata,
def search_object(self, searchdata,
attribute_name=None,
typeclass=None,
candidates=None,
@ -412,6 +412,8 @@ class ObjectDBManager(TypedObjectManager):
pass
# return a list (possibly empty)
return matches
# alias for backwards compatibility
object_search = search_object
#
# ObjectManager Copy method