Edgewall Software

Changes between Version 183 and Version 184 of MacroBazaar


Ignore:
Timestamp:
Oct 11, 2006, 3:19:54 AM (18 years ago)
Author:
Matthew Good
Comment:

replace absolute URLs with attachment: links

Legend:

Unmodified
Added
Removed
Modified
  • MacroBazaar

    v183 v184  
    4545Replacement that also handles the [wiki:MacroBazaar#WikiFile WikiFile] macro below.  Docs are inside the module @ the top.
    4646
    47 [[BR]]''Download:'' http://projects.edgewall.com/trac/attachment/wiki/MacroBazaar/Include.2.py
     47[[BR]]''Download:'' [attachment:Include.2.py]
    4848[[BR]]''By:'' csawyer@yumaed.org   --    ''Ver:'' 0.8
    4949
    50 [[BR]]''Download:'' http://projects.edgewall.com/trac/attachment/wiki/MacroBazaar/Include.3.py
     50[[BR]]''Download:'' [attachment:Include.3.py]
    5151[[BR]]''By:'' cbrant@gmail.com   --    ''Ver:'' 0.9.3
    5252
     
    6161
    6262''Version:'' >= 0.8
    63 [[BR]]''Download:'' http://projects.edgewall.com/trac/attachment/wiki/MacroBazaar/WikiInclude.py
     63[[BR]]''Download:'' [attachment:WikiInclude.py]
    6464
    6565''Version:'' >= 0.9
    66 [[BR]]''Download:'' http://projects.edgewall.com/trac/attachment/wiki/MacroBazaar/WikiInclude.2.py
     66[[BR]]''Download:'' [attachment:WikiInclude.2.py]
    6767[[BR]]''By:'' Vegard Eriksen  zyp at jvnv dot net
    6868
     
    9797
    9898
    99 ''Download:'' http://projects.edgewall.com/trac/attachment/wiki/MacroBazaar/WikiFile.py
     99''Download:'' [attachment:WikiFile.py]
    100100''By:'' Toni Brkic  toni.brkic at switchcore.com --    ''Required ver'' patch for #801 must be implemented
    101101
    102102=== !MimeInclude ===
    103103Inserts the output of an external URL, with an optional MIMEtype argument for rendering mode and colorization. See the examples in code docstring. Enjoy!
    104 [[BR]]''Download:'' http://projects.edgewall.com/trac/attachment/wiki/MacroBazaar/MimeInclude.py
     104[[BR]]''Download:'' [attachment:MimeInclude.py]
    105105[[BR]]''By:'' Carlo C8E Miron  <carlo.miron AT gmail.com> -- ''Ver:'' >= 0.8.1 (tested on Debian versions 0.8.1-2 until 0.8.4-1)
    106106
     
    125125I'd really like it to default to displaying backlinks to the current page when a page name isn't supplied, but, um, I have no idea how to do that. Suggestions greatly appreciated.
    126126[[BR]]
    127 ''Download:'' http://projects.edgewall.com/trac/attachment/wiki/MacroBazaar/BackLinks.py
     127''Download:'' [attachment:BackLinks.py]
    128128[[BR]]''By:'' Dan Hon <danhon+trac@gmail.com> -- ''Ver.'' >= 0.7.1
    129129
     
    133133}}}
    134134
    135 ''Download:'' http://projects.edgewall.com/trac/attachment/wiki/MacroBazaar/BackLinks.2.py patches the wikimacro to default to display backlinks to the current page if a page name is not specified.
     135''Download:'' [attachment:BackLinks.2.py] patches the wikimacro to default to display backlinks to the current page if a page name is not specified.
    136136[[BR]]''By:'' Muness Alrubaie <muness@gmail.com> -- ''Ver.'' >= 0.8
    137137
    138138Well, both those seem to have a bug: they will list pages for which at least one version linked to thispage, rather than just the latest version. So here's a fixed macro.
    139139
    140 ''Download:'' http://projects.edgewall.com/trac/attachment/wiki/MacroBazaar/BackLinks3.py patches the wikimacro to display only pages where the latest version links to the specified or current page.
     140''Download:'' [attachment:BackLinks3.py] patches the wikimacro to display only pages where the latest version links to the specified or current page.
    141141[[BR]]
    142142''By:'' Andrew Durdin <adurdin at gmail.com> -- ''Ver.'' >= 0.8
     
    146146Well, both those seem to have a bug: they will list pages for which at least one version linked to thispage, rather than just the latest version. So here's a fixed macro.
    147147
    148 ''Download:'' http://projects.edgewall.com/trac/attachment/wiki/MacroBazaar/BackLinks.3.py based on Andrew's fix displays only pages where the latest version explicitly links (i.e. no CamelCase, only {{{ [wiki:... ...]}}} links) to the specified or current page.
     148''Download:'' [attachment:BackLinks.3.py] based on Andrew's fix displays only pages where the latest version explicitly links (i.e. no CamelCase, only {{{ [wiki:... ...]}}} links) to the specified or current page.
    149149[[BR]]
    150150''By:'' Muness Alrubaie <muness@gmail.com> -- ''Ver.'' >= 0.8
    151151[[BR]]
    152152
    153 ''Download:'' http://projects.edgewall.com/trac/attachment/wiki/MacroBazaar/BackLinks.4.py based on Andrew's and Muness's fixes, displays pages where the latest version contains either a CamelCase link OR explicitly links (i.e.  {{{ [wiki:... ...]}}} links) to the specified or current page.
     153''Download:'' [attachment:BackLinks.4.py] based on Andrew's and Muness's fixes, displays pages where the latest version contains either a CamelCase link OR explicitly links (i.e.  {{{ [wiki:... ...]}}} links) to the specified or current page.
    154154[[BR]]
    155155''By:'' Ed Szynaka <trac@szynaka.com> -- ''Ver.'' >= 0.8
     
    170170}}}
    171171Add the Names "MyPage", "AndThisPageToo" and "WithThisPage" with the list of references to this page.
    172 ''Download:'' http://projects.edgewall.com/trac/attachment/wiki/MacroBazaar/AutoNav.2.py
     172''Download:'' [attachment:AutoNav.2.py]
    173173[[BR]]''By:'' Anders Jansson <anders dot jansson at kastanj dot net>
    174174
    175175Fixed a small bug in the page enumeration.
    176 ''Download:'' http://projects.edgewall.com/trac/attachment/wiki/MacroBazaar/AutoNav.3.py
     176''Download:'' [attachment:AutoNav.3.py]
    177177[[BR]]''By:'' anonymous
    178178
     
    181181Derived from TitleIndex.  Returns a list of sub-wiki entries.  A sub-wiki page is a page that is is deeper in the hierarchy than the current page.  e.g. if the current page is People, this will return a list of all wiki entries that start with "People/"
    182182
    183 ''Download:'' http://projects.edgewall.com/trac/attachment/wiki/MacroBazaar/SubWiki.py
     183''Download:'' [attachment:SubWiki.py]
    184184[[BR]]''Version:'' >= 0.8
    185185[[BR]]''By:'' Muness Alrubaie <muness@gmail.com>
     
    187187A different version that lists the contents of the line specified in the second parameter next to the the link.
    188188
    189 [[BR]]''Download:'' http://projects.edgewall.com/trac/attachment/wiki/MacroBazaar/SubWiki.2.py
     189[[BR]]''Download:'' [attachment:SubWiki.2.py]
    190190[[BR]]''By:'' csawyer@yumaed.org   --    ''Ver:'' 0.8
    191191
    192192A different version that lists the contents of the first heading element next to the link.  The second parameter specifies the number of levels to display.  Based on the version by csawyer@yumaed.org.
    193193
    194 [[BR]]''Download:'' http://projects.edgewall.com/trac/attachment/wiki/MacroBazaar/SubWiki.3.py
     194[[BR]]''Download:'' [attachment:SubWiki.3.py]
    195195[[BR]]''By:'' muness@gmail.com   --    ''Ver:'' 0.8
    196196
     
    200200Inserts a link to the "parent" wiki entry.  This only applies to wikis that have a "/" in their name indicating hierarchy.  e.g. an entry named Java/Introduction will have a parent of Java.  All other wiki entries have a parent of WikiStart.
    201201
    202 ''Download:'' http://projects.edgewall.com/trac/attachment/wiki/MacroBazaar/ParentWiki.py
     202''Download:'' [attachment:ParentWiki.py]
    203203[[BR]]''Version:'' >= 0.8
    204204[[BR]]''By:'' Muness Alrubaie <muness@gmail.com>
     
    209209Examples: ![[RelLink(deeper1)]]
    210210
    211 ''Download:'' http://projects.edgewall.com/trac/attachment/wiki/MacroBazaar/RelLink.py
     211''Download:'' [attachment:RelLink.py]
    212212[[BR]]''Version:'' >= 0.8?
    213213[[BR]]''By:'' Thomas Richter tr+tracweb@ariva.de
     
    217217Show the path to the specified wiki or the current wiki if none is specified.  This is similar to the directory names at the top of the TracBrowser.  This applies mainly to hierarchical wiki entries.  e.g. the path to a {{{Book/Chapter/Section/Subsection}}} would be {{{WikiStart/Book/Chapter/Section/Subsection}}} (all but the current would be linked).
    218218
    219 ''Download:'' http://projects.edgewall.com/trac/attachment/wiki/MacroBazaar/ShowPath.py
     219''Download:'' [attachment:ShowPath.py]
    220220[[BR]]''Version:'' >= 0.8
    221221[[BR]]''By:'' Muness Alrubaie <muness@gmail.com>
     
    227227
    228228''Download:''
    229  * For 0.8, use http://projects.edgewall.com/trac/attachment/wiki/MacroBazaar/redirect.py
     229 * For 0.8, use [attachment:redirect.py]
    230230 * For 0.9, please see http://svn.ipd.uni-karlsruhe.de/trac/javaparty/wiki/TracRedirect             
    231231
     
    240240
    241241=== !TracNav ===
    242 {{{
    243 #!html
    244 <a href="http://svn.ipd.uka.de/trac/javaparty/wiki/TracNav">
    245 <img style="float: right;" src="http://projects.edgewall.com/trac/attachment/wiki/MacroBazaar/tracnav.png?format=raw">
    246 </a>
    247 }}}
     242[[html(<a href="http://svn.ipd.uka.de/trac/javaparty/wiki/TracNav">)]]
     243[[Image(tracnav.png, nolink)]]
     244[[html(</a>)]]
    248245The !TracNav macro implements a fully customizable navigation bar for the Trac wiki engine (a replacement for the pure static !TracGuideToc macro). The contents of the navigation bar is a wiki page itself and can be edited like any other wiki page through the web interface. The navigation bar supports hierarchical ordering of topics.
    249246
     
    251248
    252249Updated version 2005-03-25: Improved look & feel, more robust parser for table of contents pages, improved page preview handling.
    253 [[BR]]''Download:'' [http://projects.edgewall.com/trac/attachment/wiki/MacroBazaar/TracNav.2.py TracNav.py] [[BR]]''By:'' Bernhard Haumacher (haui at haumacher.de), ''Version:'' = 0.8.x
     250[[BR]]''Download:'' [attachment:TracNav.2.py] [[BR]]''By:'' Bernhard Haumacher (haui at haumacher.de), ''Version:'' = 0.8.x
    254251
    255252Updated version 2005-11-26: Improved wiki syntax handling for toc entries (using Trac's parser now). More stable toc tree building. Trac 0.9 support.
    256 [[BR]]''Download:'' [http://projects.edgewall.com/trac/attachment/wiki/MacroBazaar/TracNav.3.2.py TracNav.py], [http://projects.edgewall.com/trac/attachment/wiki/MacroBazaar/tracnav.css tracnav.css]
     253[[BR]]''Download:'' [attachment:TracNav.3.2.py], [attachment:tracnav.css]
    257254[[BR]]''By:'' Thomas Moschny (moschny at ipd.uni-karlsruhe.de), ''Version:'' >= 0.9
    258255
     
    343340Please email me fixes and excuse any obvious errors: I've never written any python before this.
    344341
    345 ''Download:'' http://projects.edgewall.com/trac/attachment/wiki/MacroBazaar/DateOffset.py
     342''Download:'' [attachment:DateOffset.py]
    346343[[BR]]''Version:'' >= 0.8
    347344[[BR]]''By:'' Muness Alrubaie <muness@gmail.com>
     
    381378[[BR]]''By:'' Matthew Good <trac matt-good net>
    382379
    383 ''Download:'' http://projects.edgewall.com/trac/attachment/wiki/MacroBazaar/WikiCalendar.3.py [[br]]
     380''Download:'' [attachment:WikiCalendar.3.py] [[br]]
    384381Added navigation links (for previous/next month) to the calendar caption.
    385382[[BR]]''Version:'' >= 0.8
     
    406403
    407404''Download:''
    408 http://projects.edgewall.com/trac/attachment/wiki/MacroBazaar/Debbug.py
     405[attachment:Debbug.py]
    409406[[BR]]''By:'' Joe Wreschnig  --  ''Ver:'' >= 0.5.2
    410407
     
    421418See source for customizing the available Javadoc URLs.
    422419
    423 ''Download:'' http://projects.edgewall.com/trac/attachment/wiki/MacroBazaar/javadoc.py
     420''Download:'' [attachment:javadoc.py]
    424421[[BR]]''By:'' Matthew Good <matt-good.net>   --    ''Ver:'' >=0.7.1
    425422
     
    463460}}}
    464461
    465 ''Download:'' http://projects.edgewall.com/trac/attachment/wiki/MacroBazaar/downloadStats.py
     462''Download:'' [attachment:downloadStats.py]
    466463[[BR]]''By:'' Tiago Bortoletto Vaz <tiago@debian-ba.org>
    467464[[BR]]''Ver.'' >= 0.7.1
     
    477474}}}
    478475
    479 ''Download:'' http://projects.edgewall.com/trac/attachment/wiki/MacroBazaar/UserChanges.py
     476''Download:'' [attachment:UserChanges.py]
    480477[[BR]]''By:'' David Mohr <datrac@mcbf.net> -- ''Ver.'' >= 0.7.1
    481478
     
    519516All arguments are needed, god alone knows what happens if you leave them out.
    520517
    521 ''Download:'' http://projects.edgewall.com/trac/attachment/wiki/MacroBazaar/SvnFiles.py
     518''Download:'' [attachment:SvnFiles.py]
    522519''Version:'' 0.8
    523520''By:'' Simon Stapleton <simon@tufty.co.uk>
    524521
    525 ''Download:'' http://projects.edgewall.com/trac/attachment/wiki/MacroBazaar/SvnFiles.2.py
     522''Download:'' [attachment:SvnFiles.2.py]
    526523''Version:'' 0.9
    527524''By:'' Krachtwerk
     
    538535}}}
    539536
    540 ''Download:'' http://projects.edgewall.com/trac/attachment/wiki/MacroBazaar/ReTickets.py
     537''Download:'' [attachment:ReTickets.py]
    541538''Version:'' 0.8
    542539''By:'' Simon Stapleton <simon@tufty.co.uk>
     
    546543Build a search URL for the supplied argument or just a link to a search  engine if no args are present.  Set to use google.  Edit the macro to modify the engine(/url).
    547544
    548 ''Download:'' http://projects.edgewall.com/trac/attachment/wiki/MacroBazaar/Search.py
     545''Download:'' [attachment:Search.py]
    549546[[BR]]''Version:'' >= 0.8
    550547[[BR]]''By:'' Muness Alrubaie <muness@gmail.com>
     
    553550Builds a link to search for a supplied argument in any or all of the wiki, changesets, and tickets.
    554551
    555 ''Download:'' http://projects.edgewall.com/trac/attachment/wiki/MacroBazaar/TracSearch.py
     552''Download:'' [attachment:TracSearch.py]
    556553[[BR]]''Version:'' >= 0.8
    557554[[BR]]''By:'' Andrew Durdin <adurdin at gmail.com>
     
    574571}}}
    575572
    576 [[BR]]Download: http://projects.edgewall.com/trac/attachment/wiki/MacroBazaar/Blog.py
     573[[BR]]Download: [attachment:Blog.py]
    577574[[BR]]By: Walter Wong <wangzq@gmail.com>
    578575[[BR]]Version: >=0.8
    579576
    580577Download:
    581 http://projects.edgewall.com/trac/attachment/wiki/MacroBazaar/Blog.2.py
     578[attachment:Blog.2.py]
    582579[[BR]]Adopted to work on my 0.9.3
    583580[[BR]]''Version:'' >= 0.9.x?
    584581[[BR]]''By:'' Christian Eberl <chexx@gmx.at>
    585582
    586 [[BR]]Download: http://projects.edgewall.com/trac/attachment/wiki/MacroBazaar/Blog.ByCreationDate.py
     583[[BR]]Download: [attachment:Blog.ByCreationDate.py]
    587584[[BR]]Adapted By: Dan Mahn <trac@digidescorp.com>
    588585[[BR]]Version: 0.10
     
    600597}}}
    601598
    602 [[BR]]Download: http://projects.edgewall.com/trac/attachment/wiki/MacroBazaar/acronym.py
     599[[BR]]Download: [attachment:acronym.py]
    603600[[BR]]By: Justin Palmer <trac at isolated-designs dot net>
    604601[[BR]]Version: >=0.8
     
    653650See heading comment of source file for more detail.
    654651
    655 [[BR]]''Download:'' http://projects.edgewall.com/trac/attachment/wiki/MacroBazaar/Image.2.py
     652[[BR]]''Download:'' [attachment:Image.2.py]
    656653[[BR]]''By:'' Shun-ichi Goto <gotoh@taiyo.co.jp>
    657654[[BR]]''Version:'' >= 0.8
    658 [[BR]]''Download:'' [http://projects.edgewall.com/trac/attachment/wiki/MacroBazaar/Image.3.py Image.3.py]
     655[[BR]]''Download:'' [attachment:Image.3.py]
    659656[[BR]]''Version'': >= [1688]
    660657
     
    720717}}}
    721718
    722 [[BR]]''Download:'' http://projects.edgewall.com/trac/attachment/wiki/MacroBazaar/NotImplemented.py
     719[[BR]]''Download:'' [attachment:NotImplemented.py]
    723720[[BR]]''Author:'' ebrown@esolvere.com
    724721[[BR]]''Version:'' Tested on 0.9pre
     
    735732If no argumnent is given, a default argument of "WikiTemplates" is assumed.
    736733
    737 [[BR]]''Download:'' http://projects.edgewall.com/trac/attachment/wiki/MacroBazaar/ChooseTemplate.1.py
     734[[BR]]''Download:'' [attachment:ChooseTemplate.1.py]
    738735[[BR]]''Author:'' spamfaenger at gmx.de
    739736[[BR]]''Version:'' Tested on 0.9b2
     
    755752Although it's very small, the source can probably be improved a lot, but it's my first Python thingie
    756753
    757 [[BR]]''Download:'' http://projects.edgewall.com/trac/attachment/wiki/MacroBazaar/ListTracProjects.py
     754[[BR]]''Download:'' [attachment:ListTracProjects.py]
    758755[[BR]]''Author:'' robert@exa-omicron.nl
    759756[[BR]]''Version:'' Tested on 0.9.2 and 0.9.3
     
    837834}}}
    838835
    839 ''Download:'' http://projects.edgewall.com/trac/attachment/wiki/MacroBazaar/LastModifiedVersion.py
     836''Download:'' [attachment:LastModifiedVersion.py]
    840837[[BR]]''By:'' Matt Shin
    841838