Remove unused imports from some modules.
authorPawel Solyga <Pawel.Solyga@gmail.com>
Sun, 30 Nov 2008 17:37:06 +0000
changeset 632 1f20cfb91e11
parent 631 3763d36bcebc
child 633 899ec5d546bd
Remove unused imports from some modules. Patch by: Pawel Solyga
app/soc/models/host.py
app/soc/views/helper/lists.py
app/soc/views/models/base.py
app/soc/views/models/presence.py
--- a/app/soc/models/host.py	Sun Nov 30 17:35:48 2008 +0000
+++ b/app/soc/models/host.py	Sun Nov 30 17:37:06 2008 +0000
@@ -22,8 +22,6 @@
 ]
 
 
-from google.appengine.ext import db
-
 import soc.models.role
 import soc.models.sponsor
 
--- a/app/soc/views/helper/lists.py	Sun Nov 30 17:35:48 2008 +0000
+++ b/app/soc/views/helper/lists.py	Sun Nov 30 17:37:06 2008 +0000
@@ -24,7 +24,6 @@
 
 
 from soc.logic import dicts
-from soc.views import helper
 
 import soc.views.helper.forms
 
@@ -167,20 +166,20 @@
 
 def makePaginationForm(
   request, limit, arg_name, choices=DEF_PAGINATION_CHOICES,
-  field_name_fmt=helper.forms.DEF_SELECT_QUERY_ARG_FIELD_NAME_FMT):
+  field_name_fmt=soc.views.helper.forms.DEF_SELECT_QUERY_ARG_FIELD_NAME_FMT):
   """Returns a customized pagination limit selection form.
   
   Args:
     request: the standard Django HTTP request object
     limit: the initial value of the selection control
-    arg_name: see helper.forms.makeSelectQueryArgForm(); default is 'limit'
-    choices: see helper.forms.makeSelectQueryArgForm(); default is
+    arg_name: see soc.views.helper.forms.makeSelectQueryArgForm(); default is 'limit'
+    choices: see soc.views.helper.forms.makeSelectQueryArgForm(); default is
       DEF_PAGINATION_CHOICES
-    field_name_fmt: see helper.forms.makeSelectQueryArgForm()
+    field_name_fmt: see soc.views.helper.forms.makeSelectQueryArgForm()
   """
   choices = makeNewPaginationChoices(limit=limit, choices=choices)
   
-  return helper.forms.makeSelectQueryArgForm(
+  return soc.views.helper.forms.makeSelectQueryArgForm(
       request, arg_name, limit, choices)
 
 
@@ -191,7 +190,7 @@
   Args:
     limit: the initial value of the selection control;
       default is DEF_PAGINATION
-    choices: see helper.forms.makeSelectQueryArgForm();
+    choices: see soc.views.helper.forms.makeSelectQueryArgForm();
       default is DEF_PAGINATION_CHOICES
 
   Returns:
--- a/app/soc/views/models/base.py	Sun Nov 30 17:35:48 2008 +0000
+++ b/app/soc/views/models/base.py	Sun Nov 30 17:37:06 2008 +0000
@@ -34,7 +34,6 @@
 import soc.views.helper.params
 
 from soc.logic import dicts
-from soc.logic import models
 from soc.views import helper
 from soc.views import out_of_band
 from soc.views.helper import access
--- a/app/soc/views/models/presence.py	Sun Nov 30 17:35:48 2008 +0000
+++ b/app/soc/views/models/presence.py	Sun Nov 30 17:37:06 2008 +0000
@@ -23,7 +23,6 @@
 
 
 from google.appengine.ext import db
-from google.appengine.api import users
 
 from django import forms
 from django.utils.translation import ugettext_lazy
@@ -32,7 +31,6 @@
 from soc.logic import validate
 from soc.logic.models import document as document_logic
 from soc.views import helper
-from soc.views.helper import widgets
 from soc.views.models import base
 
 import soc.models.presence