Commit graph

435 commits

Author SHA1 Message Date
toyomoyo
71dd89ff09 fixing missing $ 2006-09-26 01:50:17 +00:00
toyomoyo
4c81f5511e adding roles support for restore 2006-09-26 01:43:07 +00:00
toyomoyo
3f1c7233c7 restore is NOT WORKING!!! role assignment and capability overrides are not in 2006-09-25 09:10:19 +00:00
sam_marshall
a82e9bc3bb Added feature to blocks (and restorelib) so that blocks get a method call (default does nothing) after they are restored. This allows blocks to change their settings if necessary in respect of the new course roll-forward 'restore and change start date' feature that Al implemented recently. The core blocks happen not to store dates anyway so don't need this, but contributed blocks may well do. 2006-09-21 12:07:15 +00:00
skodak
6124048972 major whitespace cleanup - fixed tabs 2006-09-20 20:31:09 +00:00
moodler
0e1cc9070b Fixed a some debugging statements 2006-09-18 13:24:45 +00:00
thompson697
c3b307b777 Initial work on Roll Forwards - Restore from previous semester (ongoing MDL-5532)
* Add fields to restore form to enable changes to Short Name, Full Name and Start Date
* Start Date offset added to Restore process
* Created Restorelog file in Course files area
2006-09-13 09:40:55 +00:00
toyomoyo
51792df056 adding capabilities 2006-09-08 08:46:26 +00:00
toyomoyo
ec7a8b7999 adding capabilities 2006-09-07 08:57:56 +00:00
moodler
67a3fac51f Added new field 'ajax' to user table, to store AJAX preference 2006-08-28 06:41:05 +00:00
vyshane
7f6301c464 We need the newly created course_module id to be passed to the restore
functions of the modules. We need this now for the forum module to convert
forums backed up in 1.6 to use roles upon restore in 1.7. However, this might
be needed for other modules as well if they need conversion to the roles
system.
2006-08-25 02:37:54 +00:00
martinlanghoff
cb6f407365 Course restore - Restrict shortname to <= 15 characters, like the database table.
Author: Donal McMullan <donal@catalyst.net.nz>
2006-07-18 03:35:02 +00:00
skodak
15a6cf334f Bug #6099 - Restore alternatively failing on data module - fixed status codes of module restore process; merged from MOODLE_16_STABLE 2006-07-13 15:38:03 +00:00
skodak
4e060ab972 Bug #6067 - The restore process behaves differently depending on which module contains the absolute links; merged from MOODLE_16_STABLE 2006-07-11 10:01:33 +00:00
tjhunt
ff1b2fadbe Fix restore notice. Merged from MOODLE_16_STABLE. 2006-06-12 15:37:05 +00:00
tjhunt
f801c7e028 Fix notices when you restore a course with no parent or child courses. Merged from MOODLE_16_STABLE. 2006-06-06 17:27:15 +00:00
stronk7
2efeb14832 course report xxxx actions now are supported on restore. Bug 5714.
(http://moodle.org/bugs/bug.php?op=show&bugid=5714)

Merged from MOODLE_16_STABLE
2006-06-04 00:03:12 +00:00
stronk7
410c459db0 And some more (the last) notices out! Bug 5713.
(http://moodle.org/bugs/bug.php?op=show&bugid=5713)

Merged from MOODLE_16_STABLE
2006-06-03 20:18:02 +00:00
stronk7
e8b8ab9f7b course_modules->deleted and user->guid are now out.
(they disappeared from DB ages ago)

Merged from MOODLE_16_STABLE
2006-05-23 22:06:58 +00:00
moodler
c4292470ba Add a warning when trying to restore a pre-1.6 backup on a
1.6 Unicode Moodle, with a link to the docs.
2006-05-03 02:00:32 +00:00
stronk7
9fe25ab4f1 Diference between moodle.xml file not found and moodle.xml file
incorrect at restore time. Bug 5334.
(http://moodle.org/bugs/bug.php?op=show&bugid=5334)
2006-04-25 22:55:29 +00:00
stronk7
b0a8b898f9 Difference between copy, the verb and copy, the noun, because they
are different in a lot of languages. Bug 5172.
(http://moodle.org/bugs/bug.php?op=show&bugid=5172)
2006-04-12 21:53:45 +00:00
stronk7
23407fb76b htmlentities() to s() 2006-04-11 15:34:29 +00:00
stronk7
2070370cfa Typo. 2006-03-28 23:31:12 +00:00
sam_marshall
f95310d224 Corrected line that would cause restore_create_modules to return True if the first module fails to restore, but the second succeeds. (Whereas it would already be False if the first succeeds, but second fails.) 2006-03-13 16:32:22 +00:00
gustav_delius
12fcd27da6 Some work on question restore code, not complete 2006-03-13 00:18:38 +00:00
gustav_delius
32a189d636 More renamings to separate questions from quiz. Some other small fixes. 2006-03-12 21:17:42 +00:00
skodak
25580a01bc finally now the restore should work and with correct unicode related coding style, sorry 2006-03-07 19:53:56 +00:00
skodak
fd5ca378e6 fixed UTF-8 restore problems caused by utf8_restore 2006-03-03 22:22:07 +00:00
stronk7
0df0a87214 Now course shortname is searched too, to avoid duplicates over it.
Bug 4607
(http://moodle.org/bugs/bug.php?op=show&bugid=4607)

Merged from MOODLE_15_STABLE
2006-01-19 00:23:01 +00:00
mjollnir_
f90666aa5c Abstracted a bit of the restore procedure to allow for silent restoring.
Added new function, import_backup_file_silently
Changed everything that prints stuff to check for a constant first.
Backup_flush checks a different constant, this is so that output can still
get flushed to the browser when necessary but not print <li>s everywhere.
Please test this!
2006-01-15 21:09:13 +00:00
mjollnir_
1ecea97679 Granular backup & restore:
This patch allows the much requested selection of individual instances of modules within a course to backup and restore.
It needs A LOT of testing and probably some prettyifying too.
2006-01-13 03:45:31 +00:00
stronk7
d0fad6f1ae Fixed one important bug in restore of gradebook that was
preventing it to finish in a lot of situations.
(http://moodle.org/mod/forum/discuss.php?d=31461)

Merged from MOODLE_15_STABLE
2005-10-16 11:32:57 +00:00
mjollnir_
212f79a5e9 Fix to bug 4026 and 3913. Credit: jjg7 at humboldt dot edu 2005-09-08 21:30:42 +00:00
stronk7
f718493562 Now course-guest, user-login and user-logout
log actions are restored properly.
Plus some problem with double &amp; entities solved.
Part of bug 3582.
(http://moodle.org/bugs/bug.php?op=show&bugid=3852)

Merged from MOODLE_15_STABLE
2005-08-03 19:04:05 +00:00
moodler
f2e34253c3 Removing and re-adding currency support in courses 2005-07-22 17:19:52 +00:00
moodler
f5e1319ec3 Merged SC139 from stable 2005-07-12 08:00:51 +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
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
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
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
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
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
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
moodler
b345a30f35 Added support for trackforums 2005-04-25 18:45:21 +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
2332688f43 One copy/paste typo and a problem restoring to existing courses solved. 2005-04-22 00:55:04 +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
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