# HG changeset patch # User Pawel Solyga # Date 1243295936 -7200 # Node ID 33ff03da52b61e6d5dab67f7cb1e83a271da566a # Parent 73448b71aa077143250687a53ed5c3e6ef91c0e0 Link id and key name fixes for Organization And OrgApplication in seed_db. diff -r 73448b71aa07 -r 33ff03da52b6 app/soc/models/seed_db.py --- a/app/soc/models/seed_db.py Mon May 25 16:23:16 2009 -0700 +++ b/app/soc/models/seed_db.py Tue May 26 01:58:56 2009 +0200 @@ -139,7 +139,7 @@ def seed(self, i, entities=None, current_user=None, gsoc2009=None): properties = { - 'key_name': 'google/gsoc2009/%04d' % i, + 'key_name': 'google/gsoc2009/org_%04d' % i, 'link_id': 'org_%04d' % i, 'name': 'Organization %04d' % i, 'short_name': 'Org %04d' % i, @@ -197,8 +197,8 @@ def seed(self, i, entities=None, current_user=None, gsoc2009=None, status=None): properties = { - 'key_name': 'google/gsoc2009/org_app_%04d' % i, - 'link_id': 'org_app_%04d' % i, + 'key_name': 'google/gsoc2009/org_%04d' % i, + 'link_id': 'org_%04d' % i, 'name': 'Org App %04d' % i, 'scope_path': 'google/gsoc2009', 'scope': gsoc2009, @@ -374,8 +374,8 @@ } for i in range(10): - org_app_properties['key_name'] = 'google/gsoc2009/org_app_%04d' % i - org_app_properties['link_id'] = 'org_app_%04d' % i + org_app_properties['key_name'] = 'google/gsoc2009/org_%04d' % i + org_app_properties['link_id'] = 'org_%04d' % i org_app_properties['name'] = 'Org App %04d' % i entity = OrgApplication(**org_app_properties) entity.put() @@ -531,8 +531,8 @@ raise Error('Run seed_db first') properties = { - 'key_name': 'google/gsoc2009/org_app_%d' % i, - 'link_id': 'org_app_%d' % i, + 'key_name': 'google/gsoc2009/org_%d' % i, + 'link_id': 'org_%d' % i, 'name': 'Org App %d' % i, 'scope_path': 'google/gsoc2009', 'scope': gsoc2009,