[Building Sakai] Using the Gradebook API

Matthew Jones jonespm at umich.edu
Wed Aug 4 05:28:43 PDT 2010


Hi Chuck,

I'm not sure if you're actually talking about removing the grade from the
gradebook or just clearing out the grade. I remember that mneme was using
the "null" idea you mentioned to clear out the grade and it was working
pre-2.6. I had to fix it when we went into production so it still worked.
The code was calling.

updateExternalAssessmentScore(String gradebookUid, String externalId, String
studentUid, Double points)

and was getting an NPE when the points were 'null'. Previously (and after
the patch in 2.6.2) it clears out the points. Perhaps what you're seeing
with your NPE is a bug, perhaps this is the function you're looking for?

http://jira.sakaiproject.org/browse/SAK-16963

On Wed, Aug 4, 2010 at 8:13 AM, csev <csev at umich.edu> wrote:

> Actually, I am at a much lower level, writing a Sakai web service to
> read/set/delete grades, the webservice talks to this API:
>
>
> https://source.sakaiproject.org/svn/edu-services/trunk/gradebook-service/api/src/java/org/sakaiproject/service/gradebook/shared/GradebookService.java
>
> So we really want to delete the score (i.e. set it to empty and are wasy
> past asking "are you sure" :).
>
> If you look at
>
> setAssignmentScoreComment
>
> versus
>
> setAssignmentScoreString
>
> And see the difference in treatment of the score/comment.
>
> I guess I will look at the GB tool to see how it handles the "emptying" of
> a cell.
>
> /Chuck
>
> On Aug 4, 2010, at 12:04 PM, John Norman wrote:
>
> > I don't really know enough about how this code works, but if there is
> /any/ chance the null entry could be created by user error, I would hope a
> confirmation dialogue (you are about to delete this grading information -
> continue/cancel?) would be useful. I suspect you are working at a lower
> level so feel free to ignore me.
>
> _______________________________________________
> sakai-dev mailing list
> sakai-dev at collab.sakaiproject.org
> http://collab.sakaiproject.org/mailman/listinfo/sakai-dev
>
> TO UNSUBSCRIBE: send email to
> sakai-dev-unsubscribe at collab.sakaiproject.org with a subject of
> "unsubscribe"
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://collab.sakaiproject.org/pipermail/sakai-dev/attachments/20100804/75cb670b/attachment.html 


More information about the sakai-dev mailing list