Ejemplo n.º 1
0
 def _getGrade(self, entity, eval, *args):
     if self.record:
         return dashboard.colorize(self.record.grade, "Pass", "Fail")
     else:
         return "N/A"
Ejemplo n.º 2
0
 def _getStatus(self, entity, eval, *args):
     eval_ent = self.evals.get(eval)
     self.record = getEvalRecord(GSoCGradingProjectSurveyRecord, eval_ent, entity)
     return dashboard.colorize(bool(self.record), "Submitted", "Not submitted")