Some code re-use in templates
As a side-effect the pre-accept and pre-accept are now first, rather
then mingled with the other buttons.
Patch by: Sverre Rabbelier
from query import *
from subqueries import *
from where import AND, OR
from datastructures import EmptyResultSet
__all__ = ['Query', 'AND', 'OR', 'EmptyResultSet']