Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

MDL-39414 portfolio: don't queue google portfolio exports

This is a bit of an ugly way of saying 'I dont support queued exports'.

The google plugins need a valid user session in order to export to the
google services, thereforce we are forcing the export to be interactive
and not queued through cron, as this wont work in the current
implmenetation.

It's possible we could add offline access to the plugins, but I don't
believe it is worth the benefit for the additional complexity.
  • Loading branch information...
commit ff016927657f41ba1ec1f8894fe13e60a5de6569 1 parent 5e00b9a
Dan Poltawski danpoltawski authored
5 portfolio/googledocs/lib.php
@@ -44,8 +44,9 @@ public function get_interactive_continue_url() {
44 44 }
45 45
46 46 public function expected_time($callertime) {
47   - // We trust what the portfolio says.
48   - return $callertime;
  47 + // We're forcing this to be run 'interactively' because the plugin
  48 + // does not support running in cron.
  49 + return PORTFOLIO_TIME_LOW;
49 50 }
50 51
51 52 public function send_package() {
4 portfolio/picasa/lib.php
@@ -44,7 +44,9 @@ public function get_interactive_continue_url() {
44 44 }
45 45
46 46 public function expected_time($callertime) {
47   - return $callertime;
  47 + // We're forcing this to be run 'interactively' because the plugin
  48 + // does not support running in cron.
  49 + return PORTFOLIO_TIME_LOW;
48 50 }
49 51
50 52 public function send_package() {

0 comments on commit ff01692

Please sign in to comment.
Something went wrong with that request. Please try again.