aboutsummaryrefslogtreecommitdiffstats
path: root/servo
diff options
context:
space:
mode:
Diffstat (limited to 'servo')
-rw-r--r--servo/management/commands/scheduler.py4
-rw-r--r--servo/models/common.py4
-rw-r--r--servo/tasks.py2
3 files changed, 6 insertions, 4 deletions
diff --git a/servo/management/commands/scheduler.py b/servo/management/commands/scheduler.py
index c9e3839..d53e050 100644
--- a/servo/management/commands/scheduler.py
+++ b/servo/management/commands/scheduler.py
@@ -3,10 +3,10 @@ from datetime import datetime
import django
import django_rq
-from django.core.management.base import BaseCommand
+
from django_rq.management.commands import rqscheduler
-django.setup() # To avoid django.core.exceptions.AppRegistryNotReady: Apps aren't loaded yet.
+#django.setup() # To avoid django.core.exceptions.AppRegistryNotReady: Apps aren't loaded yet.
from servo.tasks import check_mail
diff --git a/servo/models/common.py b/servo/models/common.py
index b1b756f..2c7fa08 100644
--- a/servo/models/common.py
+++ b/servo/models/common.py
@@ -46,7 +46,9 @@ class CsvTable(object):
self.header = u''
def padrow(self, row):
- """Pad row to self.colwdith"""
+ """
+ Pad row to self.colwdith
+ """
r = []
for c in row:
r.append(str(c).ljust(self.colwidth))
diff --git a/servo/tasks.py b/servo/tasks.py
index c31dd22..04c0a8e 100644
--- a/servo/tasks.py
+++ b/servo/tasks.py
@@ -29,7 +29,7 @@ def get_rules():
def apply_rules(event):
"""
- Applies configured rules
+ Applies configured rules to an event
event is the Event object that was triggered
"""