upiq / teamspace-planning

QI TeamSpace planning materials and project tracking tools
MIT License
0 stars 0 forks source link

Update wildcard.media, support collective.celery, remove plone.app.async #2

Closed seanupton closed 7 years ago

seanupton commented 7 years ago

We need to create a celery async worker (zope instance) on qits2 that uses:

wildcard.media becomes test scenario for using, configuring Celery and collective.celery -- once this is done, we can look at running asynchronous handlers for form save of multi-record forms (data point computation).

JavaScript timestamp hyperlink shim

(function ($) {
  var hash = window.location.hash.slice(1),
      isVideoContent = $('body').hasClass('portaltype-wildcardvideo');
  if (isVideoContent && hash) {
      var parts = hash.split(':'),
          min = (parts.length) ? parseInt(parts[0], 10) : 0,
          sec = (parts.length > 1) ? parseInt(parts[1], 10) : 0,
          rawSec = min * 60 + sec,
          video = $('video.active');
      if (video.length && !isNan(rawSec)) {
          video[0].setCurrentTime(rawSec);
      }
  }
}(jQuery));
seanupton commented 7 years ago

Closed with comment that updated scope involves: