Some more import sorting fixes and docstring typos in program modules and soc.views.helper.redirects module.
Patch by: Pawel Solyga
--- a/app/soc/logic/models/program.py Fri Dec 05 22:25:57 2008 +0000
+++ b/app/soc/logic/models/program.py Fri Dec 05 22:27:04 2008 +0000
@@ -28,7 +28,7 @@
class Logic(base.Logic):
- """Logic methods for the Document model
+ """Logic methods for the Program model
"""
def __init__(self, model=soc.models.program.Program, base_model=None):
--- a/app/soc/models/program.py Fri Dec 05 22:25:57 2008 +0000
+++ b/app/soc/models/program.py Fri Dec 05 22:27:04 2008 +0000
@@ -29,7 +29,7 @@
class Program(soc.models.presence.Presence):
- """The Program model, representing a Program ran by a Sponsor
+ """The Program model, representing a Program ran by a Sponsor.
"""
#: Required field storing name of the group.
--- a/app/soc/views/helper/redirects.py Fri Dec 05 22:25:57 2008 +0000
+++ b/app/soc/views/helper/redirects.py Fri Dec 05 22:27:04 2008 +0000
@@ -31,8 +31,9 @@
return result
+
def getInviteRedirect(entity, params):
- """
+ """Returns the invitation redirect for the specified entity.
"""
result ='/%s/invite/%s' % (
@@ -40,6 +41,7 @@
return result
+
def getCreateRedirect(entity, params):
"""Returns the create program redirect for the specified entity.
"""
@@ -49,6 +51,7 @@
return result
+
def getEditRedirect(entity, params):
"""Returns the edit redirect for the specified entity.
"""