Add missing import, remove unused import and add missing parameters to methods in soc.views.models.user_self module.
Patch by: Pawel Solyga
--- a/app/soc/views/models/user_self.py Sun Nov 30 17:06:32 2008 +0000
+++ b/app/soc/views/models/user_self.py Sun Nov 30 17:35:05 2008 +0000
@@ -26,11 +26,11 @@
from google.appengine.api import users
from django import forms
+from django import http
from django.utils.translation import ugettext_lazy
from soc.logic import dicts
from soc.logic import validate
-from soc.logic.models import user as user_logic
from soc.views import helper
from soc.views import out_of_band
from soc.views.helper import access
@@ -119,7 +119,7 @@
EDIT_SELF_TMPL = 'soc/user/edit_self.html'
- def edit(self, request, page_name=None, params=None, **kwargs):
+ def edit(self, request, page_name=None, params=None, seed=None, **kwargs):
"""Displays User self edit page for the entity specified by **kwargs.
Args:
@@ -219,7 +219,7 @@
# fill in the account field with the user created from email
fields['account'] = users.User(fields['email'])
- def getSidebarLinks(self, request):
+ def getSidebarLinks(self, request, params=None):
"""Returns an dictionary with the user sidebar entry.
"""
@@ -233,7 +233,7 @@
return super(View, self).getSidebarLinks(request, params)
- def getDjangoURLPatterns(self):
+ def getDjangoURLPatterns(self, params=None):
"""See base.View.getDjangoURLPatterns().
"""