572 Commits

Author SHA1 Message Date
moodler
f5e1319ec3 Merged SC139 from stable 2005-07-12 08:00:51 +00:00
stronk7
bcba85618f Bump. New and improved relinking system available.
No changes at DB layer so I'm free to update the version
and maintain it syncronished with 15_STABLE, isn't it?

Merged from MOODLE_15_STABLE
2005-07-04 22:33:02 +00:00
stronk7
92f9357579 Improved automatic relinking in backup and restore. Credits go to skodak.
Complete refactoring of the system that was really awful (my fault!).
Now everything is in its place and working like a charm, making things really
easier to be implemented and amplied. Bug 3678
(http://moodle.org/bugs/bug.php?op=show&bugid=3678)
(http://moodle.org/mod/forum/discuss.php?d=26530)

Merged from MOODLE_15_STABLE
2005-07-04 17:48:59 +00:00
stronk7
1517803dd6 Now the restore form page is a bit more easy to use. Bug 1430.
(http://moodle.org/bugs/bug.php?op=show&bugid=1430)

Merged from MOODLE_15_STABLE
2005-06-29 18:25:50 +00:00
stronk7
b577ebc7d2 Now the restore form page is a bit more easy to use. Bug 1430.
(http://moodle.org/bugs/bug.php?op=show&bugid=1430)

Merged from MOODLE_15_STABLE
2005-06-29 16:58:33 +00:00
zibas
d97fc1834d Updated Readme 2005-06-23 13:56:48 +00:00
stronk7
2b41040945 Checking some fields because they were breaking restore of old courses.
Bug 3444
(http://moodle.org/bugs/bug.php?op=show&bugid=3444)
2005-06-19 18:29:33 +00:00
stronk7
804b151595 Now the cancel button goes to the course (or site) page. Bug 2817.
(http://moodle.org/bugs/bug.php?op=show&bugid=2817)

Merged from MOODLE_15_STABLE
2005-06-19 17:52:17 +00:00
mjollnir_
d27920b9ad Merged from MOODLE_15_STABLE Fix for bug 3508 -- only do the clam log on backup/restore for restoring course/user/group files, not for temp backup data 2005-06-16 02:33:42 +00:00
thepurpleblob
24d5bfff76 optional_variable() replaced with optional_param() 2005-06-15 09:46:19 +00:00
stronk7
4385c84859 Problems with 1.5Beta backups solved by Bobo. B-)
Merged from MOODLE_15_STABLE
2005-06-10 14:19:35 +00:00
stronk7
f65329a64f Fixed two typos (in one line!) :-o
Testing changes before commit is always interesting... :-P

Merged from MOODLE_15_STABLE
2005-06-09 16:34:09 +00:00
thepurpleblob
b78fbdac9d changes merged from STABLE 2005-06-09 14:04:38 +00:00
thepurpleblob
35a4a791c2 Merged from STABLE 2005-06-09 09:41:06 +00:00
stronk7
9a3725c22e Upgraded backup/restore TODO list. Only two points remain open:
- SCORM: restore. See bug 3404.
- QUIZ: 1.5 <=> 1.5 backup and restore. Gustav's team is polishing  it.

Bump to 1.5 (Final)

Merged from MOODLE_15_STABLE
2005-06-03 17:45:26 +00:00
stronk7
c098e8c503 Small typo, preventing group events to be restored properly.
Records in backup_ids table must use the name of the table
without the prefix as name. Bug 3360. Thanks Jon.
(http://moodle.org/bugs/bug.php?op=show&bugid=3360)

Merged from MOODLE_15_STABLE
2005-06-03 16:46:28 +00:00
zibas
0be73f6505 Applied the patch submitted with bug #3344. This fixes PHP5 issues while retaining PHP4 functionality.
Also altered the bb5.5 importer:
* Respecting certain "visible" flags
* Made the default course properties match the importer capabilities better
* Fixed the resource summaries
* Converting Bb "Staff Information"
2005-06-01 19:32:52 +00:00
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