# Path: oroboros/core/db.py
# class Object(object):
# 	def _get_idx(self):
# 	def _set_idx(self, idx):
# def _connect(dsn=_dsn):
# def _cursor(conn):
# def connect(dsn=_dsn):
# def execute(sql, var=None):
# def close():
# def autoconnect(dsn=_dsn):
# def _execute_file(path):
# def install(path=_dsn):
# def _check_version():
# def _create_functions(cnx):
# 	def regexp_search(pattern, string):
# def _test():
# 
# Path: oroboros/core/xmlutils.py
# def _serialize(obj):
# 	def _get_elem(self):
# 	def _set_elem(self, elem):
# 	def _get_tag(self):
# 	def _set_tag(self, tag):
# 	def _get_attributes(self):
# 	def _set_attributes(self, attrdict):
# 	def _get_text(self):
# 	def _set_text(self, text):
# 	def _get_tail(self):
# 	def _set_tail(self, tail):
# 	def __init__(self, tag=None, attributes={}, text='', tail='',
# 		_etree_elem=None):
# 	def has_attr(self, attribute):
# 	def get_attr(self, attribute):
# 	def set_attr(self, attribute, value):
# 	def append(self, elem=None, attributes={}, text='', tail='',
# 		_etree_elem=None):
# 	def insert(self, elem, attributes={}, text='', tail='', idx=0,
# 		_etree_elem=None):
# 	def prepend(self, elem, attributes={}, text='', tail='', _etree_elem=None):
# 	def get_child(self, idx=0, tag=None):
# 	def get_children(self, tag=None):
# 	def get_child_text(self, idx=0, tag=None):
# 	def get_child_attr(self, attr, idx=0, tag=None):
# 	def remove_child(self, idx=0, tag=None):
# 	def remove_children(self, tag):
# 	def clear(self):
# 	def __len__(self):
# 	def write(self, path, encoding='UTF-8'):
# 	def dump(self):
# 	def __str__(self, encoding='UTF-8'):
# 	def __iter__(self):
# 	def get_iterator(self, tag):
# 	def __contains__(self, tag):
# def parse(path):
# def comment(text):
# def _test():
# class Element(object):


from oroboros.core import db
from oroboros.core import xmlutils
	import doctest
	"""
	ret = AspectsFiltersList()
	sql = "select * from AspectsFilters order by name;"
	res = db.execute(sql).fetchall()
	for row in res:
		ret.append(AspectsFilter(set_default=False))
		ret[-1].set(*row)
		ret[-1]._select_dict()
	return ret


def all_aspects_filters_names():
	"""Return a list of all aspects filters names.
	
	:rtype: list
	"""
	ret = list()
	sql = 'select name from AspectsFilters order by name;'
	res = db.execute(sql).fetchall()
	for row in res:
		ret.append(row[0])
	return ret


def xml_export_aspects_filters():
	"""Return a xmlutils.Element('AspectsFilters') with all aspects filters.
	
	:rtype: xmlutils.Element
	"""
	all = all_aspects_filters()

# Path: oroboros/core/db.py
# class Object(object):
# 	def _get_idx(self):
# 	def _set_idx(self, idx):
# def _connect(dsn=_dsn):
# def _cursor(conn):
# def connect(dsn=_dsn):
# def execute(sql, var=None):
# def close():
# def autoconnect(dsn=_dsn):
# def _execute_file(path):
# def install(path=_dsn):
# def _check_version():
# def _create_functions(cnx):
# 	def regexp_search(pattern, string):
# def _test():
# 
# Path: oroboros/core/xmlutils.py
# def _serialize(obj):
# 	def _get_elem(self):
# 	def _set_elem(self, elem):
# 	def _get_tag(self):
# 	def _set_tag(self, tag):
# 	def _get_attributes(self):
# 	def _set_attributes(self, attrdict):
# 	def _get_text(self):
# 	def _set_text(self, text):
# 	def _get_tail(self):
# 	def _set_tail(self, tail):
# 	def __init__(self, tag=None, attributes={}, text='', tail='',
# 		_etree_elem=None):
# 	def has_attr(self, attribute):
# 	def get_attr(self, attribute):
# 	def set_attr(self, attribute, value):
# 	def append(self, elem=None, attributes={}, text='', tail='',
# 		_etree_elem=None):
# 	def insert(self, elem, attributes={}, text='', tail='', idx=0,
# 		_etree_elem=None):
# 	def prepend(self, elem, attributes={}, text='', tail='', _etree_elem=None):
# 	def get_child(self, idx=0, tag=None):
# 	def get_children(self, tag=None):
# 	def get_child_text(self, idx=0, tag=None):
# 	def get_child_attr(self, attr, idx=0, tag=None):
# 	def remove_child(self, idx=0, tag=None):
# 	def remove_children(self, tag):
# 	def clear(self):
# 	def __len__(self):
# 	def write(self, path, encoding='UTF-8'):
# 	def dump(self):
# 	def __str__(self, encoding='UTF-8'):
# 	def __iter__(self):
# 	def get_iterator(self, tag):
# 	def __contains__(self, tag):
# def parse(path):
# def comment(text):
# def _test():
# class Element(object):


# Path: oroboros/core/aspectsfilters.py
from oroboros.core import db
from oroboros.core import xmlutils
	import doctest

	"""
	ret = AspectsFiltersList()
	sql = "select * from AspectsFilters order by name;"
	res = db.execute(sql).fetchall()
	for row in res:
		ret.append(AspectsFilter(set_default=False))
		ret[-1].set(*row)
		ret[-1]._select_dict()
	return ret


def all_aspects_filters_names():
	"""Return a list of all aspects filters names.
	
	:rtype: list
	"""
	ret = list()
	sql = 'select name from AspectsFilters order by name;'
	res = db.execute(sql).fetchall()
	for row in res:
		ret.append(row[0])
	return ret


def xml_export_aspects_filters():
	"""Return a xmlutils.Element('AspectsFilters') with all aspects filters.
	
	:rtype: xmlutils.Element
	"""
	all = all_aspects_filters()

	el = xmlutils.Element('AspectsFilters', {}, '\n', '\n')