PKT9“×2EGG-INFO/dependency_links.txt PKT9,Ÿ(D22EGG-INFO/entry_points.txt[trac.plugins] newsflash.macro = newsflash.macro PKT9ę2°ŒmmEGG-INFO/PKG-INFOMetadata-Version: 1.0 Name: TracNewsFlash Version: 1.0.1 Summary: A Trac macro to make a colored box. Home-page: http://trac-hacks.org/wiki/NewsFlashMacro Author: Noah Kantrowitz Author-email: noah@coderanger.net License: BSD Description: Notes ===== A simple macro the create a colored sidebar. Configuration ============= To enable the plugin:: [components] newsflash.* = enabled Example ======= An example usage:: {{{ #!NewsFlash = Version 2.0 = Version 2.0 has been released. Check out the [wiki:Download] page. = New website = Our project has a new website. Welcome! }}} Keywords: trac plugin macro news flash Platform: UNKNOWN Classifier: Framework :: Trac Classifier: Development Status :: 5 - Production/Stable Classifier: Environment :: Web Environment Classifier: License :: OSI Approved :: BSD License Classifier: Natural Language :: English Classifier: Operating System :: OS Independent Classifier: Programming Language :: Python PKT9ӑšEGG-INFO/requires.txtTracPKT9vy,<<EGG-INFO/SOURCES.txtREADME setup.py TracNewsFlash.egg-info/PKG-INFO TracNewsFlash.egg-info/SOURCES.txt TracNewsFlash.egg-info/dependency_links.txt TracNewsFlash.egg-info/entry_points.txt TracNewsFlash.egg-info/requires.txt TracNewsFlash.egg-info/top_level.txt newsflash/__init__.py newsflash/macro.py newsflash/htdocs/css/newsflash.css PKT9´ňö[ EGG-INFO/top_level.txtnewsflash PKT9“×2EGG-INFO/zip-safe PKR9newsflash/__init__.pyPKT9cb9,ˆˆnewsflash/__init__.pyc;ň Ě­Hc@sdS(N((((s8build/bdist.darwin-8.11.1-i386/egg/newsflash/__init__.pys?sPK+9ŐI-š==newsflash/macro.pyfrom trac.core import * from trac.web.chrome import ITemplateProvider, add_stylesheet from trac.wiki.api import IWikiMacroProvider from trac.wiki.formatter import format_to_html from trac.wiki.macros import WikiMacroBase from genshi import Markup from genshi.builder import tag from pkg_resources import resource_filename class NewsFlashMacro(WikiMacroBase): """Makes a colored box from the contents of the macro.""" implements(ITemplateProvider) # ITemplateProvider def get_templates_dirs(self): return [] def get_htdocs_dirs(self): yield 'newsflash', resource_filename(__name__, 'htdocs') # IWikiMacroProvier methods def expand_macro(self, formatter, name, content): add_stylesheet(formatter.req, 'newsflash/css/newsflash.css') return tag.div(format_to_html(self.env, formatter.context, content), class_='newsflash') class NewsFlashStartMacro(WikiMacroBase): """Start a newflash box.""" def expand_macro(self, formatter, name, content): add_stylesheet(formatter.req, 'newsflash/css/newsflash.css') return Markup('
') class NewsFlashEndMacro(WikiMacroBase): """End a newflash box.""" def expand_macro(self, formatter, name, content): return Markup('
') PKT9–Áš  newsflash/macro.pyc;ň ÁŻHc@sŽdkTdklZlZdklZdklZdkl Z dk l Z dk l Z dklZde fd „ƒYZd e fd „ƒYZd e fd „ƒYZdS((s*(sITemplateProvidersadd_stylesheet(sIWikiMacroProvider(sformat_to_html(s WikiMacroBase(sMarkup(stag(sresource_filenamesNewsFlashMacrocBs3tZdZeeƒd„Zd„Zd„ZRS(s3Makes a colored box from the contents of the macro.cCsgSdS(N((sself((s5build/bdist.darwin-8.11.1-i386/egg/newsflash/macro.pysget_templates_dirssccsdttdƒfVdS(Ns newsflashshtdocs(sresource_filenames__name__(sself((s5build/bdist.darwin-8.11.1-i386/egg/newsflash/macro.pysget_htdocs_dirsscCs9t|idƒtit|i|i|ƒddƒSdS(Nsnewsflash/css/newsflash.csssclass_s newsflash( sadd_stylesheets formattersreqstagsdivsformat_to_htmlsselfsenvscontextscontent(sselfs formattersnamescontent((s5build/bdist.darwin-8.11.1-i386/egg/newsflash/macro.pys expand_macros(s__name__s __module__s__doc__s implementssITemplateProvidersget_templates_dirssget_htdocs_dirss expand_macro(((s5build/bdist.darwin-8.11.1-i386/egg/newsflash/macro.pysNewsFlashMacro s    sNewsFlashStartMacrocBstZdZd„ZRS(sStart a newflash box.cCst|idƒtdƒSdS(Nsnewsflash/css/newsflash.csss
(sadd_stylesheets formattersreqsMarkup(sselfs formattersnamescontent((s5build/bdist.darwin-8.11.1-i386/egg/newsflash/macro.pys expand_macro s(s__name__s __module__s__doc__s expand_macro(((s5build/bdist.darwin-8.11.1-i386/egg/newsflash/macro.pysNewsFlashStartMacros sNewsFlashEndMacrocBstZdZd„ZRS(sEnd a newflash box.cCstdƒSdS(Ns
(sMarkup(sselfs formattersnamescontent((s5build/bdist.darwin-8.11.1-i386/egg/newsflash/macro.pys expand_macro(s(s__name__s __module__s__doc__s expand_macro(((s5build/bdist.darwin-8.11.1-i386/egg/newsflash/macro.pysNewsFlashEndMacro%s N(s trac.corestrac.web.chromesITemplateProvidersadd_stylesheets trac.wiki.apisIWikiMacroProviderstrac.wiki.formattersformat_to_htmlstrac.wiki.macross WikiMacroBasesgenshisMarkupsgenshi.builderstags pkg_resourcessresource_filenamesNewsFlashMacrosNewsFlashStartMacrosNewsFlashEndMacro( sNewsFlashEndMacros WikiMacroBasesIWikiMacroProvidersNewsFlashMacrosadd_stylesheetsresource_filenamesITemplateProvidersNewsFlashStartMacrostagsformat_to_htmlsMarkup((s5build/bdist.darwin-8.11.1-i386/egg/newsflash/macro.pys?s      PKR9Óţ//"newsflash/htdocs/css/newsflash.cssdiv.newsflash { border: solid 2px #8f8; width: 400px; float: right; background: #dfd; font-size: 0.8em; margin: 0em; padding: 0.5em 1em 0.5em 1em; } div.newsflash h1 { font-size: 1.2em; padding: 0em; margin: 0em; } div.newsflash .post hr { display: none; } PKT9“×2¤EGG-INFO/dependency_links.txtPKT9,Ÿ(D22¤<EGG-INFO/entry_points.txtPKT9ę2°Œmm¤ĽEGG-INFO/PKG-INFOPKT9ӑš¤AEGG-INFO/requires.txtPKT9vy,<<¤xEGG-INFO/SOURCES.txtPKT9´ňö[ ¤ćEGG-INFO/top_level.txtPKT9“×2¤$EGG-INFO/zip-safePKR9¤Tnewsflash/__init__.pyPKT9cb9,ˆˆ¤‡newsflash/__init__.pycPK+9ŐI-š==¤Cnewsflash/macro.pyPKT9–Áš  ¤° newsflash/macro.pycPKR9Óţ//"¤önewsflash/htdocs/css/newsflash.cssPK 1e