# HG changeset patch # User Tim Ansell # Date 1238312584 0 # Node ID 199bcab679dfd50d4c297eda0f94e3ef827d80a0 # Parent 388b65cabfbb9cb667dc61d8db12b048d62ccd53 Make test@example.com a mentor for one gsoc org and an admin (for a different) gsoc org. This was the number one issue which was stopping me from testing a bunch of patches. diff -r 388b65cabfbb -r 199bcab679df app/soc/models/seed_db.py --- a/app/soc/models/seed_db.py Sat Mar 28 20:19:50 2009 +0000 +++ b/app/soc/models/seed_db.py Sun Mar 29 07:43:04 2009 +0000 @@ -288,6 +288,24 @@ ranker_root_logic.create(student_proposal.DEF_RANKER_NAME, entity, student_proposal.DEF_SCORE, 100) + if i < 2: + role_properties.update({ + 'key_name': 'google/gsoc2009/org_%d/test' % i, + 'link_id': 'test', + 'scope_path': 'google/gsoc2009/org_%d' % i, + 'scope': entity, + 'program': gsoc2009, + }) + + # Admin for the first org + if i == 0: + org_1_admin = OrgAdmin(**role_properties) + org_1_admin.put() + + # Only a mentor for the second org + if i == 1: + org_1_mentor = Mentor(**role_properties) + org_1_mentor.put() role_properties.update({ 'key_name': 'google/ghop2009/melange/test',