facet.py revision 1505
1505N/A# The contents of this file are subject to the terms of the 1505N/A# Common Development and Distribution License (the "License"). 1505N/A# You may not use this file except in compliance with the License. 1505N/A# See the License for the specific language governing permissions 1505N/A# and limitations under the License. 1505N/A# When distributing Covered Code, include this CDDL HEADER in each 1505N/A# If applicable, add the following below this CDDL HEADER, with the 1505N/A# fields enclosed by brackets "[]" replaced with your own identifying 1505N/A# information: Portions Copyright [yyyy] [name of copyright owner] 1505N/A# Copyright 2009 Sun Microsystems, Inc. All rights reserved. 1505N/A# Use is subject to license terms. 1505N/A # store information on facets; subclass dict 1505N/A # and maintain ordered list of keys sorted 1505N/A # subclass __getitem_ so that queries w/ 1505N/A """implement facet lookup algorithm here""" 1505N/A """ determine if facets permit this action; if any facets 1505N/A allow it, return True; also return True if no facets are present"""