From 17c99248ce36ab881bb11fffff7918d1e81cb08f Mon Sep 17 00:00:00 2001 From: Ben Kurtovic Date: Wed, 4 Jul 2012 13:22:14 -0400 Subject: [PATCH] Rename tasks, remove feed_dailycats, add image_display_resize. --- earwigbot/tasks/{blptag.py => blp_tag.py} | 2 +- earwigbot/tasks/{feed_dailycats.py => image_display_resize.py} | 10 +++++----- earwigbot/tasks/{wrongmime.py => wrong_mime.py} | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) rename earwigbot/tasks/{blptag.py => blp_tag.py} (98%) rename earwigbot/tasks/{feed_dailycats.py => image_display_resize.py} (86%) rename earwigbot/tasks/{wrongmime.py => wrong_mime.py} (98%) diff --git a/earwigbot/tasks/blptag.py b/earwigbot/tasks/blp_tag.py similarity index 98% rename from earwigbot/tasks/blptag.py rename to earwigbot/tasks/blp_tag.py index 2d9c7e4..f4f1011 100644 --- a/earwigbot/tasks/blptag.py +++ b/earwigbot/tasks/blp_tag.py @@ -27,7 +27,7 @@ __all__ = ["Task"] class Task(BaseTask): """A task to add |blp=yes to ``{{WPB}}`` or ``{{WPBS}}`` when it is used along with ``{{WP Biography}}``.""" - name = "blptag" + name = "blp_tag" def setup(self): pass diff --git a/earwigbot/tasks/feed_dailycats.py b/earwigbot/tasks/image_display_resize.py similarity index 86% rename from earwigbot/tasks/feed_dailycats.py rename to earwigbot/tasks/image_display_resize.py index 2d08540..ebf2bdf 100644 --- a/earwigbot/tasks/feed_dailycats.py +++ b/earwigbot/tasks/image_display_resize.py @@ -20,13 +20,13 @@ # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE # SOFTWARE. -from earwigbot.tasks import BaseTask +from earwigbot.tasks import Task -__all__ = ["Task"] +__all__ = ["ImageDisplayResize"] -class Task(BaseTask): - """A task to create daily categories for [[WP:FEED]].""" - name = "feed_dailycats" +class ImageDisplayResize(Task): + """A task to resize upscaled portraits in infoboxes.""" + name = "image_display_resize" def setup(self): pass diff --git a/earwigbot/tasks/wrongmime.py b/earwigbot/tasks/wrong_mime.py similarity index 98% rename from earwigbot/tasks/wrongmime.py rename to earwigbot/tasks/wrong_mime.py index 2c8813e..bec0caf 100644 --- a/earwigbot/tasks/wrongmime.py +++ b/earwigbot/tasks/wrong_mime.py @@ -27,7 +27,7 @@ __all__ = ["Task"] class Task(BaseTask): """A task to tag files whose extensions do not agree with their MIME type.""" - name = "wrongmime" + name = "wrong_mime" def setup(self): pass