rattail.filters Module

rattail.filters - Search filters

The filter system is pretty basic, and exists mostly for the sake of dynamically creating user interfaces based on a simple definition of filter possibilities for the given class(es) involved. (See the rattail.ClassBase class for slightly more info.)

rattail.filters.operator_text

Dictionary mapping operator “keys” to human-friendly equivalents.

rattail.filters.valid_operators

Dictionary mapping SQLAlchemy data types to tuples of operators. These are only meant to be “typical” and can be overridden by a class’ rattail.ClassBase.filter_map.

class rattail.filters.SearchFilter(**kwargs)

Represents a search filter. These are basically over-simplifications of proper SQLAlchemy conditionals.

Previous topic

rattail.ext Module

Next topic

rattail.mappers Module

This Page