From: Oleg Broytman Date: Tue, 28 Jul 2015 09:54:20 +0000 (+0300) Subject: Remove print_all.py X-Git-Tag: 5.0.2~3 X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=778d0abde846c75deba123796ed633788927ccf8;p=xsetbg.git Remove print_all.py --- diff --git a/print_all.py b/print_all.py deleted file mode 100755 index e03ac4e..0000000 --- a/print_all.py +++ /dev/null @@ -1,20 +0,0 @@ -#! /usr/bin/env python -"""Print shown files sorted by date - -This file is a part of XSetBg. - -""" - -__author__ = "Oleg Broytman " -__copyright__ = "Copyright (C) 2006-2015 PhiloSoft Design" -__license__ = "GNU GPL" - -import sys -from m_lib.defenc import default_encoding -from xsetbg_db import xsetbg_db - -if not xsetbg_db: - sys.exit("Error: no database found") - -for row in xsetbg_db.select('last_shown IS NOT NULL', orderBy='-last_shown'): - print row.full_name.encode(default_encoding)