Issue Details (XML | Word | Printable)

Key: MDL-16587
Type: Bug Bug
Status: Open Open
Priority: Minor Minor
Assignee: Penny Leach
Reporter: Dan Poltawski
Votes: 0
Watchers: 0
Operations

Add/Edit UI Mockup to this issue
If you were logged in you would be able to see more operations.
Moodle

Would be useful if mixed content exports could specify multiple content types rather than just FORMAT_FILE

Created: 19/Sep/08 05:52 PM   Updated: 05/Jun/09 09:43 PM
Return to search
Component/s: Portfolio API
Affects Version/s: 2.0
Fix Version/s: None

Participants: Dan Poltawski and Penny Leach
Security Level: None
Affected Branches: MOODLE_20_STABLE


 Description  « Hide
For example, google docs can receive html/pdf and images. But not zip files.

So a forum thread with image attachments could be exported happily, but this is not possible by defaulting to FORMAT_FILE

 All   Comments   Change History   Version Control      Sort Order: Ascending order - Click to sort in descending order
Penny Leach added a comment - 19/Sep/08 09:41 PM
I had a brainstorm in my moleskine about this on the tube - Dan can we make a time to talk about it maybe using skype?

Dan Poltawski added a comment - 19/Sep/08 10:05 PM
Yep, sure, when?

Penny Leach added a comment - 19/Sep/08 10:14 PM
i'll ping you if i'm online over the weekend, i have a visitor so will be scarce, failing that monday will be ok for me.

Penny Leach added a comment - 12/Oct/08 01:32 AM
I'm just committing a large rework of the formats stuff into HEAD now which contains:

1. richhtml and plainhtml are split (the first contains attachments). Mahara is no longer gong to support richhtml as by moodle 2.0 we'll have LEAP which makes much more sense. This means that when attachments are sent to things like box.net they go into a folder.

2. The caller base has many new helper methods, and two member vars, singlefile and multifiles which subclasses should dump into. I will update docs about this.

Still TODO:

1. perform full mimecheck in the plugins and bail for a mismatch for singlefile, and warn the user if a mismatch for multifiles.
2. update box.net plugin to create subdirectories for site_files (for eg - richhtml format calls the subdirectory)

assignment, data mod & forum have been updated to use the new format stuff as these are the only ones really affected. chat, resource, glossary are all either some native file (uploaded resource, glossary csv) or plainhtml (chat).


mjollnir_ committed 16 files to 'Moodle CVS' - 12/Oct/08 01:33 AM
MDL-16587 bit of a large refactor of the portfolio formats. still more to come.
MODIFY mod/assignment/lib.php   Rev. 1.370    (+17 -28 lines)
MODIFY lib/portfolio/constants.php   Rev. 1.2    (+8 -2 lines)
MODIFY mod/forum/lib.php   Rev. 1.744    (+50 -62 lines)
MODIFY lib/portfolio/formats.php   Rev. 1.3    (+32 -2 lines)
MODIFY lib/portfolio/exporter.php   Rev. 1.12    (+18 -1 lines)
MODIFY mod/glossary/lib.php   Rev. 1.237    (+4 -4 lines)
MODIFY lib/portfoliolib.php   Rev. 1.66    (+22 -7 lines)
MODIFY mod/assignment/type/online/assignment.class.php   Rev. 1.67    (+3 -3 lines)
MODIFY mod/resource/lib.php   Rev. 1.105    (+3 -3 lines)
MODIFY mod/data/lib.php   Rev. 1.203    (+37 -24 lines)
MODIFY mod/assignment/type/upload/assignment.class.php   Rev. 1.65    (+2 -2 lines)
MODIFY portfolio/type/download/Attic/lib.php   Rev. 1.14    (+0 -7 lines)
MODIFY lang/en_utf8/portfolio.php   Rev. 1.33    (+2 -0 lines)
MODIFY mod/chat/lib.php   Rev. 1.129    (+3 -3 lines)
MODIFY lib/portfolio/caller.php   Rev. 1.3    (+91 -0 lines)
MODIFY lib/portfolio/plugin.php   Rev. 1.6    (+11 -1 lines)
Mitsuhiro Yoshida committed 2 files to 'Lang CVS' - 12/Oct/08 05:04 AM
MDL-16587 Translated new strings for portfolio.
MODIFY ja_utf8/portfolio.php   Rev. 1.27    (+3 -1 lines)
MODIFY ja_utf8/README   Rev. 1.838    (+1 -1 lines)
mjollnir_ committed 1 file to 'Moodle CVS' - 13/Oct/08 06:10 PM
MDL-16587: mod/forum portfolio implementation: fixed warning.
MODIFY mod/forum/lib.php   Rev. 1.745    (+1 -1 lines)
mjollnir_ committed 1 file to 'Moodle CVS' - 13/Oct/08 06:12 PM
MDL-16587: portfolio/caller base class - be more defensive when asked to do things with files
MODIFY lib/portfolio/caller.php   Rev. 1.4    (+3 -0 lines)
mjollnir_ committed 1 file to 'Moodle CVS' - 13/Oct/08 06:14 PM
MDL-16587 - portfolio/caller baseclass - new string for exception for missing files.
MODIFY lang/en_utf8/portfolio.php   Rev. 1.34    (+1 -0 lines)
mjollnir_ committed 1 file to 'Moodle CVS' - 13/Oct/08 06:20 PM
MDL-16587 & MDL-15666: portfolio unit test framework expanded to do 3d rather than 2d testing (caller + plugin + new: exportformat)
MODIFY lib/simpletest/portfolio_testclass.php   Rev. 1.7    (+27 -13 lines)
Mitsuhiro Yoshida committed 3 files to 'Lang CVS' - 13/Oct/08 11:31 PM
MDL-15680 Translated a new string for grade.
MDL-16587 Translated a new string for portfolio.
MODIFY ja_utf8/README   Rev. 1.839    (+1 -1 lines)
MODIFY ja_utf8/portfolio.php   Rev. 1.28    (+1 -0 lines)
MODIFY ja_utf8/grades.php   Rev. 1.142    (+2 -1 lines)
martignoni committed 1 file to 'Lang CVS' - 16/Oct/08 03:52 AM
MDL-16587 strings added
MODIFY fr_utf8/portfolio.php   Rev. 1.31    (+3 -1 lines)
martignoni committed 1 file to 'Lang CVS' - 16/Oct/08 03:53 AM
MDL-16587 new string
MODIFY fr_utf8/portfolio.php   Rev. 1.32    (+2 -1 lines)
mjollnir_ committed 4 files to 'Moodle CVS' - 12/Nov/08 04:54 AM
MDL-16587 portfolio export formats - support straight file export not just RICHHTML (html + attachments) , it doesn't make sense in things like box.net
MODIFY mod/forum/lib.php   Rev. 1.750    (+3 -3 lines)
MODIFY lang/en_utf8/portfolio.php   Rev. 1.35    (+2 -1 lines)
MODIFY portfolio/type/boxnet/Attic/lib.php   Rev. 1.27    (+4 -0 lines)
MODIFY mod/data/lib.php   Rev. 1.205    (+2 -2 lines)
Mitsuhiro Yoshida committed 1 file to 'Lang CVS' - 12/Nov/08 03:29 PM
MDL-16587 Translated new strings for portfolio export formats.
MODIFY ja_utf8/portfolio.php   Rev. 1.29    (+4 -2 lines)
martignoni committed 1 file to 'Lang CVS' - 17/Nov/08 01:03 AM
MDL-16587 new strings
MODIFY fr_utf8/portfolio.php   Rev. 1.34    (+3 -2 lines)
Penny Leach added a comment - 05/Jun/09 09:43 PM
Dan can we close this? I think the mime stuff was all done ages ago.