Fix missing dots at the end of sentences in docstring and fix wrong import sorting in soc.logic.helper.notifications module.
Patch by: Pawel Solyga
Review by: to-be-reviewed
--- a/app/gsoc/logic/models/timeline.py Thu Jan 08 20:09:24 2009 +0000
+++ b/app/gsoc/logic/models/timeline.py Thu Jan 08 20:27:21 2009 +0000
@@ -29,7 +29,7 @@
class Logic(timeline_logic.Logic):
- """Logic methods for the Timeline model
+ """Logic methods for the Timeline model.
"""
def __init__(self, model=gsoc.models.timeline.Timeline,
--- a/app/soc/logic/helper/notifications.py Thu Jan 08 20:09:24 2009 +0000
+++ b/app/soc/logic/helper/notifications.py Thu Jan 08 20:27:21 2009 +0000
@@ -22,8 +22,8 @@
]
+import os
import time
-import os
from google.appengine.api import users
@@ -39,12 +39,12 @@
DEF_NEW_NOTIFICATION_MSG = ugettext_lazy(
- "You have received a new Notification")
+ "You have received a new Notification.")
DEF_INVITATION_MSG_FMT = ugettext_lazy(
- "Invitation to become a %(role)s for %(group)s")
+ "Invitation to become a %(role)s for %(group)s.")
-DEF_WELCOME_MSG_FMT = ugettext_lazy("Welcome to Melange %(name)s")
+DEF_WELCOME_MSG_FMT = ugettext_lazy("Welcome to Melange %(name)s,")
def sendInviteNotification(entity):
"""Sends out an invite notification to the user the request is for.
--- a/app/soc/logic/models/program.py Thu Jan 08 20:09:24 2009 +0000
+++ b/app/soc/logic/models/program.py Thu Jan 08 20:27:21 2009 +0000
@@ -32,7 +32,7 @@
class Logic(base.Logic):
- """Logic methods for the Program model
+ """Logic methods for the Program model.
"""
TIMELINE_LOGIC = {'gsoc' : gsoc.logic.models.timeline.logic,
--- a/app/soc/logic/models/timeline.py Thu Jan 08 20:09:24 2009 +0000
+++ b/app/soc/logic/models/timeline.py Thu Jan 08 20:27:21 2009 +0000
@@ -40,7 +40,7 @@
scope_logic=scope_logic)
def getScopeDepth(self):
- """See base.Logic.getScopeDepth
+ """See base.Logic.getScopeDepth.
"""
return 3
--- a/app/soc/views/models/timeline.py Thu Jan 08 20:09:24 2009 +0000
+++ b/app/soc/views/models/timeline.py Thu Jan 08 20:27:21 2009 +0000
@@ -71,7 +71,7 @@
def edit(self, request, access_type,
page_name=None, params=None, seed=None, **kwargs):
- """See base.View.edit
+ """See base.View.edit.
"""
params = dicts.merge(params, self._params)