Class k.u.s.DateSearchFilter(SearchFilter):

Part of kiwi.ui.search

A filter which helps you to search by a date interval. Can be customized through add_option.

ClassTypeUndocumented
Function__init__

Create a new DateSearchFilter object.

Functionget_state

Implement this in a subclass

Functionclear_options

Removes all previously added options

Functionadd_option

Adds a date option

Functionadd_option_fixed

Adds a fixed option, eg one for which date is not

Functionadd_option_fixed_interval

Adds a fixed option interval, eg one for which the dates are not

Functionget_start_date

Get the start date.

Functionget_end_date

Get the end date.

Functionset_use_date_entries

Toggles the visibility of the user selectable date entries

Functionselect

selects an item in the combo

Function_update_datesUndocumented
Function_update_sensitivityUndocumented
Function_internal_set_start_dateUndocumented
Function_internal_set_end_dateUndocumented
Function_on_mode__content_changedUndocumented
Function_on_start_date__changedUndocumented
Function_on_end_date__changedUndocumented
def __init__(self, label=''):

Create a new DateSearchFilter object.

def get_state(self):

Implement this in a subclass

def clear_options(self):

Removes all previously added options

def add_option(self, option_type, position=-2):

Adds a date option

def add_option_fixed(self, name, date, position=-2):

Adds a fixed option, eg one for which date is not possible to modify.

def add_option_fixed_interval(self, name, start, end, position=-2):

Adds a fixed option interval, eg one for which the dates are not possible to modify.

def get_start_date(self):

Get the start date.

def get_end_date(self):

Get the end date.

def set_use_date_entries(self, use_date_entries):

Toggles the visibility of the user selectable date entries

def select(self, data=None, position=None):

selects an item in the combo Data or position can be sent in. If nothing is sent in the first item will be selected, if any

def _update_dates(self):
Undocumented
def _update_sensitivity(self):
Undocumented
def _internal_set_start_date(self, date):
Undocumented
def _internal_set_end_date(self, date):
Undocumented
def _on_mode__content_changed(self, mode):
Undocumented
def _on_start_date__changed(self, start_date):
Undocumented
def _on_end_date__changed(self, end_date):
Undocumented