Changes between Initial Version and Version 1 of jazz/Trac_Updates


Ignore:
Timestamp:
Apr 23, 2009, 5:41:28 PM (15 years ago)
Author:
jazz
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • jazz/Trac_Updates

    v1 v1  
     1= 2009-04-19 =
     2
     3 * 由於把系統從 Etch 升級到 Lenny, Python 環境因而從 2.4 升級到 2.5, Trac 從 0.10 升級到 0.11, 不管是 trac 舊的設定檔以及 plugin 都不管用了。只好從頭把 Trac Plugin 重裝一次。
     4 * 設定檔的部分:先用 trac-admin testbed initenv 產生一個全新的範本目錄,然後用 vimdiff 比對有哪些新參數要加進去。
     5 * Plugin 部分:
     6   * 首先要注意的是 Trac 0.11 已經把 !TracAccountManager 跟 !TracWebAdmin 納入,因此不可以再裝,否則會有一堆錯誤。
     7   * [http://trac-hacks.org/wiki/GraphvizPlugin Graphviz Plugin] - 用 graphviz 語法畫圖的擴充套件
     8{{{
     9$ w3m "http://trac-hacks.org/changeset/latest/graphvizplugin/0.11-0.7.4?old_path=/&filename=graphvizplugin/0.11-0.7.4&format=zip"
     10$ unzip unzip graphvizplugin_0.11-0.7.4-r5537.zip
     11$ cd graphvizplugin/0.11-0.7.4
     12graphvizplugin/0.11-0.7.4$ sudo python setup.py bdist_egg
     13graphvizplugin/0.11-0.7.4$ sudo easy_install dist/graphviz-0.7.4-py2.5.egg
     14}}}
     15   * [http://trac-hacks.org/wiki/WikiIncludePlugin WikiInclude] - 讓用 ![[WikiInclude(WikiStart)]] 語法來包含其他 Wiki 頁面中的內容
     16{{{
     17$ wget "http://trac-hacks.org/attachment/wiki/WikiIncludePlugin/0.11.versions.tbz2?format=raw" -O wikiincludeplugin-0.11.tar.gz
     18$ tar jxvf wikiincludeplugin-0.11.tar.gz
     19$ cd 0.11
     200.11$ cat > setup.py << EOF
     21from setuptools import setup
     22
     23PACKAGE = 'WikiInclude'
     24VERSION = '0.2'
     25DESCRIPTION = 'Page include plugin for Trac Wiki'
     26
     27setup(name=PACKAGE,
     28      version=VERSION,
     29      packages=['wikiinclude'],
     30      entry_points={'trac.plugins': ['wikiinclude.wikiinclude=wikiinclude.wikiinclude']})
     31EOF
     320.11$ sudo python setup.py bdist_egg
     330.11$ sudo easy_install dist/WikiInclude-0.2-py2.5.egg
     34}}}
     35   * [http://svn.ipd.uni-karlsruhe.de/trac/javaparty/wiki/TracRedirect TracRedirect] - 用 ![[redirect(網址)]] 語法來作頁面自動轉址
     36{{{
     37$ svn co http://svn.ipd.uka.de/repos/javaparty/JP/trac/plugins/redirect-0.11/
     38$ cd redirect-0.11/
     39redirect-0.11$ sudo python setup.py bdist_egg
     40redirect-0.11$ sudo easy_install dist/TracRedirect-0.11.3.dev_r3272-py2.5.egg
     41}}}
     42   * [http://trac-hacks.org/wiki/SvnAuthzAdminPlugin Svnauthz File Administration Plugin] - 用來管理誰有權限讀取 SVN 目錄的擴充套件
     43{{{
     44$ svn co http://trac-hacks.org/svn/svnauthzadminplugin/0.11/ svnauthzadminplugin-0.11
     45$ cd svnauthzadminplugin-0.11
     46svnauthzadminplugin-0.11$ sudo python setup.py bdist_egg
     47svnauthzadminplugin-0.11$ sudo easy_install dist/SvnAuthzAdminPlugin-0.1.2._Moved.to.Trac.0.11_-py2.5.egg
     48}}}
     49 * 過去習慣會修改的字型大小
     50{{{
     51#!diff
     52--- /usr/share/pyshared/trac/htdocs/css/trac.css.old        2009-04-19 19:38:06.000000000 +0800
     53+++ /usr/share/pyshared/trac/htdocs/css/trac.css    2009-04-19 19:37:47.000000000 +0800
     54@@ -1,6 +1,6 @@
     55 body { background: #fff; color: #000; margin: 10px; padding: 0; }
     56 body, th, td {
     57- font: normal 12px Verdana,Arial,'Bitstream Vera Sans',Helvetica,sans-serif;
     58+ font: normal 16px Verdana,Arial,'Bitstream Vera Sans',Helvetica,sans-serif;
     59 }
     60 h1, h2, h3, h4 {
     61  font-family: Arial,Verdana,'Bitstream Vera Sans',Helvetica,sans-serif;
     62}}}
     63 * 以前的 template 也失效了,要改用 site.html 重新定義 - 參考 [http://trac.edgewall.org/wiki/TracInterfaceCustomization#SiteAppearance Site Appearance]
     64
     65= 2009-04-23 =
     66
     67 * 把 /usr/share/pyshared/trac/wiki/default-pages 搬到 /usr/share/pyshared/trac/wiki/default-pages.dpkg,只留下 RecentChanges、TitleIndex、WikiStart 三個預設頁面。