481 Commits

Author SHA1 Message Date
stronk7
572248937e Now metacourse in supported in manual and scheduled backups. It can be configured
in both backups. Please check if the used structure and exported data has sense!
2005-02-04 14:33:51 +00:00
stronk7
85304b4053 More differences. 2005-02-03 23:27:52 +00:00
stronk7
6c5b28232f Not change at glossary, Code for allowprintview was there. :-) 2005-01-31 18:11:51 +00:00
defacer
b5039f5d15 Removing some diagnostic output that had been forgotten. 2005-01-31 03:47:14 +00:00
defacer
7542a4e574 Dropping the use of MOODLE_PAGE_COURSE <gasp>!
The new constant is PAGE_COURSE_VIEW, and it's more streamlined with the
new CSS-related ids for 1.5. There are great possibilities for the future
here, so we 're getting ready.

On the other hand, this has to be the ugliest hack I 've ever inflicted
on any program (look at pagelib.php). Thankfully it will only stay for just
a little while.
2005-01-31 02:18:15 +00:00
stronk7
14efbfc385 Nothing todo here. New fields were there! B-)
But I've spent sometime trying to simulate one exercise and
I haven't been able to do it. Probably my own stupidity, but
things didn't work as I expected! :-(
2005-01-30 22:49:24 +00:00
stronk7
626138c9b6 Added suppor for assignment->emailteachers 2005-01-30 19:03:46 +00:00
stronk7
8a792ed10f group->password is now supported 2005-01-30 12:12:06 +00:00
stronk7
57aad2a02a added support for:
- user->policyagreed:
        if the destination server is different, reset it
   - user_students->enrol and user_teachers->enrol
        if not set or the destination server is different, set it to $CFG->enrol
somethings should be modified in the rest of moodle:
    - update all the 'manual' entries to 'internal'
    - modify the enrol_teacher() to use $CFG->enrol by default
    - make every enrol method set this field properly.
    - perhaps, mark metadata users with a new value too.
2005-01-30 11:39:12 +00:00
stronk7
0964ad965b one more thing 2005-01-29 10:43:40 +00:00
stronk7
ad4f774cd4 THEME is out of this directory.
I hope to have done it correctly!
2005-01-28 00:01:20 +00:00
stronk7
96e76b6291 Two missing parameters added 2005-01-27 19:43:42 +00:00
stronk7
94df8a48c3 Now scheduled backup supports new blocks.
Moved blocks code to library.
Fixed a missing global preventing restore to work.
2005-01-27 19:07:51 +00:00
stronk7
98aadd386c Added metacourses to the list. It's the last but I'll try it the first! :-) 2005-01-27 16:30:21 +00:00
mjollnir_
873bf8758f Initial checkin for import course content functionality (uses backup/restore). Probably needs wording changes and new icon! Please test me *thoroughly*! 2005-01-27 02:35:10 +00:00
stronk7
12f7885b2b upgrading to 1.5
steps 1, 2 and 3 done.
2005-01-23 23:24:58 +00:00
stronk7
aeca84178b First TODO list to check/implement in 1.5. Just double-checking again now! 2005-01-23 17:16:10 +00:00
mjollnir_
075ff4698a Merged from MOODLE_14_STABLE: Adding slashes to backup_log.info as courses with an apostrophe in their fullname cause sql errors 2005-01-10 21:48:04 +00:00
stronk7
99f363bf66 Now backup names are cleaned completely, avoiding some problems
with translations and manually typed names with diacritics.
Thanks to Marian Zvalo!

Merged from MOODLE_14_STABLE
2004-12-19 16:18:10 +00:00
mjollnir_
68ba62d21a Merged from MOODLE_14_STABLE: Adding fix for idnumber duplication problem in restoring from backup discussed at http://moodle.org/mod/forum/discuss.php?d=16297 2004-12-17 03:04:24 +00:00
stronk7
b5104c34f1 Skipping empty categories in restore. They shouldn't exist but
I've received some examples of this these days.

Merged from MOODLE_14_STABLE
2004-12-10 18:27:53 +00:00
defacer
9b12850043 Fix for bug 2241:
I hope this time I got everything changed to the new Page interface! I 'm
really sorry for messing up and breaking new installations... :(

Also moved the only two functions of the API outside the page_base class.
2004-11-29 04:19:05 +00:00
stronk7
19479ebdfb Calculate NEXT course->sortorder in restore to avoid
sortorder grown always (by fix_course_sortorder()).

Merged from MOODLE_14_STABLE
2004-11-27 23:33:39 +00:00
mjollnir_
e6d1d120b1 Merged from MOODLE_14_STABLE: Changes to calls to get_courses to not get all fields 2004-11-22 05:41:14 +00:00
mjollnir_
b565bbdfe2 Merged from MOODLE_14_STABLE: Fixes in datalib and backuplib for postgres invalid sql 2004-11-22 04:24:30 +00:00
martinlanghoff
bce7197321 Merged from MOODLE_14_STABLE moodle--eduforge--1.3.3--patch-335 Now memory_limit can be overriden by higher config settings from php.ini, commandline, httpd.conf, .htaccess 2004-11-18 02:55:06 +00:00
defacer
f032aa7a5f MAJOR CHANGES:
--------------

Brand-new pagelib.php at your disposal! It slices, it dices, it makes your coffee.
It still doesn't understand women... Read the comments in pagelib.php for a first
impression. Feedback highly encouraged!

Blocks code has undergone significant changes to work with Pages. Flexibility is its
middle name, since I think (without having tried it) that adding e.g. a third
placeholder for "center" blocks in courses, with full support for moving around etc,
will now take about 15 lines of new or edited code. If you are not impressed yet, I
suggest watching a documentary on solar physics. :P

MINOR CHANGES:
--------------

Added instance_allow_config() in the blocks class hierarchy to supplement per-instance
configuration options. You can override it to return true and thus get configuration
amenities without allowing multiple instances.

Minor polishing to comments and documentation (whatever caught my eye was game).

Tightened up some code here and there by utilizing all the new features.

BUGFIXES:
---------

A bug in restore_execute.html caused hidden blocks to not be restored at all.
2004-11-08 19:36:07 +00:00
moodler
c1177e371f Fixed a comment without // at the start in block restoring 2004-11-04 08:12:33 +00:00
stronk7
0a23fdb759 Now courses are deleted from backup_courses when they have been
deleted from Moodle. See:
http://moodle.org/mod/forum/discuss.php?d=13633

Merged from MOODLE_14_STABLE
2004-11-04 00:10:33 +00:00
defacer
3ecf46a193 Blocks are now saved to and restored from course backups!
Backward compatibility is maintained, i.e. you can restore ANY version
backups without problems in 1.5. When "adding backup data to an existing
course", no blocks are added. I 'm not sure what the correct behavior
would be in this case.

When restoring a backup from Moodle <= 1.2, the new course SHOULD be given
default blocks when it is restored. I have not actually tested this, my
tests were with version 1.3 and 1.4 backup format.
2004-10-29 17:07:11 +00:00
stronk7
d752a8691f ZIP_METHOD included in backup for future tests at restore time. 2004-10-16 17:49:14 +00:00
stronk7
05f1bd8bca Not mandatory but I prefer to initialise it.
Merged from MOODLE_14_STABLE
2004-10-16 17:38:12 +00:00
stronk7
17841181b6 Now backup and restore are using central zip & unzip functions.
Merged from MOODLE_14_STABLE
2004-10-16 17:34:56 +00:00
stronk7
40385a0219 Syncronished with 14_STABLE. Bump to 1.4.2. 2004-10-16 16:11:18 +00:00
stronk7
e1f84e70da Order logs by creation order (id)
Merged from MOODLE_14_STABLE
2004-10-10 18:48:03 +00:00
stronk7
26082098d9 Use of cleardoubleslashes() added to the backup and restore functions.
They will be changed to calls to new, central zip and unzip functions.
(coming soon)

Merged from MOODLE_14_STABLE
2004-10-09 23:19:53 +00:00
stronk7
d72fdff5ee admin/xxx is now using sesskey.
Merged from MOODLE_14_STABLE
2004-10-02 22:46:11 +00:00
stronk7
ed187d7506 Sync with 14_STABLE version. Not needed but, for now I prefer
both being the same.
2004-10-01 09:27:32 +00:00
stronk7
eb811077de Bump (sync with 14_STABLE) 2004-10-01 07:31:44 +00:00
stronk7
70bbfd3186 Scheduled backup improvements:
- Old (>4 hour) directories are deleted at the beginning of the
  execution, so the disk full problem should be out!
- There are 2 types of errors:
    - Controlled errors: The backup process finish although something
        has been wrong.
    - Uncontrolled errors: The backup process dies (memory fault, apache
        problem, electric problem...:-)).
- Now scheduled backup is able to detect previous uncontrolled errors to
  avoid repeating the same course always. It'll be deferred to the next
  execution.
- Every time that a backup cycle has finished, admins will receive an email
  with the summary of the execution.
- The 'ERROR' text will be present in email subjects if something was wrong.

With this, all should be ok (I hope).

Merged from MOODLE_14_STABLE
2004-09-24 19:20:32 +00:00
stronk7
41bac9d0af The get_directory_list() function was being executed with
directories excluded so backup_delete_old_dirs() was no
working fine! This should delete REALLY old dirs in sites
with problems in their scheduled backup.

Merged from MOODLE_14_STABLE
2004-09-24 11:51:12 +00:00
moodler
39cac7b6c0 Merged fixes from STABLE that allow creator to restore to any course 2004-09-23 11:34:47 +00:00
mjollnir_
8930f90071 Logging new file paths from backup/restore. Since the files don't have any metadata, we're logging against the logged in user (ie, the teacher restoring the course).
These patches are maintained in an publicly accessible Arch repository, see: http://lists.eduforge.org/cgi-bin/archzoom.cgi/arch-eduforge@catalyst.net.nz--2004-MIRROR/moodle--eduforge--1.3.3

Index of arch patches in this commit:

arch-eduforge@catalyst.net.nz--2004/moodle--eduforge--1.3.3--patch-85
    2004-09-20 05:33:06 GMT
    Penny Leach <penny@catalyst.net.nz>
    adding log entries when restoring files
arch-eduforge@catalyst.net.nz--2004/moodle--eduforge--1.3.3--patch-86
    2004-09-20 05:34:59 GMT
    Penny Leach <penny@catalyst.net.nz>
    fix related to logging uploads

Full logs:

Revision: moodle--eduforge--1.3.3--patch-85
Archive: arch-eduforge@catalyst.net.nz--2004
Creator: Penny Leach <penny@catalyst.net.nz>
Date: Mon Sep 20 17:33:06 NZST 2004
Standard-date: 2004-09-20 05:33:06 GMT
Modified-files: backup/lib.php
New-patches: arch-eduforge@catalyst.net.nz--2004/moodle--eduforge--1.3.3--patch-85
Summary: adding log entries when restoring files
Keywords:

Revision: moodle--eduforge--1.3.3--patch-86
Archive: arch-eduforge@catalyst.net.nz--2004
Creator: Penny Leach <penny@catalyst.net.nz>
Date: Mon Sep 20 17:34:59 NZST 2004
Standard-date: 2004-09-20 05:34:59 GMT
Modified-files: lib/uploadlib.php
New-patches: arch-eduforge@catalyst.net.nz--2004/moodle--eduforge--1.3.3--patch-86
Summary: fix related to logging uploads
Keywords:
2004-09-20 05:51:42 +00:00
gustav_delius
839f2456bb XHTML compliance
- fixed (hopefully) all <img> tags
- global replace on <br> to <br />
- &amp; in URLs
- got the forum module XHTML compliant
Julian Sedding
2004-09-16 17:13:57 +00:00
moodler
b797605898 Merged XML UTF-8 fixed from stable (see bug 1927) 2004-09-13 08:17:09 +00:00
gustav_delius
7ef0797dea some fixes for XHTML compliance 2004-09-12 01:34:24 +00:00
stronk7
f74fd81898 Increase memory_limit to 128 in backups & restore.
Merged from MOODLE_14_STABLE
2004-09-08 22:47:19 +00:00
stronk7
2c0f08b3df Changed to plural (directorypath-->directorypaths)
Merged from MOODLE_14_STABLE
2004-09-08 18:11:43 +00:00
stronk7
388c5e96c3 Added a help button about directory paths...
Merged from MOODLE_14_STABLE
2004-09-08 16:49:47 +00:00
stronk7
6faaf9a6c9 Now user->guid is in backup & restore
Merged some pending changes from STABLE too.
2004-09-05 10:19:03 +00:00