2 """Dump the DB sorted by date
4 This file is a part of XSetBg.
8 __author__ = "Oleg Broytman <phd@phdru.name>"
9 __copyright__ = "Copyright (C) 2006-2015 PhiloSoft Design"
10 __license__ = "GNU GPL"
13 from m_lib.defenc import default_encoding
14 from xsetbg_db import xsetbg_db
17 sys.exit("Error: no database found")
19 for row in xsetbg_db.select(orderBy='-last_shown'):
20 print row.id, row.last_shown, row.full_name.encode(default_encoding)