2 """Dump the DB sorted by date
4 This file is a part of XSetBg.
9 from m_lib.defenc import default_encoding
10 from xsetbg_db import xsetbg_db
13 sys.exit("Error: no database found")
15 for row in xsetbg_db.select(orderBy='-last_shown'):
16 print(row.id, row.last_shown, row.full_name.encode(default_encoding))