diff -r ddef5428d3c9 -r cd285bc524f1 app/soc/logic/models/organization.py --- a/app/soc/logic/models/organization.py Tue Mar 03 22:45:32 2009 +0000 +++ b/app/soc/logic/models/organization.py Tue Mar 03 22:47:44 2009 +0000 @@ -27,12 +27,12 @@ from soc.logic.models import group from soc.logic.models import org_app as org_app_logic from soc.logic.models import program as program_logic +from soc.logic.models import rankerroot as ranker_root_logic from soc.logic.models import request as request_logic import soc.models.group import soc.models.organization - class Logic(group.Logic): """Logic methods for the Organization model. """ @@ -52,9 +52,15 @@ def _onCreate(self, entity): - """Invites the group admin and backup admin. + """Invites the group admin and backup admin and creates a rankerroot entity. """ + from soc.models import student_proposal + + # create a new ranker + ranker_root_logic.logic.create(student_proposal.DEF_RANKER_NAME, entity, + student_proposal.DEF_SCORE, 100) + fields = { 'link_id': entity.link_id, 'scope_path': entity.scope_path