app/soc/views/models/student_proposal.py
changeset 1758 e035f81d367b
parent 1752 255117ccd6a0
child 1779 cdd11aa8dbc7
equal deleted inserted replaced
1757:0f909179ccf2 1758:e035f81d367b
   361     template = params['public_template']
   361     template = params['public_template']
   362 
   362 
   363     return responses.respond(request, template, context=context)
   363     return responses.respond(request, template, context=context)
   364 
   364 
   365   def updatePublicContext(self, context, entity, params):
   365   def updatePublicContext(self, context, entity, params):
   366     """Updates the context for the public page with information from the entity
   366     """Updates the context for the public page with information from the entity.
   367 
   367 
   368     Args:
   368     Args:
   369       context: the context that should be updated
   369       context: the context that should be updated
   370       entity: a student proposal_entity used to set context
   370       entity: a student proposal_entity used to set context
   371       params: dict with params for the view using this context
   371       params: dict with params for the view using this context
   634 
   634 
   635     return responses.respond(request, template, context=context)
   635     return responses.respond(request, template, context=context)
   636 
   636 
   637   def _getDefaultReviewContext(self, entity, org_admin,
   637   def _getDefaultReviewContext(self, entity, org_admin,
   638                                mentor):
   638                                mentor):
   639     """Returns the default context for the review page
   639     """Returns the default context for the review page.
   640 
   640 
   641     Args:
   641     Args:
   642       entity: Student Proposal entity
   642       entity: Student Proposal entity
   643       org_admin: org admin entity for the current user/proposal (iff available)
   643       org_admin: org admin entity for the current user/proposal (iff available)
   644       mentor: mentor entity for the current user/proposal (iff available)
   644       mentor: mentor entity for the current user/proposal (iff available)