parameters: (self, field, REQUEST=None)
docstring: Returns list of javascript needed by the widget
docstring_summary: Returns list of javascript needed by the widget
docstring_tokens: Returns list of javascript needed by the widget
function: def get_javascript_list(self, field, REQUEST=None):
      """
      Returns list of javascript needed by the widget
      """
      if field.get_value('js_enabled'):
        video_player = field.get_value('video_player')
        context = self.getContext(field, REQUEST)
        if video_player == 'html5_video':
          # XXX Instead of harcoding library name
          # it should be better to call a python script, as
          # it is done on type base method.
          return ['%s/html5media.min.js' % context.portal_url()]
        elif video_player == 'flowplayer':
          return ['%s/flowplayer.min.js' % context.portal_url()]
      else:
        return []
function_tokens: def get_javascript_list ( self , field , REQUEST = None ) : if field . get_value ( 'js_enabled' ) : video_player = field . get_value ( 'video_player' ) context = self . getContext ( field , REQUEST ) if video_player == 'html5_video' : # XXX Instead of harcoding library name # it should be better to call a python script, as # it is done on type base method. return [ '%s/html5media.min.js' % context . portal_url ( ) ] elif video_player == 'flowplayer' : return [ '%s/flowplayer.min.js' % context . portal_url ( ) ] else : return [ ]