update readme

This commit is contained in:
enkore 2013-10-01 13:31:40 +02:00
parent 72f1c04c57
commit 87c583db87
4 changed files with 12 additions and 9 deletions

View File

@ -294,7 +294,7 @@ __Settings:__
* `alert_format_title` — The title of the notification, all formatters can be used (default: `Low battery`) * `alert_format_title` — The title of the notification, all formatters can be used (default: `Low battery`)
* `alert_format_body` — The body text of the notification, all formatters can be used (default: `Battery {battery_ident} has only {percentage:.2f}% ({remaining_hm}) remaining!`) * `alert_format_body` — The body text of the notification, all formatters can be used (default: `Battery {battery_ident} has only {percentage:.2f}% ({remaining_hm}) remaining!`)
* `path` — Override the default-generated path (default: `None`) * `path` — Override the default-generated path (default: `None`)
* `status` — A dictionary mapping ('DIS', 'CHR', 'FULL') to alternative names (default: `{'FULL': 'FULL', 'CHR': 'CHR', 'DIS': 'DIS'}`) * `status` — A dictionary mapping ('DIS', 'CHR', 'FULL') to alternative names (default: `{'CHR': 'CHR', 'DIS': 'DIS', 'FULL': 'FULL'}`)
@ -379,7 +379,7 @@ The `backends` setting determines the backends to use. Currently available are:
__Settings:__ __Settings:__
* `backends` — List of backends (instances of i3pystatus.mail.xxx) * `backends` — List of backends (instances of `i3pystatus.mail.xxx.zzz`)
* `color` — (default: `#ffffff`) * `color` — (default: `#ffffff`)
* `color_unread` — (default: `#ff0000`) * `color_unread` — (default: `#ff0000`)
* `format` — (default: `{unread} new email`) * `format` — (default: `{unread} new email`)
@ -390,7 +390,7 @@ __Settings:__
Currently available backends are: Currently available backends are:
> ### imap > ### imap.IMAP
> >
> >
> Checks for mail on a IMAP server > Checks for mail on a IMAP server
@ -407,7 +407,7 @@ __Settings:__
> >
> >
> >
> ### notmuchmail > ### notmuchmail.Notmuch
> >
> >
> This class uses the notmuch python bindings to check for the > This class uses the notmuch python bindings to check for the
@ -421,7 +421,7 @@ __Settings:__
> >
> >
> >
> ### thunderbird > ### thunderbird.Thunderbird
> >
> >
> This class listens for dbus signals emitted by > This class listens for dbus signals emitted by
@ -480,7 +480,7 @@ __Settings:__
* `host` — (default: `localhost`) * `host` — (default: `localhost`)
* `port` — MPD port (default: `6600`) * `port` — MPD port (default: `6600`)
* `format` — formatp string (default: `{title} {status}`) * `format` — formatp string (default: `{title} {status}`)
* `status` — Dictionary mapping pause, play and stop to output (default: `{'play': '▶', 'pause': '▷', 'stop': '◾'}`) * `status` — Dictionary mapping pause, play and stop to output (default: `{'pause': '▷', 'stop': '◾', 'play': '▶'}`)

View File

@ -22,7 +22,7 @@ class Mail(IntervalModule):
!!i3pystatus.mail!!""" !!i3pystatus.mail!!"""
settings = ( settings = (
("backends", "List of backends (instances of `i3pystatus.mail.xxx.Backend`)"), ("backends", "List of backends (instances of `i3pystatus.mail.xxx.zzz`)"),
"color", "color_unread", "format", "format_plural", "color", "color_unread", "format", "format_plural",
("hide_if_null", "Don't output anything if there are no new mails"), ("hide_if_null", "Don't output anything if there are no new mails"),
) )

View File

@ -113,8 +113,11 @@ def get_all(module_path, heading, finder=None):
for name, module in get_modules(module_path): for name, module in get_modules(module_path):
classes = finder.search_module(module) classes = finder.search_module(module)
found = []
for cls in classes: for cls in classes:
mods.append(Module(cls, neighbours=len(classes), module_name=name, module=module, heading=heading)) if cls.__name__ not in found:
found.append(cls.__name__)
mods.append(Module(cls, neighbours=len(classes), module_name=name, module=module, heading=heading))
return sorted(mods, key=lambda module: module.name) return sorted(mods, key=lambda module: module.name)

View File

@ -3,7 +3,7 @@
from setuptools import setup from setuptools import setup
setup(name="i3pystatus", setup(name="i3pystatus",
version="3.25", version="3.25.1",
description="Like i3status, this generates status line for i3bar / i3wm", description="Like i3status, this generates status line for i3bar / i3wm",
url="http://github.com/enkore/i3pystatus", url="http://github.com/enkore/i3pystatus",
license="MIT", license="MIT",