220 Commits

Author SHA1 Message Date
tjhunt
ac324e05ea MDL-16675 change callers to require_js to take advantage of the fact that callers no longer have to add $CFG->wwwroot themselves. 2008-09-25 06:40:52 +00:00
moodler
1369d8e172 Fixed some wording ... 2008-09-17 08:15:10 +00:00
mjollnir_
612a14c570 MDL-16520 - better handling of resuming exports in portfolio 2008-09-16 19:02:30 +00:00
mjollnir_
c737eed82f MDL-16535 - nicer messages about invalid exports 2008-09-16 17:50:55 +00:00
mjollnir_
abcd0fc53e MDL-16414 - make the handling of the download portfolio plugin nicer 2008-09-16 14:23:41 +00:00
mjollnir_
6b6f1c056d MDL-14591 - added security in file serving in pull portfolio plugins 2008-09-16 14:17:32 +00:00
mjollnir_
ff347f9978 MDL-16519 - added some more help text to box.net config page 2008-09-16 13:01:34 +00:00
mjollnir_
6e6cf8a366 MDL-16520 - print info about current export 2008-09-16 12:28:20 +00:00
mjollnir_
a476313639 MDL-16520 - make the already exporting portfolio error more user friendly 2008-09-16 10:41:17 +00:00
mjollnir_
447192d36b MDL-16521 - made folder optional in box.net portfolio transfer 2008-09-16 08:05:50 +00:00
mjollnir_
5d37f13c18 MDL-16521- 'share' parameter must be int for create folder in box.net 2008-09-16 08:00:11 +00:00
mjollnir_
f2e933bb09 MDL-16516 - fixing bad regression in mahara portfolio plugin 2008-09-15 17:14:51 +00:00
mjollnir_
13e7e76575 MDL-15760 - move boxnet folder creation from prepare_package into send_package 2008-09-15 14:01:57 +00:00
mjollnir_
fae696850a MDL-15362 - make sure we log the transfer on an xmlrpc request in mahara plugin 2008-09-12 15:32:14 +00:00
mjollnir_
37f03ea00b MDL-15666 - change all the portfolio plugins and callers to use exceptions
rather than relying on return values (send_package and prepare_package)

move zipping of temporary files into the exporter class so it can be overridden during unit tests

fix a small todo in mahara plugin
2008-09-12 11:22:15 +00:00
dongsheng
539b3d13d5 MDL-15488
1. Move flickr lib to lib/flickrlib.php
2. Create a new flickr plugin for public access, the original one will be
a personal repository, user need to login to access his/her own photos.
2008-09-12 03:32:31 +00:00
mjollnir_
fd64f09831 MDL-16422 add option to share files and new folders in box.net portfolio plugin 2008-09-11 14:13:58 +00:00
mjollnir_
0d06b6fda7 MDL-16423 - big refactor of the way callers interact with the portfolio code
added two new contract methods to the caller class, load_data and expected_callbackargs (static)
this means that the base class is the only place that needs a constructor
and that no data loading happens in the constructor
this in turn means we can check callback argument validity much more lightly

also completely remoted portfolio_add_button function and replaced with a class
as the argument list was getting out of control.  it's now much more readable.
2008-09-11 13:42:58 +00:00
mjollnir_
2e6a355ddb MDL-15760 - fix teeny notice-causing bug in box.net portfolio plugin 2008-09-11 13:38:22 +00:00
mjollnir_
354c9a5014 MDL-16414 - backing out earlier patch to try and fix this 2008-09-10 13:51:23 +00:00
mjollnir_
3d7fe06982 MDL-16414 - make the download plugin just redirect to the file url 2008-09-10 13:07:16 +00:00
mjollnir_
9b69a0ce56 MDL-16406 - trying to mitigate box.net problems slightly. 2008-09-10 12:04:30 +00:00
mjollnir_
dd0f962c21 MDL-15760 - removing out of date comment in boxnet portfolio plugin 2008-09-10 11:03:25 +00:00
dongsheng
615a28597e MDL-16403
1. move boxnet lib to moodle lib folder
2. fix a notice
2008-09-10 03:10:42 +00:00
mjollnir_
53aa4841c4 MDL-15760 improvements to create folder handling in box.net portfolio plugin 2008-09-09 21:03:37 +00:00
mjollnir_
237d80e06e MDL-16341 - flickr plugin should allow only one instance to be configured 2008-09-09 13:32:48 +00:00
mjollnir_
2f6bd2a9a7 MDL-15362 - localised mnet server fault strings and added size to send_content_ready
so mahara can check user quotas earlier in the transfer
2008-09-09 09:01:31 +00:00
mjollnir_
0a15415458 MDL-14591 - fix up call to exporter->get_base_filearea 2008-09-08 13:47:39 +00:00
mjollnir_
87fcac8d78 MDL-14591 - split portfoliolib into logical parts for better readability
Especially as some of the functions shared by base classes (portfolio plugin vs caller) were the same
it was getting a bit unweildy to have all this in one file.
2008-09-08 13:44:36 +00:00
mjollnir_
ea0de12f10 MDL-16360 - added support for mime-style subformat detection for portfolio supported formats
works well with flickr plugin (tested by uploading an image as a forum attachment and being offered flickr plugin but not for normal attachments)
2008-09-05 17:07:22 +00:00
mjollnir_
432ad8bf3b MDL-15777 - better handling of integration with file api in portfolio mahara plugin 2008-09-05 12:42:27 +00:00
mjollnir_
89e12bd5a6 MDL-16353 - help for boxnet portfolio plugin admin config 2008-09-05 12:39:17 +00:00
mjollnir_
9f3ef2238d MDL-14591 - fixed some comments and changed some print_errors to exceptions in portfolio/add 2008-09-04 10:32:17 +00:00
mjollnir_
0f71f48bcb MDL-14591 - added a get_name static method to portfolio plugins and use this as a default title for adding new instances.
also fixed a small bug in 'cleanup' function. nico - your flickr plugin is missing a string for the name
2008-09-02 16:21:14 +00:00
mjollnir_
b0482154d8 MDL-16180 - better checking of mnet support in mahara portfolio plugin (and removed unnecessary sanity check code that's handled by the main portfolio api) 2008-09-02 15:43:55 +00:00
mjollnir_
7254f56ef6 MDL-16180 - make sure mnet auth is enabled in mahara portfolio plugin sanity check 2008-09-02 15:28:25 +00:00
mjollnir_
aae8cfdc5f MDL-15362 - better error checking in mahara portfolio plugin 2008-09-02 10:32:16 +00:00
mjollnir_
1c59721175 MDL-15362 - send sha1 of entire zipfile to mahara, not just contents 2008-09-01 14:36:12 +00:00
mjollnir_
aed2937f43 MDL-15362 - misc improvements to mahara portfolio plugin 2008-09-01 14:01:29 +00:00
mjollnir_
d5dfe1b361 MDL-15362 - better robustness in wakeup
MDL-14591 - fixed a bug in portfolio queued transport (not saving updates)
2008-08-30 16:37:40 +00:00
mjollnir_
254f2d0534 MDL-15362 - mahara portfolio plugin.
currently the code on the mahara side is in the mahoodle-phase2 branch. it'll be merged into head shortly and should be in 1.1 which is going to alpha next week
2008-08-30 11:39:43 +00:00
nicolasconnault
75d226d74d MDL-15666 Generating test data on-the-fly using the generator! 2008-08-29 14:46:55 +00:00
mjollnir_
2eb07e7904 MDL-14591 - misc improvements to portfolio api 2008-08-29 12:36:56 +00:00
nicolasconnault
7e95408b01 MDL-15666 MDL-16177
Refactored the generator script into proper Object Oriented code. It can now be used as a CLI tool, as a web form or as an included library with a function call. Stub implementation is demonstrated in portfolio unit tests.
2008-08-29 08:01:55 +00:00
skodak
90658eefb0 MDL-16166 centralised enabling of subsystems, fixed some warnings and general cleanup 2008-08-26 05:45:07 +00:00
mjollnir_
4dc67f1e92 MDL-15768 - set userobject in the caller before checking permissions. 2008-08-22 16:35:26 +00:00
mjollnir_
5012851256 MDL-14591 - fixups related to cancelling requests and reawakening them 2008-08-22 13:25:53 +00:00
mjollnir_
beb4ac1a5d MDL-14591 - better security when reawakening an interupted export 2008-08-20 15:58:29 +00:00
mjollnir_
349242a31d MDL-16127 - smarter handling of supported formats in callers 2008-08-20 13:30:37 +00:00
mjollnir_
3403520190 MDL-16134 - exception handling in portfolio code 2008-08-19 14:20:32 +00:00