Anonymous avatar Anonymous committed a9cb46e

Gap: Removing two files not ready for VCS.

Comments (0)

Files changed (2)


-<map version="0.8.0">
-<!-- To view this file, download free mind mapping software FreeMind from -->
-<node CREATED="1238206272171" ID="Freemind_Link_709574700" MODIFIED="1238206334625" TEXT="TracGViz">
-<node CREATED="1241143748671" ID="_" MODIFIED="1241143758781" POSITION="right" TEXT="TracLinks">
-<node CREATED="1241143759890" ID="Freemind_Link_1778377561" MODIFIED="1241143767093" TEXT="Google Spreadsheets">
-<node CREATED="1241143774203" ID="Freemind_Link_1787616121" MODIFIED="1241143910062" TEXT="Basic syntax"/>
-<node CREATED="1241143788953" ID="Freemind_Link_892477203" MODIFIED="1241143807515" TEXT="Selecting rows"/>
-<node CREATED="1241143807968" ID="Freemind_Link_1613548852" MODIFIED="1241143818296" TEXT="Header"/>
-<node CREATED="1241143824046" ID="Freemind_Link_719579543" MODIFIED="1241143946328" TEXT="iGoogleGadget">
-<node CREATED="1241143948593" ID="Freemind_Link_1500056872" MODIFIED="1241143983375" TEXT="GViz gadget data source"/>
-<node CREATED="1241144020796" ID="Freemind_Link_1658560106" MODIFIED="1241144022156" TEXT="Google Apps Reporting Visualization API "/>
-<node CREATED="1241144026093" ID="Freemind_Link_544164706" MODIFIED="1241144034296" TEXT="Standard visualizations"/>


-#!/usr/bin/env python
-# -*- coding: UTF-8 -*-
-# Copyright 2009-2011 Olemis Lang <olemis at>
-#   Licensed under the Apache License, Version 2.0 (the "License");
-#   you may not use this file except in compliance with the License.
-#   You may obtain a copy of the License at
-#   Unless required by applicable law or agreed to in writing, software
-#   distributed under the License is distributed on an "AS IS" BASIS,
-#   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-#   See the License for the specific language governing permissions and
-#   limitations under the License.
-"""Embed Youtube players and widgets using WikiFormatting.
-from trac.core import Interface, Component, ExtensionPoint, \
-        implements, TracError
-from trac.config import Option
-from trac.mimeview.api import Context
-from trac.util import get_pkginfo
-from trac.web.api import IRequestHandler, RequestDone
-from pkg_resources import resource_string, resource_filename
-from trac.env import IEnvironmentSetupParticipant
-from trac.perm import IPermissionRequestor
-from trac.web.api import IRequestHandler
-from import ITemplateProvider, add_stylesheet
-from import IWikiSyntaxProvider, parse_args
-from import WikiMacroBase
-from import Formatter
-from genshi.core import Markup
-from genshi.builder import tag, Element
-__all__ = ('YoutubeEmbeddedPlayer',)
-class YoutubeEmbeddedPlayer(WikiMacroBase):
-    """TODO
-    """
-    # TODO: Reuse iGoogleGadget's method. Refactor both these methods
-    # to be in `utils` module
-    @staticmethod
-    def resolve_link_url(formatter, link_text):
-        """Resolve a TracLinks expression.
-        @param link_text the TracLinks expression.
-        @return the location (i.e. URL) this link is pointing to.
-        """
-        req, env, ctx = formatter.req, formatter.env, formatter.context
-        abs_ref, href = (req or env).abs_href, (req or env).href
-        lf = FirstTracLinkFormatter(env, ctx)
-        lf.format(link_text)
-        return lf.first_link
-    MACRO_DEFAULTS = dict(
-            title='', width=320, height=200, output='js',
-            lang='en_US', country='ALL',
-            border=r"#ffffff|1px,1px solid black|1px,1px" \
-                        " solid black|0px,1px black"
-            )
-    def expand_macro(self, formatter, name, contents):
-        _, args = parse_args(contents)
-        self.log.debug('IG: iGoogleGadgetMacro -> args = %s', args)
-        url = self.resolve_link_url(formatter, args.get('url', ''))
-        if not url:
-            raise TracError("Unknown gadget : 'url' argument " \
-                            "is either wrong or missing")
-        del args['url']
-        defaults = self.MACRO_DEFAULTS
-        spec_args = dict([arg, args.pop(arg, defval)] 
-                        for arg, defval in defaults.iteritems())
-        spec_args['w'] = spec_args.pop('width')
-        spec_args['h'] = spec_args.pop('height')
-        border = self.resolve_link_url(formatter, spec_args['border'])
-        if border:
-            spec_args['border'] = border
-        gadget_params = dict(chain([('url', url), ('synd', 'open')],
-                (('up_' + k, v) for k, v in args.iteritems()), # user preferences ;)
-                spec_args.iteritems()))
-        url = urlunparse(['http', '', '/ig/ifr', '', \
-                        urlencode(gadget_params), ''])
-        self.log.debug("IG: Gadget preferences %s", gadget_params)
-        return Markup('<script src="%s"></script>' % (url,))
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.