288 Commits

Author SHA1 Message Date
stronk7
91c59b920c Bump. timeaccess (students and teachers) working. 2003-10-27 17:26:08 +00:00
stronk7
dabf73b44a timeaccess (students and teachers) included in backup/restore. :-) 2003-10-27 17:23:43 +00:00
stronk7
54849831c2 Bump :-) 2003-10-19 23:04:19 +00:00
stronk7
142a6a46ca Take out more notices in restore process. Undefined variables, mainly. 2003-10-14 17:26:37 +00:00
stronk7
e3713e1a31 Take out more notices in restore process. Undefined variables, mainly. 2003-10-14 17:06:58 +00:00
stronk7
0e232d1841 Take out some notices !! :-) 2003-10-13 22:45:36 +00:00
stronk7
f654deea11 Now, when copying files/folders, CFG->directorypermissions is forced
(previously permissions were copied from original)
2003-10-13 22:44:41 +00:00
stronk7
4119844902 Now scales users are in backup too. See bug 824.
Closing it in some hours.
2003-10-08 07:35:53 +00:00
moodler
d497a2a2fb Don't throw an error if users aren't found - just print a notice. 2003-10-07 14:02:32 +00:00
moodler
e23defdb12 Not having any users in a backup is not necessarily an error. 2003-10-07 14:01:23 +00:00
moodler
8c02baf617 If there aren't any users, don't do anything. 2003-10-07 14:00:09 +00:00
moodler
9501b8f5ad Added notifications right through the backup when errors occur. 2003-10-07 13:59:15 +00:00
stronk7
6ecc3ea8d3 Now course->maxbytes is supported in backup/restore. 2003-10-07 11:58:56 +00:00
stronk7
519ed08a44 Up abit to solve one category issue. 2003-09-23 16:51:57 +00:00
stronk7
46f1f7822d Now, to restore course category do this:
- Check if (category_id, category_name) exists.
- Check if (category_name) exists.
- Check if category_id = 1 exists.
- Create a new, initially invisible category withe the info in backup-file.

This solves a issue when restoring to a new course and category_id 1
had been removed !!
2003-09-23 16:40:44 +00:00
stronk7
57129544d1 Updated a bit (only date) 2003-09-23 00:00:00 +00:00
stronk7
bd96236e86 Solved two possibe bugs:
- Restoring to courses without section 0 (manually deleted).
    - Restoring to sections without mods and null values in its sequence field.
Thanks to Janne Mikkonen...
2003-09-22 08:30:22 +00:00
stronk7
1becf68da2 Small typo :-) 2003-09-18 19:28:05 +00:00
stronk7
bb5eb662d0 Labels, attendances and glosaries finished.
Updated a bit info in STATUS.txt
2003-09-18 18:52:40 +00:00
stronk7
3f6cc68f6a Now glossaries are included too.
And backup filename is editable.
2003-09-18 17:48:24 +00:00
stronk7
11db6f92a2 Now more characters are replaced in the backup filename.
And it's editable in the backup proccess, too.
Bug #763 closed.
2003-09-18 17:43:52 +00:00
stronk7
0611af101d Now, "needed" users are included in backup/restore when
"course users" are selected.  This uses the xxxx_get_participants()
function in every module.
This solves an issue about info in modules belonging to
unenrolled users (Bug #692 closed).
Mantain compatibility with old backups (1.1 and 1.1.1).
Updated version to "1.2 development".
Included support to "label" module (by Martin)
2003-09-14 21:43:34 +00:00
moodler
aac94fd0cc New field on course_modules called "indent" ... this is an integer
that tells us how far to indent the activity when it is displayed.

This gives us some more flexibility on the course outline to
arrange things as we might like them, into subtopics etc

Backup/restore is updated as well.

There is also a bit more robustness in course/mod.php
2003-09-14 16:31:33 +00:00
les_kopari
1930ab3694 Oracle tables, etc converted from mysql. 2003-09-13 07:43:55 +00:00
moodler
145cb8f9ab More short tags 2003-09-11 13:21:56 +00:00
moodler
76eac7a58d FIxed some short PHP tags 2003-09-09 08:38:24 +00:00
paca70
d150f5b476 Quick (untested) fix to make table and index creation work. 2003-08-28 18:24:00 +00:00
stronk7
3b16f21626 Ready !! :-) 2003-08-28 00:50:11 +00:00
stronk7
202ba3902e Now STAMP fiel is supported in backup & restore.
If it exists in backup-file used, else, old search-by-name is used.
When inserting new categories, stamp is filled it it doesn't exist.
Updated version to 1.1 Beta +++ !!
2003-08-27 17:09:01 +00:00
stronk7
461da6bdb6 Now existing categories are used only if their publish
field is set to yes. Else, a new "local" category is created.
Added some lines of code to mantain old compatibility when detecting
existing questions (do it by name if the stamp is not found) and insert
the stamp too !!
Please, test.
2003-08-27 00:40:14 +00:00
stronk7
d04983d8a3 Now restoring workshops are working too !!
Now all is ready to be 1.1 Beta 1.
Congratulations everybody !!
Anyway, some polish must be done, friends...
2003-08-25 22:40:38 +00:00
stronk7
6252f5dcd3 Now workshops backup are included too !!
Only one step to Beta !! (workshop restore)
2003-08-25 19:56:42 +00:00
moodler
eb06f902f4 Undoing one of the less then brilliant changes I did earlier today to Eloy's code 2003-08-25 15:47:37 +00:00
moodler
830ce8241b Some fixes for robustness (make sure variables exist before using them
because it flags errors when in debug mode).

Also, when specifying array values by name use quotes around the name

 eg  $array['value'] instead of $array[value]

Finally, I changed the way user restoring works (slightly).  Before, if a
restored user was found to be a course creator or an admin, then this
status was restored.  I don't think this is a good idea - it could lead
to security problems when copying a backup from one site to another,
or if that person's status has changed since the backup was made.
I think it's best to only restore what is actually part of the course,
ie teacher or student.

If this broke anything else let me know!
2003-08-25 01:44:01 +00:00
stronk7
fb2fcf3af5 Added some optional_variables to avoid some NOTICES 2003-08-24 14:46:52 +00:00
stronk7
300ae26c2d Ooops I commited some debug source code in previous
versions. Going back. Sorry.
2003-08-23 17:40:27 +00:00
stronk7
41923e7511 Solved one problem when copying empty directories. 2003-08-23 17:33:34 +00:00
stronk7
bbc69d99c1 Changed one notify 2003-08-23 17:02:20 +00:00
stronk7
1923285635 Now stamp and version are fully supported in backup/restore.
The process look for category, stamp and version to calculate
when to create a question or use a existing one.
This avoid duplicates in RANDOM and RANDOMSAMATCH qtypes.
2003-08-23 15:21:58 +00:00
stronk7
a057e13d1f Up to 0.8.9 alpha.
Now multianswer questions are working too.
Too complicated !!
2003-08-23 00:36:08 +00:00
moodler
ae5f8de620 Added some more error messages when restoring 2003-08-22 13:20:06 +00:00
stronk7
6a0e7bafd4 XML support 2003-08-21 22:54:47 +00:00
moodler
e6ea5c0664 Fixed some bad Postgres SQL that I made! :-) 2003-08-20 12:09:15 +00:00
moodler
fff79722e5 A new course field called "showgrades" which allows the teacher to
turn the display of the grade book on and off.
2003-08-20 07:32:24 +00:00
stronk7
93e9a4c9cd Some minor changes to restore scales in existing course
(avoid some duplications)
2003-08-18 13:07:02 +00:00
stronk7
6466b6bb56 Forgot to change one line !! :-) 2003-08-18 00:04:38 +00:00
stronk7
42f1ff47b4 Scales are now supported in backup/restore.
Updated version to 0.8.8 alpha. Please test.
2003-08-18 00:00:22 +00:00
stronk7
823e087163 Started work with scales !! 2003-08-17 20:17:41 +00:00
stronk7
35a14ba021 Now editall and timemodified are in
backup/restore process
2003-08-16 11:31:32 +00:00
moodler
63bcc9b55b Use isteacheredit instead of isteacher 2003-08-16 06:37:06 +00:00