diff -r 6eb9b4652c80 -r 5c75312566d5 app/soc/models/seed_db.py --- a/app/soc/models/seed_db.py Fri Apr 03 17:30:36 2009 +0000 +++ b/app/soc/models/seed_db.py Fri Apr 03 17:32:15 2009 +0000 @@ -22,7 +22,6 @@ ] -import datetime import itertools import logging import random @@ -54,6 +53,9 @@ class Error(Exception): + """Base class for all exceptions raised by this module. + """ + pass @@ -124,7 +126,7 @@ site.put() - account, current_user = ensureUser() + _, current_user = ensureUser() for i in range(15): @@ -405,7 +407,7 @@ """Returns the properties for a new org proposal, """ - account, current_user = ensureUser() + _, current_user = ensureUser() status = request.GET.get('status', 'pre-accepted') gsoc2009 = Program.get_by_key_name('google/gsoc2009') @@ -444,7 +446,7 @@ """Returns the properties for a new org entity. """ - account, current_user = ensureUser() + _, current_user = ensureUser() gsoc2009 = Program.get_by_key_name('google/gsoc2009') if not gsoc2009: @@ -478,7 +480,7 @@ """Returns the properties of a new student proposal. """ - account, current_user = ensureUser() + _, current_user = ensureUser() org = Organization.get_by_key_name('google/gsoc2009/%d' % i) if not org: @@ -511,7 +513,7 @@ """Returns the properties of a new student proposal. """ - account, current_user = ensureUser() + _, current_user = ensureUser() org = Organization.get_by_key_name('google/gsoc2009/%d' % i) mentor = Mentor.get_by_key_name('google/gsoc2009/org_%d/mentor' % i) @@ -684,6 +686,9 @@ # there no explicit ranker model anywhere, so make one for # our own convenience to delete all rankers class ranker(db.Model): + """ranker model used with ranklist module. + """ + pass # TODO(dbentley): If there are more than 1000 instances of any model,