555 Commits

Author SHA1 Message Date
stronk7
000b822e54 Now restore code for quizzes is enabled again. pre15 restore
seems to work and 1.5 backup 1.5 is in being done by Gustav's team.
2005-05-22 19:25:48 +00:00
stronk7
cf416cc429 Advance a bit... 2005-05-20 23:17:48 +00:00
stronk7
6472f6357f Prevent multiple execution of restore. Bug 3291
(http://moodle.org/bugs/bug.php?op=show&bugid=3291)

Merged from MOODLE_14_STABLE
2005-05-18 18:07:02 +00:00
stronk7
c2546fdd62 Updating changes a bit... 2005-05-17 23:46:39 +00:00
stronk7
aacf918b5d Bump to 1.5 Beta's Day :-) 2005-05-17 22:51:41 +00:00
stronk7
ef9b35a01b Tabs are out 2005-05-16 19:38:21 +00:00
stronk7
f623680bab Added the restore_get_best_quiz_category() function
user to look for, at restore time, the best quiz
category to be used (i.e. the existing category with
the same stamp belonging to the same course or,
alternatively, belogns to other course but is published
and the user has editing rights).

It replaces the old-old stuff at restore code and
recent simplification that was producing some problems.
2005-05-14 23:32:32 +00:00
gustav_delius
2e1111c5b1 Towards a Moodle 1.5 quiz backup and restore. Not tested yet.
I moved some quiz speicific functions out of backup/backuplib.php into mod/quiz/backuplib.php
2005-05-10 09:37:09 +00:00
stronk7
e61aa22042 Version Updated to a Rounded Number.
We'll use this number to determinate the code to be used
in quiz restore making these assumptions:

- backup_version < 2005043000, old quiz version.
- backup_version >=2005043000, new quiz version.

This will cover near every backup in the world, only
some backups generated last week will be wrong but I
think we can ignore them (we are in alpha stage).
2005-05-09 19:18:37 +00:00
stronk7
43768eeadc Updated with latest news... 2005-05-09 17:24:31 +00:00
stronk7
adc7ade8c6 Disable temporary the restore of quiz questions and attempts
to avoid moodlers filling their DBs (not always test servers!)
with non-consistent data.

Can be enabled by setting $CFG->enablerestorequiz = true;

(while working on it both Gustav's team and I, obviously this will be
removed once stabilished)
2005-05-09 13:33:18 +00:00
stronk7
3efaec46d8 Updated. 2005-04-27 22:07:02 +00:00
moodler
b345a30f35 Added support for trackforums 2005-04-25 18:45:21 +00:00
stronk7
ee00f4ffb2 Some more things to do... 2005-04-24 22:53:53 +00:00
stronk7
55603b0c6a Added one more task 2005-04-24 17:25:52 +00:00
stronk7
04592aec06 Now event->repeatid is included in backup/restore. Thanks for
your support Jon!
Bump to 1.5 beta
2005-04-22 23:49:48 +00:00
stronk7
649472cf5d Updated a bit. event->repeatid included. 2005-04-22 00:57:16 +00:00
stronk7
2332688f43 One copy/paste typo and a problem restoring to existing courses solved. 2005-04-22 00:55:04 +00:00
stronk7
2191bf1fa2 Although there are some work todo, this practically can be considered beta! 2005-04-22 00:29:22 +00:00
stronk7
868e94e763 Now gradebook is restored completely. Logic says:
- If destination course is using 'simple' gradebook, restore nothing.
- If destination course has letters defined, don't restore backup letters.
- If one category exists in the course (by name) it's reused.
- Items belonging to non-restored modules are skipped.
- If users aren't restored, exceptions are skipped.

Test, test, test... :-)
2005-04-22 00:26:22 +00:00
stronk7
12b255b9ed Some table->id fields added to backup of gradebook.
I need them in restore (and I always forget it!)
2005-04-21 16:24:26 +00:00
stronk7
e19d817eb3 Now backup of 1.5 gradebooks is working (restore coming soon). Features are:
- It's automatic. No setting for it. Does it sound ok?
 - Any info related to non-exported modules is skipped.
 - Any info related to non-exported users is skipped.
2005-04-19 23:21:45 +00:00
stronk7
75766456f9 Now all the wiki formated texts are converted to markdown
by the restore process. Such conversion is performed for
every backup file prior to 2005041100.
Wiki internal links are dinamically changed and then,
converted to Markdown.
2005-04-12 23:40:40 +00:00
stronk7
805788218b Converting wiki to markdown in old (<2005041100) courses.
First step. Launcher created.
2005-04-12 16:10:47 +00:00
stronk7
a819238cb2 Bump!
quiz module backup and restore is now working (although some important
bugs remains in the module, creating strange versions and hidden questions).

Only some minor final things need to be finished to be 1.5 ready! B-)
2005-03-20 23:44:00 +00:00
stronk7
ee8940dece Updated. Next step: Quiz module. 2005-03-16 17:28:09 +00:00
stronk7
e4fa95c287 Bump! Workshops are done. 2005-03-13 00:14:47 +00:00
stronk7
80117b519d Now group images are in backup & restore 2005-03-07 23:40:25 +00:00
stronk7
bbab80d1fc Some minor XML indentation, some changes in the XML structure and
some important bugs. Now everything seems to work properly with
lessons and backup/restore.

Only 1 pending change: Should the answer->grade field in old backups
  go to the new score field??????
2005-03-07 01:32:05 +00:00
moodler
3ac6807ee1 Added backup/restore support for the new fields I added today 2005-03-05 10:31:58 +00:00
stronk7
19d5a7544f Support for IM (users table) 2005-03-05 10:22:54 +00:00
moodler
83fb58dd02 FIx for windows I think 2005-03-05 03:58:13 +00:00
stronk7
7b759a6138 One more thing to do. :-) 2005-03-05 00:49:57 +00:00
stronk7
70cc4fc602 Added recent quiz module changes 2005-03-04 00:46:09 +00:00
moodler
12d2e1e7b7 A few small fixes 2005-03-03 14:02:30 +00:00
stronk7
4e5f28b6a1 Now scheduled backup emails set the priotity header if something was wrong.
Bug 2647.
(http://moodle.org/bugs/bug.php?op=show&bugid=2647)
2005-03-02 18:09:58 +00:00
defacer
c0a570cef0 Fixed handling of activity blocks when restore does not include that type of activity. 2005-02-28 16:03:05 +00:00
defacer
1fa95628f6 Backup and restore for block instances within activities!
Made using the new goodies from the new pagelib, some really useful advice
from "Backup Man" Eloy and lots of love.
2005-02-28 04:50:36 +00:00
defacer
9bee8b701e Fixing a bug when restoring a course with events but not users. 2005-02-28 00:55:52 +00:00
stronk7
f594143b56 Now the Wiki module seems to be working fine. But I've marked it as
"PROG" (progress) because I haven't been able to reproduce the load
of binary data directly to DB reported by some moodlers in forums.

I've created bug 2634 to see if somebody can point me in the correct
direction to reproduce it.
2005-02-27 19:47:42 +00:00
stronk7
d0b95287c5 Some $ME are now out!
Merged from MOODLE_14_STABLE
2005-02-27 02:13:18 +00:00
martinlanghoff
97cfb9352c Merged from MOODLE_14_STABLE - Backing out bad sortorder fix in restorelib -- actually we didn't need one. 2005-02-24 21:14:32 +00:00
martinlanghoff
5875a2f3ca Merged from MOODLE_14_STABLE - Fix problem when restoring courses to empty categories 2005-02-23 04:49:15 +00:00
stronk7
f495e05f85 Now parent and sortorder are supported at backup & restore. 2005-02-20 18:03:38 +00:00
stronk7
7fae497cdc Now parent and sortorder is supported at restore too.
The tree is automatically rebuilt using new ids if
necessary.
2005-02-20 18:01:40 +00:00
stronk7
c98cb6bc57 Now quiz_categories' parent and sortoreder is supported in backup.
A mechanish to detect all the ancestors and to recover orphaned
categories is now running ar backup time to force backups to be consistent.
2005-02-20 17:19:04 +00:00
stronk7
1f16e05b9a Now quiz->questionsperpage in in backup & restore 2005-02-19 01:25:19 +00:00
stronk7
22bb909b57 Now forum_read is included in backup & restore 2005-02-18 19:05:09 +00:00
stronk7
7142bf514d Changed a forbidden null detected by the new AdoDB libraries. 2005-02-18 16:57:58 +00:00
stronk7
136aed566b Updated 2005-02-18 01:30:37 +00:00