GnuCash  5.6-150-g038405b370+
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 1196 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 1198 of file gnucash_core.py.

1198  def search_for(self, obj_type):
1199  """Set search_for to obj_type
1200 
1201  calls qof_query_search_for. Buffers search string for queries lifetime.
1202  @see https://bugs.gnucash.org/show_bug.cgi?id=796137"""
1203  self.__search_for_buf = obj_type
1204  self._search_for(self.__search_for_buf)
1205 
1206 Query.add_constructor_and_methods_with_prefix('qof_query_', 'create', exclude=["qof_query_search_for"])
1207 
1208 Query.add_method('qof_query_set_book', 'set_book')
1209 Query.add_method('qof_query_search_for', '_search_for')
1210 Query.add_method('qof_query_run', 'run')
1211 Query.add_method('qof_query_add_term', 'add_term')
1212 Query.add_method('qof_query_add_boolean_match', 'add_boolean_match')
1213 Query.add_method('qof_query_add_guid_list_match', 'add_guid_list_match')
1214 Query.add_method('qof_query_add_guid_match', 'add_guid_match')
1215 Query.add_method('qof_query_destroy', 'destroy')
1216 

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