モノノフ日記

普通の日記です

TracにTagsPluginをインストールする

Wikiページやチケットにタグを付けてくれるTagsPluginを導入してみました。

チケットについてるcomponentやkeywordを勝手にタギングしてくれるのは便利かもしれない。


  1. ソースダウンロード、コンパイル

  2. # svn co https://muness.textdriven.com/svn/edu/tags-plugin/trunk ./tags-plugin
    # cd tags-plugin
    # python ./setup.py bdist_egg
    # chown apache:apache dist/TracTags-0.4-py2.3.egg
    # cp dist/TracTags-0.4-py2.3.egg /home/www/xxx/trac/plugins

  3. trac.iniを編集

  4. [trac]
    default_handler = TagsWikiModule

    [components]
    trac.wiki.web_ui.wikimodule = disabled
    tractags.* = enabled

    [tags]
    index = cloud
    index.args = smallest=10, biggest=40, mincount=2, showcount=false
    listing.args = showheadings=true
    tagcloud.args = mincount=2, showcount=false

    [tags.ticket]
    fields=component,severity,keywords


  5. tracをアップグレードし、apache再起動

  6. # trac-admin /home/www/xxx/trac upgrade
    # /sbin/service httpd restart