Remove unused imports, fix too long lines and indentions.
Patch by: Pawel Solyga
Review by: to-be-reviewed
--- a/app/soc/logic/menu.py Sun Oct 19 13:14:40 2008 +0000
+++ b/app/soc/logic/menu.py Sun Oct 19 16:17:32 2008 +0000
@@ -22,8 +22,6 @@
]
-from google.appengine.api import users
-
from django.utils import datastructures
--- a/app/soc/logic/model.py Sun Oct 19 13:14:40 2008 +0000
+++ b/app/soc/logic/model.py Sun Oct 19 16:17:32 2008 +0000
@@ -26,9 +26,6 @@
from google.appengine.ext import db
-from soc.logic import key_name
-from soc.logic import out_of_band
-
def getFullClassName(cls):
"""Returns fully-qualified module.class name string."""
--- a/app/soc/logic/models/base.py Sun Oct 19 13:14:40 2008 +0000
+++ b/app/soc/logic/models/base.py Sun Oct 19 16:17:32 2008 +0000
@@ -26,7 +26,6 @@
from google.appengine.ext import db
-from soc.logic import key_name
from soc.logic import out_of_band
--- a/app/soc/logic/site/id_user.py Sun Oct 19 13:14:40 2008 +0000
+++ b/app/soc/logic/site/id_user.py Sun Oct 19 16:17:32 2008 +0000
@@ -23,12 +23,8 @@
]
-import re
+from google.appengine.api import users
-from google.appengine.api import users
-from google.appengine.ext import db
-
-from soc.logic import key_name
from soc.logic import model
from soc.logic import models
from soc.logic import out_of_band
--- a/app/soc/logic/site/map.py Sun Oct 19 13:14:40 2008 +0000
+++ b/app/soc/logic/site/map.py Sun Oct 19 16:17:32 2008 +0000
@@ -22,13 +22,9 @@
]
-import copy
-import re
-
from google.appengine.api import users
from django.conf.urls import defaults
-from django.utils import datastructures
from soc.logic import models
from soc.logic import path_link_name
--- a/app/soc/logic/site/page.py Sun Oct 19 13:14:40 2008 +0000
+++ b/app/soc/logic/site/page.py Sun Oct 19 16:17:32 2008 +0000
@@ -25,8 +25,6 @@
import copy
import re
-from google.appengine.api import users
-
from django.conf.urls import defaults
from python25src import urllib
--- a/app/soc/views/helper/html_menu.py Sun Oct 19 13:14:40 2008 +0000
+++ b/app/soc/views/helper/html_menu.py Sun Oct 19 16:17:32 2008 +0000
@@ -22,9 +22,6 @@
]
-from soc.logic import menu
-
-
class HtmlMenu:
"""Ordered collection of MenuItem objects as <p>...</p> paragraphs.
"""
--- a/app/soc/views/settings.py Sun Oct 19 13:14:40 2008 +0000
+++ b/app/soc/views/settings.py Sun Oct 19 16:17:32 2008 +0000
@@ -25,7 +25,6 @@
]
-from google.appengine.api import users
from google.appengine.ext import db
from django import forms
@@ -144,7 +143,9 @@
fields['home'] = home_doc
context['notice'] = ugettext_lazy('Settings saved.')
else:
- context['notice'] = ugettext_lazy('Document not specified or could not be found; other Settings saved.')
+ context['notice'] = ugettext_lazy(
+ 'Document not specified or could not be found; ' \
+ 'other Settings saved.')
settings = logic.updateOrCreateFromFields(fields, path=path)