#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
import offlineimap.ui
import sys
+DEFAULT_UI_LIST = ('Curses.Blinkenlights', 'TTY.TTYUI',
+ 'Noninteractive.Basic', 'Noninteractive.Quiet')
+
def findUI(config, chosenUI=None):
- uistrlist = ['Tk.Blinkenlights', 'Tk.VerboseUI',
- 'Curses.Blinkenlights', 'TTY.TTYUI',
- 'Noninteractive.Basic', 'Noninteractive.Quiet']
+ uistrlist = list(DEFAULT_UI_LIST)
namespace={}
for ui in dir(offlineimap.ui):
- if ui.startswith('_') or ui=='detector':
+ if ui.startswith('_') or ui in ('detector', 'UIBase'):
continue
namespace[ui]=getattr(offlineimap.ui, ui)