Hello,
We are trying to integrate a tool we have with Moodle, and so far LTI
looks like the best bet for us. However there are two requisites we'd
like to fulfill:
1) We'd like to support Moodle from version 1.9
2) We'd like to report grades back to Moodle
So, I've been experimenting with the latest version (from the
Mercurial repository) of basiclti4moodle in a Moodle 1.9.10
installation (with the IMS' reference implementation of LTI 1.1 PHP
provider). Unfortunately, it seems that I am getting just about the
same errors that someone already had and were supposedly fixed. (See
http://groups.google.com/group/moodle-blti/browse_thread/thread/d16d9fdd98cc8eea
.) Details follow.
I started by looking at the code and database trying to find out what
is going on. First thing I noticed is that in the 'basiclti' database
table, the 'acceptgrades' field seems to be always 0. When I, as
administrator, say that I always want grades sent back to Moodle, what
changes is the 'instructorchoiceaccpetgrades' field. As a result, I
always get a "Not permitted" error when trying to return grades to
Moodle.
As a first experiment, I patched the code so that it tests only the
'instructorchoiceaccpetgrades' field, and this time the error I got
was an "Invalid consumer". I checked the database again and noticed
that the fields 'resourcekey' and 'password' (again, in the 'basiclti'
table) were blank.
I tried to manually (using MySQL admin tools, outside of Moodle) set
these fields to the appropriate values. After that, I get a success
("Grade updated") message, but when logging as as teacher and checking
the grades, I don't see the grade I sent.
So, do you have any suggestions for me? I am doing something wrong?
If you can't check these problems yourselves right now, I'd be glad to
at least have some advice to solve them myself. I have some time
allocated to work on this, but since I am new to both Moodle and LTI,
any suggestion can save me a lot of time (and give me a lot of
confidence that I am following the right path).
Thanks a lot!
LMB