# HG changeset patch # User Pawel Solyga # Date 1228517683 0 # Node ID 77f9a6ea6e67084a5fec910fc940338459a75c28 # Parent f96095df143373e2cb1b89d6e65b1272fb16a40f Some style and typo fixes in different modules. Patch by: Pawel Solyga diff -r f96095df1433 -r 77f9a6ea6e67 app/soc/views/helper/params.py --- a/app/soc/views/helper/params.py Fri Dec 05 22:27:04 2008 +0000 +++ b/app/soc/views/helper/params.py Fri Dec 05 22:54:43 2008 +0000 @@ -185,6 +185,7 @@ return params + def getCreateForm(params): """Constructs a new CreateForm using params. @@ -207,6 +208,7 @@ return create_form + def getEditForm(params): """Constructs a new EditForm using params. @@ -227,6 +229,7 @@ return edit_form + def getKeyFieldsPattern(params): """Returns the Django pattern for this View's entity. diff -r f96095df1433 -r 77f9a6ea6e67 app/soc/views/models/base.py --- a/app/soc/views/models/base.py Fri Dec 05 22:27:04 2008 +0000 +++ b/app/soc/views/models/base.py Fri Dec 05 22:54:43 2008 +0000 @@ -470,7 +470,7 @@ return http.HttpResponseRedirect(redirect) def select(self, request, view, redirect, page_name=None, params=None): - """Displays a list page allowing the user to select an entity + """Displays a list page allowing the user to select an entity. After having selected the Sponsor, the user is redirected to the 'create a new program' page with the scope_path set appropriately. @@ -588,7 +588,7 @@ return helper.responses.respond(request, template, context) def getParams(self): - """Returns this view's params attribute + """Returns this view's params attribute. """ return self._params diff -r f96095df1433 -r 77f9a6ea6e67 app/soc/views/models/group.py --- a/app/soc/views/models/group.py Fri Dec 05 22:27:04 2008 +0000 +++ b/app/soc/views/models/group.py Fri Dec 05 22:54:43 2008 +0000 @@ -50,7 +50,7 @@ new_params = {} new_params['extra_dynaexclude'] = ['founder', 'home'] - params['edit_extra_dynafields'] = { + new_params['edit_extra_dynafields'] = { 'founded_by': forms.CharField(widget=helper.widgets.ReadOnlyInput(), required=False), } diff -r f96095df1433 -r 77f9a6ea6e67 app/soc/views/models/program.py --- a/app/soc/views/models/program.py Fri Dec 05 22:27:04 2008 +0000 +++ b/app/soc/views/models/program.py Fri Dec 05 22:54:43 2008 +0000 @@ -65,9 +65,8 @@ new_params['extra_dynaexclude'] = ['home'] new_params['create_extra_dynafields'] = { 'description': forms.fields.CharField(widget=helper.widgets.TinyMCE( - attrs={'rows':10, 'cols':40})), - 'scope_path': forms.CharField(widget=forms.HiddenInput, - required=True), + attrs={'rows':10, 'cols':40})), + 'scope_path': forms.CharField(widget=forms.HiddenInput, required=True), 'clean_link_id': cleaning.clean_link_id, } diff -r f96095df1433 -r 77f9a6ea6e67 app/soc/views/models/role.py --- a/app/soc/views/models/role.py Fri Dec 05 22:27:04 2008 +0000 +++ b/app/soc/views/models/role.py Fri Dec 05 22:54:43 2008 +0000 @@ -32,8 +32,8 @@ from soc.views.helper import access from soc.views.helper import redirects from soc.views.models import base +from soc.views.models import sponsor as sponsor_view from soc.views.models import user as user_view -from soc.views.models import sponsor as sponsor_view import soc.models.request import soc.views.helper.lists