# HG changeset patch # User Pawel Solyga # Date 1228062743 0 # Node ID 811f50717beac5c1a142d332012f530b36076a84 # Parent 01757248f7c317a327263f6212a1fa26125e7fe9 Remove unused imports in soc.views.models role, host and site modules. Add missing parameter in getDjangoURLPatters method. Patch by: Pawel Solyga diff -r 01757248f7c3 -r 811f50717bea app/soc/views/models/host.py --- a/app/soc/views/models/host.py Sun Nov 30 16:29:48 2008 +0000 +++ b/app/soc/views/models/host.py Sun Nov 30 16:32:23 2008 +0000 @@ -22,14 +22,10 @@ ] -from django import forms -from django.utils.translation import ugettext_lazy - from soc.logic import dicts from soc.logic.models import user as user_logic from soc.logic.models import sponsor as sponsor_logic from soc.views import helper -from soc.views.models import base from soc.views.models import role from soc.views.helper import access diff -r 01757248f7c3 -r 811f50717bea app/soc/views/models/role.py --- a/app/soc/views/models/role.py Sun Nov 30 16:29:48 2008 +0000 +++ b/app/soc/views/models/role.py Sun Nov 30 16:32:23 2008 +0000 @@ -22,15 +22,10 @@ ] -from google.appengine.api import users - from django import forms -from django import http from django.utils.translation import ugettext_lazy -from soc.models import request as request_model from soc.logic import dicts -from soc.logic.models import request as request_logic from soc.logic.models import user as user_logic from soc.views import helper from soc.views import out_of_band @@ -112,7 +107,7 @@ return self._list(request, params, contents, page_name) - def getDjangoURLPatterns(self): + def getDjangoURLPatterns(self, params=None): """See base.View.getDjangoURLPatterns(). """ diff -r 01757248f7c3 -r 811f50717bea app/soc/views/models/site.py --- a/app/soc/views/models/site.py Sun Nov 30 16:29:48 2008 +0000 +++ b/app/soc/views/models/site.py Sun Nov 30 16:32:23 2008 +0000 @@ -22,24 +22,15 @@ ] -from google.appengine.ext import db -from google.appengine.api import users - from django import forms -from django.utils.translation import ugettext_lazy from soc.logic import dicts -from soc.logic import validate -from soc.views import helper from soc.views.helper import access -from soc.views.helper import widgets from soc.views.models import presence import soc.models.site import soc.logic.models.site import soc.logic.dicts -import soc.views.helper -import soc.views.helper.widgets class CreateForm(presence.SettingsValidationForm): @@ -144,13 +135,13 @@ return self.edit(request, page_name, seed=key_values, **key_values) - def getDjangoURLPatterns(self): + def getDjangoURLPatterns(self, params=None): """See base.View.getDjangoURLPatterns(). """ page_name = "Home Page" patterns = super(View, self).getDjangoURLPatterns() - patterns += [(r'^$','soc.views.models.site.main_public', + patterns += [(r'^$', 'soc.views.models.site.main_public', {'page_name': page_name}, page_name)] page_name = "Edit Site Settings"