Permalink
Browse files

Typo

  • Loading branch information...
1 parent f434ff5 commit 4f5a36a5c4122bc98ddc3d4d8380bfd6b1aa341d @dustball dustball committed Jan 2, 2012
Showing with 11 additions and 11 deletions.
  1. +11 −11 notices.py
View
@@ -9,9 +9,9 @@
STAFF_ADDRESS = 'staff@hackerdojo.com'
if os.environ['SERVER_SOFTWARE'].startswith('Dev'):
- MAIL_OVERIDE = "nowhere@nowhere.com"
+ MAIL_OVERRIDE = "nowhere@nowhere.com"
else:
- MAIL_OVERIDE = False
+ MAIL_OVERRIDE = False
def bug_owner_pending(e):
body = """
@@ -40,7 +40,7 @@ def bug_owner_pending(e):
events@hackerdojo.com
"""
- deferred.defer(mail.send_mail, sender=FROM_ADDRESS, to=possibly_overide_to_address(e.member.email()),
+ deferred.defer(mail.send_mail, sender=FROM_ADDRESS, to=possibly_OVERRIDE_to_address(e.member.email()),
subject="[Pending Event] Your event is still pending: " + e.name,
body=body, _queue="emailthrottle")
@@ -73,12 +73,12 @@ def schedule_reminder_email(e):
"""
- deferred.defer(mail.send_mail, sender=FROM_ADDRESS, to=possibly_overide_to_address(e.member.email()),
+ deferred.defer(mail.send_mail, sender=FROM_ADDRESS, to=possibly_OVERRIDE_to_address(e.member.email()),
subject="[Event Reminder] " + e.name,
body=body, _queue="emailthrottle")
def notify_owner_confirmation(event):
- deferred.defer(mail.send_mail ,sender=FROM_ADDRESS, to=possibly_overide_to_address(event.member.email()),
+ deferred.defer(mail.send_mail ,sender=FROM_ADDRESS, to=possibly_OVERRIDE_to_address(event.member.email()),
subject="[New Event] Submitted but **not yet approved**",
body="""This is a confirmation that your event:
@@ -104,7 +104,7 @@ def notify_owner_confirmation(event):
def notify_new_event(event):
- deferred.defer(mail.send_mail, sender=FROM_ADDRESS, to=possibly_overide_to_address(NEW_EVENT_ADDRESS),
+ deferred.defer(mail.send_mail, sender=FROM_ADDRESS, to=possibly_OVERRIDE_to_address(NEW_EVENT_ADDRESS),
subject='[New Event] %s on %s' % (event.name, event.start_time.strftime('%a %b %d')),
body="""Event: %s
Member: %s
@@ -140,7 +140,7 @@ def notify_new_event(event):
def notify_owner_approved(event):
- deferred.defer(mail.send_mail,sender=FROM_ADDRESS, to=possibly_overide_to_address(event.member.email()),
+ deferred.defer(mail.send_mail,sender=FROM_ADDRESS, to=possibly_OVERRIDE_to_address(event.member.email()),
subject="[Event Approved] %s" % event.name,
body="""Your event is approved and on the calendar!
@@ -157,7 +157,7 @@ def notify_owner_approved(event):
""" % (event.key().id(), slugify(event.name)))
def notify_owner_rsvp(event,user):
- deferred.defer(mail.send_mail,sender=FROM_ADDRESS, to=possibly_overide_to_address(event.member.email()),
+ deferred.defer(mail.send_mail,sender=FROM_ADDRESS, to=possibly_OVERRIDE_to_address(event.member.email()),
subject="[Event RSVP] %s" % event.name,
body="""Good news! %s <%s> has RSVPd to your event.
@@ -173,9 +173,9 @@ def notify_owner_rsvp(event,user):
""" % (user.nickname(),user.email(),event.key().id(), slugify(event.name)))
-def possibly_overide_to_address(default):
- if MAIL_OVERIDE:
- return MAIL_OVERIDE
+def possibly_OVERRIDE_to_address(default):
+ if MAIL_OVERRIDE:
+ return MAIL_OVERRIDE
else:
return default

0 comments on commit 4f5a36a

Please sign in to comment.