app/soc/logic/models/organization.py
changeset 1623 8b70d6bb3f8f
parent 1609 cd285bc524f1
child 2160 3f9dd37d98a8
equal deleted inserted replaced
1622:1ecd37ddc145 1623:8b70d6bb3f8f
    25 
    25 
    26 from soc.logic.models import base
    26 from soc.logic.models import base
    27 from soc.logic.models import group
    27 from soc.logic.models import group
    28 from soc.logic.models import org_app as org_app_logic
    28 from soc.logic.models import org_app as org_app_logic
    29 from soc.logic.models import program as program_logic
    29 from soc.logic.models import program as program_logic
    30 from soc.logic.models import rankerroot as ranker_root_logic
       
    31 from soc.logic.models import request as request_logic
    30 from soc.logic.models import request as request_logic
       
    31 from soc.logic.models.ranker_root import logic as ranker_root_logic
    32 
    32 
    33 import soc.models.group
    33 import soc.models.group
    34 import soc.models.organization
    34 import soc.models.organization
    35 
    35 
    36 class Logic(group.Logic):
    36 class Logic(group.Logic):
    50   getKeyValuesFromFields = base.Logic.getKeyValuesFromFields
    50   getKeyValuesFromFields = base.Logic.getKeyValuesFromFields
    51   getKeyFieldNames = base.Logic.getKeyFieldNames
    51   getKeyFieldNames = base.Logic.getKeyFieldNames
    52 
    52 
    53 
    53 
    54   def _onCreate(self, entity):
    54   def _onCreate(self, entity):
    55     """Invites the group admin and backup admin and creates a rankerroot entity.
    55     """Invites the group admin and backup admin and creates a RankerRoot entity.
    56     """
    56     """
    57 
    57 
    58     from soc.models import student_proposal
    58     from soc.models import student_proposal
    59 
    59 
    60     # create a new ranker
    60     # create a new ranker
    61     ranker_root_logic.logic.create(student_proposal.DEF_RANKER_NAME, entity,
    61     ranker_root_logic.create(student_proposal.DEF_RANKER_NAME, entity,
    62         student_proposal.DEF_SCORE, 100)
    62         student_proposal.DEF_SCORE, 100)
    63 
    63 
    64     fields = {
    64     fields = {
    65         'link_id': entity.link_id,
    65         'link_id': entity.link_id,
    66         'scope_path': entity.scope_path
    66         'scope_path': entity.scope_path