Package Camelot :: Package camelot :: Package view :: Module filters
[frames] | no frames]

Module filters

source code

Python structures to represent filters. These structures can be transformed to QT forms.
Classes
  Filter
Base class for filters
  GroupBoxFilter
Filter where the items are displayed in a QGroupBox
  ComboBoxFilter
Filter where the items are displayed in a QComboBox
  EditorFilter
Filter that presents the user with an editor, allowing the user to enter a value on which to filter, and at the same time to show 'All' or 'None'
  ValidDateFilter
Filters entities that are valid a certain date. This filter will present a date to the user and filter the entities that have their from date before this date and their end date after this date. If no date is given, all entities will be shown
Functions
 
structure_to_filter(structure)
Convert a python data structure to a filter, using the following rules :
source code
Variables
  __package__ = 'Camelot.camelot.view'
Function Details

structure_to_filter(structure)

source code 

Convert a python data structure to a filter, using the following rules :

if structure is an instance of Filter, return structure else create a GroupBoxFilter from the structure