Exemplo n.º 1
0
def reject_proposal(proposal):
    """Reject a single proposal.
  """

    fields = {'status': 'rejected'}
    student_proposal_logic.updateEntityProperties(proposal,
                                                  fields,
                                                  silent=True)
Exemplo n.º 2
0
def accept_proposal(proposal):
  """Accept a single proposal.
  """

  fields = {
    'link_id': 't%i' % (int(time.time()*100)),
    'scope_path': proposal.org.key().id_or_name(),
    'scope': proposal.org,
    'program': proposal.program,
    'student': proposal.scope,
    'title': proposal.title,
    'abstract': proposal.abstract,
    'mentor': proposal.mentor,
    }

  project = student_project_logic.updateOrCreateFromFields(fields, silent=True)

  fields = {'status':'accepted'}
  student_proposal_logic.updateEntityProperties(proposal, fields, silent=True)
Exemplo n.º 3
0
def accept_proposal(proposal):
    """Accept a single proposal.
  """

    fields = {
        'link_id': 't%i' % (int(time.time() * 100)),
        'scope_path': proposal.org.key().id_or_name(),
        'scope': proposal.org,
        'program': proposal.program,
        'student': proposal.scope,
        'title': proposal.title,
        'abstract': proposal.abstract,
        'mentor': proposal.mentor,
    }

    project = student_project_logic.updateOrCreateFromFields(fields,
                                                             silent=True)

    fields = {'status': 'accepted'}
    student_proposal_logic.updateEntityProperties(proposal,
                                                  fields,
                                                  silent=True)
Exemplo n.º 4
0
def reject_proposal(proposal):
  """Reject a single proposal.
  """

  fields = {'status':'rejected'}
  student_proposal_logic.updateEntityProperties(proposal, fields, silent=True)