Fixed imports sorting based on comments for r751.
http://code.google.com/p/soc/source/detail?r=751
Patch by: Pawel Solyga
Review by: to-be-reviewed
--- a/app/soc/logic/validate.py Tue Oct 14 12:02:42 2008 +0000
+++ b/app/soc/logic/validate.py Tue Oct 14 12:36:55 2008 +0000
@@ -23,13 +23,12 @@
import re
+import feedparser
from google.appengine.api import urlfetch
from soc.logic import path_link_name
-import feedparser
-
def isFeedURLValid(feed_url=None):
"""Returns True if provided url is valid ATOM or RSS.
--- a/app/soc/models/document.py Tue Oct 14 12:02:42 2008 +0000
+++ b/app/soc/models/document.py Tue Oct 14 12:36:55 2008 +0000
@@ -21,11 +21,12 @@
]
+import polymodel
+
from google.appengine.ext import db
from django.utils.translation import ugettext_lazy
-import polymodel
import soc.models.user
import soc.models.work
--- a/app/soc/models/group.py Tue Oct 14 12:02:42 2008 +0000
+++ b/app/soc/models/group.py Tue Oct 14 12:36:55 2008 +0000
@@ -22,13 +22,14 @@
]
+import polymodel
+
from google.appengine.ext import db
from django.utils.translation import ugettext_lazy
from soc.models import countries
-import polymodel
import soc.models.user
--- a/app/soc/models/home_settings.py Tue Oct 14 12:02:42 2008 +0000
+++ b/app/soc/models/home_settings.py Tue Oct 14 12:36:55 2008 +0000
@@ -22,12 +22,12 @@
]
+import polymodel
+
from google.appengine.ext import db
-
from django.utils.translation import ugettext_lazy
-import polymodel
import soc.models.document
--- a/app/soc/models/person.py Tue Oct 14 12:02:42 2008 +0000
+++ b/app/soc/models/person.py Tue Oct 14 12:36:55 2008 +0000
@@ -22,13 +22,14 @@
]
+import polymodel
+
from google.appengine.ext import db
from django.utils.translation import ugettext_lazy
from soc.models import countries
-import polymodel
import soc.models.user
--- a/app/soc/views/helper/responses.py Tue Oct 14 12:02:42 2008 +0000
+++ b/app/soc/views/helper/responses.py Tue Oct 14 12:36:55 2008 +0000
@@ -40,6 +40,7 @@
import soc.logic.models.user
import soc.views.helper.requests
+
# DeadlineExceededError can live in two different places
try:
# When deployed
--- a/app/soc/views/helper/templatetags/forms_helpers.py Tue Oct 14 12:02:42 2008 +0000
+++ b/app/soc/views/helper/templatetags/forms_helpers.py Tue Oct 14 12:36:55 2008 +0000
@@ -25,6 +25,7 @@
from django import template
+
register = template.Library()