# HG changeset patch # User Pawel Solyga # Date 1253819745 -7200 # Node ID 1e1b8f22e1535e60396eb7a3f21a40794f9ff8e2 # Parent 4337dfc336336b283f8f9a5089d3846d92443c93 Style fixes in seed_db module. diff -r 4337dfc33633 -r 1e1b8f22e153 app/soc/models/seed_db.py --- a/app/soc/models/seed_db.py Thu Sep 24 21:07:31 2009 +0200 +++ b/app/soc/models/seed_db.py Thu Sep 24 21:15:45 2009 +0200 @@ -19,7 +19,7 @@ __authors__ = [ '"Sverre Rabbelier" ', - 'JamesLevy" ', + '"James Levy" ', ] @@ -992,7 +992,6 @@ user, org, org_app, mentor, student_proposal Redirects if end < goal, incrementing both start and end with step. - """ get_args = request.GET @@ -1032,21 +1031,18 @@ entity = model(**properties) if seed_type == 'survey': survey_content = survey_logic.createSurvey(properties['fields'], - properties['schema'], - this_survey=None - ) + properties['schema'], + this_survey=None) entity.this_survey = survey_content elif seed_type == 'survey_answer': record = SurveyRecord.gql("WHERE user = :1 AND this_survey = :2", - properties['user'], properties['_survey'] - ).get() + properties['user'], properties['_survey']).get() entity = survey_logic.updateSurveyRecord(properties['user'], - properties['_survey'], - record, - properties['_fields'] - ) + properties['_survey'], + record, + properties['_fields']) entity.put() - if seed_type == 'survey': survey_logic._onCreate(entity) + if seed_type == 'survey': survey_logic._onCreate(entity) if end < goal: info = {