Return the list of unselected facet items for the given facet, sorted
by count.

Returns the list of unselected facet contraints or facet items (e.g. tag
names like “russian” or “tolstoy”) for the given search facet (e.g.
“tags”), sorted by facet item count (i.e. the number of search results that
match each facet item).

Reads the complete list of facet items for the given facet from
c.search_facets, and filters out the facet items that the user has already
selected.

Arguments:
facet – the name of the facet to filter.
limit – the max. number of facet items to return.
exclude_active – only return unselected facets.

Return the list of unselected facet items for the given facet, sorted
by count.

Returns the list of unselected facet contraints or facet items (e.g. tag
names like “russian” or “tolstoy”) for the given search facet (e.g.
“tags”), sorted by facet item count (i.e. the number of search results that
match each facet item).

Reads the complete list of facet items for the given facet from
c.search_facets, and filters out the facet items that the user has already
selected.

Arguments:
facet – the name of the facet to filter.
limit – the max. number of facet items to return.

This function converts ISO format date- and datetime-strings into
datetime objects. Times may be specified down to the microsecond. UTC
offset or timezone information may not be included in the string.

Note - Although originally documented as parsing ISO date(-times), this

function doesn’t fully adhere to the format. This function will
throw a ValueError if the string contains UTC offset information.
So in that sense, it is less liberal than ISO format. On the
other hand, it is more liberal of the accepted delimiters between
the values in the string. Also, it allows microsecond precision,
despite that not being part of the ISO format.

Parse a date string of the form specified in RFC 2822, and return a
datetime.

RFC 2822 is the date format used in HTTP headers. It should contain
timezone information, but that cannot be relied upon.

If date_str doesn’t contain timezone information, then the ‘assume_utc’
flag determines whether we assume this string is local (with respect to the
server running this code), or UTC. In practice, what this means is that if
assume_utc is True, then the returned datetime is ‘aware’, with an
associated tzinfo of offset zero. Otherwise, the returned datetime is
‘naive’.

If timezone information is available in date_str, then the returned
datetime is ‘aware’, ie - it has an associated tz_info object.

Remove one or multiple keys from the current parameters.
The first parameter can be either a string with the name of the key to
remove or a list of keys to remove.
A specific key/value pair can be removed by passing a second value
argument otherwise all pairs matching the key will be removed. If replace
is given then a new param key=replace will be added.
Note that the value and replace parameters only apply to the first key
provided (or the only one provided if key is a string).

controller action & extras (dict) are used to create the base url
via url_for()
controller & action default to the current ones

This can be overriden providing an alternative_url, which will be used
instead.

am_member – if True return only the groups the logged-in user is a
member of, otherwise return all groups that the user is authorized to
edit (for example, sysadmin users are authorized to edit all groups)
(optional, default: False)