GnuCash  4.11-11-ge9df8d41d2+
Public Member Functions
python.gnucash_core.Query Class Reference
Inheritance diagram for python.gnucash_core.Query:
python.gnucash_core.GnuCashCoreClass

Public Member Functions

def search_for (self, obj_type)
 
- Public Member Functions inherited from python.gnucash_core.GnuCashCoreClass
def do_lookup_create_oo_instance (self, lookup_function, cls, args)
 

Detailed Description

Definition at line 1073 of file gnucash_core.py.

Member Function Documentation

◆ search_for()

def python.gnucash_core.Query.search_for (   self,
  obj_type 
)
Set search_for to obj_type

calls qof_query_search_for. Buffers search string for queries lifetime.
@see https://bugs.gnucash.org/show_bug.cgi?id=796137

Definition at line 1075 of file gnucash_core.py.

1075  def search_for(self, obj_type):
1076  """Set search_for to obj_type
1077 
1078  calls qof_query_search_for. Buffers search string for queries lifetime.
1079  @see https://bugs.gnucash.org/show_bug.cgi?id=796137"""
1080  self.__search_for_buf = obj_type
1081  self._search_for(self.__search_for_buf)
1082 
1083 Query.add_constructor_and_methods_with_prefix('qof_query_', 'create', exclude=["qof_query_search_for"])
1084 
1085 Query.add_method('qof_query_set_book', 'set_book')
1086 Query.add_method('qof_query_search_for', '_search_for')
1087 Query.add_method('qof_query_run', 'run')
1088 Query.add_method('qof_query_add_term', 'add_term')
1089 Query.add_method('qof_query_add_boolean_match', 'add_boolean_match')
1090 Query.add_method('qof_query_add_guid_list_match', 'add_guid_list_match')
1091 Query.add_method('qof_query_add_guid_match', 'add_guid_match')
1092 Query.add_method('qof_query_destroy', 'destroy')
1093 

The documentation for this class was generated from the following file: