For advanced upload assignment, store file count of each submission
into assignment_submissions.numfiles
When counting submissions, if the assignment is open and tracking
drafts, only submissions which has send for marking are counted.
Otherwise, submissions which has numfiles > 0 are counted.
Also change a hardcoded 'submitted' to ASSIGNMENT_STATUS_SUBMITTED.
This patch was originally written by: Sunner Sun <sunner@gmail.com>.
I made some modifation to fixed count_real_submissions() query (ref: MDL-32207) in /mod/assignment/type/upload/assignment.class.php file
- added message provider to manage assignment's messaging
- user_preferences.name length changed form 50 to 255 due to long messaging preference names.
This new messaging system replaces all the various email_to_user() calls.
They are now replaced by events triggers, and the messages are then
processed centrally according to user preferences and sent to one or more
processors (email, popup, jabber etc...)
This code is not finished yet, a lot of work still has to be done on the
interface. However, the basic structure is there and should be working.
Luis and I will be reviewing and polishing this heavily in the next few weeks.
=======================================
WARNING: DEV IS CURRENTLY VERY UNSTABLE.
This is a mega-checkin of the new Roles system. A lot of changes have
been made in core and modules.
Currently there are a lot of rough edges and known problems. We are
working hard on these .. .the reason for getting this into HEAD at this
stage is enable us to move faster (our branch was diverging from HEAD
too much).
Please keep an eye on http://docs.moodle.org/en/Roles for current status
and information for developers on how to use the new Roles system.
============================
This new assignment module allows Plugin Assignment types. This should
allow a whole lot of new stuff to easily be placed in Moodle without
making the modules list longer for no good reason.
This checkin is still a really rough version that needs work on it.
Normally I would want it better than this to check in, but I need
to collaborate with Shane on the remaining code and CVS is the best
way.
Give it a day or two to settle in. :-)
This is the last thing I wanted to get into 1.5. Getting close now!!
Cheers!
Martin
block is constructed. A new function exists to pump these notes out
in a standard way : print_recent_activity_note.
Module dependencies also updated because of this.
(While I was at it I also turned the autologinguests off for most module pages, except on the index.php pages and the view.php pages for those modules that allow guests)
------------------------
Added a small new feature to the assignment module to alert teachers when
new emails come in. This feature adds one new field (which is tested) but
the operation of the new code has not been tested yet at all (apart from
PHP syntax) and very likely has bugs in it.
I'm checking this in so I can do tests on test.moodle.com which has email
set up properly.
I'm off to bed right now but if anyone else wants to test this feature
before tomorrow please do! :-)
While I'm rambling here in CVS, I need to have a good look soon at Pablo's work
on Assignment and see if I can merge it all in...