PKN!62EGG-INFO/dependency_links.txt PKN!6Kj844EGG-INFO/entry_points.txt[trac.plugins] ohlohbadge.macro = ohlohbadge.macro PKN!6=bbEGG-INFO/PKG-INFOMetadata-Version: 1.0 Name: TracOhlohBadge Version: 1.0 Summary: A Trac wiki macro to display Ohlo project badges. Home-page: http://trac-hacks.org/wiki/OhlohBadgeMacro Author: Noah Kantrowitz Author-email: noah+pypi@coderanger.net License: BSD Description: UNKNOWN Keywords: trac plugin macro ohloh badge Platform: UNKNOWN Classifier: Framework :: Trac PKN!6KEGG-INFO/SOURCES.txtsetup.py TracOhlohBadge.egg-info/PKG-INFO TracOhlohBadge.egg-info/SOURCES.txt TracOhlohBadge.egg-info/dependency_links.txt TracOhlohBadge.egg-info/entry_points.txt TracOhlohBadge.egg-info/top_level.txt ohlohbadge/__init__.py ohlohbadge/macro.py PKN!6n EGG-INFO/top_level.txtohlohbadge PKN!62EGG-INFO/zip-safe PKF6ohlohbadge/__init__.pyPKN!6+ ohlohbadge/__init__.pyc; ŢFc@sdS(N((((s8build/bdist.darwin-8.9.1-i386/egg/ohlohbadge/__init__.pys?sPKF6766ohlohbadge/macro.py# Created by Noah Kantrowitz on 2007-07-15. # Copyright (c) 2007 Noah Kantrowitz. All rights reserved. from trac.core import * from trac.wiki.macros import WikiMacroBase from trac.wiki.formatter import system_message from trac.util.html import html as tag class OhlohBadgeMacro(WikiMacroBase): """A small maco for showing Ohloh (http://ohloh.net) statistics badges.""" SCRIPT_LOCATION = 'http://www.ohloh.net/projects/%s;badge_js' def render_macro(self, req, name, content): content = content.strip() if not content.isdigit(): return system_message('Invalid Ohloh project ID', '%s is not a number'%content) return tag.script('', src=self.SCRIPT_LOCATION%content, type='text/javascript') PKN!6;;;ohlohbadge/macro.pyc; ŢFc@sHdkTdklZdklZdklZdefdYZdS((s*(s WikiMacroBase(ssystem_message(shtmlsOhlohBadgeMacrocBstZdZdZdZRS(sDA small maco for showing Ohloh (http://ohloh.net) statistics badges.s)http://www.ohloh.net/projects/%s;badge_jscCsS|i}|i otdd|Sntidd|i|ddSdS(NsInvalid Ohloh project IDs%s is not a numbersssrcstypestext/javascript(scontentsstripsisdigitssystem_messagestagsscriptsselfsSCRIPT_LOCATION(sselfsreqsnamescontent((s5build/bdist.darwin-8.9.1-i386/egg/ohlohbadge/macro.pys render_macros (s__name__s __module__s__doc__sSCRIPT_LOCATIONs render_macro(((s5build/bdist.darwin-8.9.1-i386/egg/ohlohbadge/macro.pysOhlohBadgeMacro s N( s trac.corestrac.wiki.macross WikiMacroBasestrac.wiki.formatterssystem_messagestrac.util.htmlshtmlstagsOhlohBadgeMacro(s WikiMacroBasestagssystem_messagesOhlohBadgeMacro((s5build/bdist.darwin-8.9.1-i386/egg/ohlohbadge/macro.pys?s   PKN!62EGG-INFO/dependency_links.txtPKN!6Kj844<EGG-INFO/entry_points.txtPKN!6=bbEGG-INFO/PKG-INFOPKN!6K8EGG-INFO/SOURCES.txtPKN!6n _EGG-INFO/top_level.txtPKN!62EGG-INFO/zip-safePKF6ohlohbadge/__init__.pyPKN!6+ ohlohbadge/__init__.pycPKF6766ohlohbadge/macro.pyPKN!6;;;ohlohbadge/macro.pycPK K