常ã«ç»é¢ã®çé ã«ãã±ããã®ä¸è¦§ã表示ãããTracPluginãä½ãã¾ããã
ä»ã®æ¡ä»¶ã§ãããã¨ãã¼ãã«Tracã使ã£ã¦ãããã§ãã
ã§ããã¨ãã°ãæ°ãããã±ãããæ¸ãã¦ããã¨ãã«ãé¢é£ãããã±ãããç¾å¨æ å½ãã¦ãããã±ããã®æ å ±ãè¦ããã¨ãããããããªãã§ããã
ãããªã¨ãã«ããã¡ãã¡æ¤ç´¢ãããã¬ãã¼ãä¸è¦§ã®ç»é¢ã«è¡ã£ããããã®ãUZEEEEE!!ãªã®ã§ããã±ããã®ä¸è¦§ã常ã«ç»é¢ã®ã©ããã«è¡¨ç¤ºããã¦ããã¨ä¾¿å©ããªã¨æããPluginãä½ãã¾ããã
shibuya-tracã®repositoryã«ã³ããããã¦ã¾ãã
ããã¯ãªã«?
TicketListOverrayPluginã¨ããã¾ãã
wikiãã¼ã¸ã ããããã±ããã®åå¥è¡¨ç¤ºã®ç»é¢ã ããã管çç»é¢ã ãããã常ã«ã¬ãã¼ãã®æ¤ç´¢çµæã®ä¸è¦§ã表示ããããã®ã§ãã
Trac 0.11.5.ja1ã¨MacOSX Safari4.0.4ã¨Firefox3.5.5ã§åä½ç¢ºèªãã¦ãã¾ãã
ã¤ã³ã¹ã³
shibuya-tracã®ãªãã¸ããªããsvn coã§ãã§ãã¯ã¢ã¦ããã¦ãã ããã
svn checkout http://svn.sourceforge.jp/svnroot/shibuya-trac/plugins/TicketListOverrayPlugin/trunk/0.11/ TicketListOverrayPlugin
ãã§ãã¯ã¢ã¦ãããå¾ãTicketListOverrayPluginãã£ã¬ã¯ããªã«ç§»åãã以ä¸ã®ã³ãã³ãã§eggãä½æãã¾ãã
cd TicketListOverrayPlugin/ ./setup.py bdist_egg
distãã£ã¬ã¯ããªã«TicketListOverrayPlugin-1.0-py2.5.eggã¨ãããã¡ã¤ã«ãä½æãããã®ã§ããã®ãã¡ã¤ã«ãtracã®ããã¸ã§ã¯ãç°å¢ããããã£ã¬ã¯ããªã®pluginsãã£ã¬ã¯ããªã«ã³ãã¼ãã¦ãã ããã
使ãæ¹
ãã©ã°ã¤ã³ãæå¹ã«ãªãã¨ãTracã®ç»é¢ã®æ¨ªã«ãããªæãã§ãã¬ãã¼ãã®ä¸è¦§ã表示ããã¾ãã
ãã®ã¦ã£ã³ãã¦ã®ã¬ãã¼ãã®ã¿ã¤ãã«ãããã±ãããã¯ãªãã¯ããã¨ã該å½ããã¬ãã¼ãããã±ããã表示ããã¾ãã(ããã©ã«ãã§ã¯ãæ°ããã¿ãã§è¡¨ç¤ºããã¾ãã)
ãã¨ããéªéãããããã!!ãã¨æã£ãå ´åã¯ãå·¦ä¸ã«ããâãã¯ãªãã¯ããã¨å°ãããªãã¾ãã
ãªãããã®ã¦ã£ã³ãã¦ã¯ãã©ãã°ãã¦ç§»åããããã¨ãã§ãã¾ãã
è¨å®
trac.iniã®"components"ã»ã¯ã·ã§ã³ã®æ«å°¾ã«ã以ä¸ã®ããã«è¨å ¥ãã¦ãã©ã°ã¤ã³ãæå¹ã«ãã¦ãã ããã(IniAdminãã©ã°ã¤ã³ã®ç»é¢ããæå¹ã«ãã¦ãããã§ãã)
[components] ...çç¥ ticketlistoverray.* = enabled
åä½ãã«ã¹ã¿ãã¤ãºããã«ã¯ãtrac.iniã«"ticketlistoverray"ã»ã¯ã·ã§ã³ã追å ãã¦ãè¨å®ãè¡ã£ã¦ãã ããã
[ticketlistoverray] default_visibility = true height = 640 left = 720 max_count = 10 width = 480
è¨è¨é ç®ã®å 容ã¯ä»¥ä¸ã®éãã§ãã
é ç® | 説æ | ããã©ã«ã |
---|---|---|
reports | 表示ããã¬ãã¼ãã®IDãã«ã³ãåºåãã§æå®ãã¾ããããã©ã«ãã§ã¯ãTracã«æåããè¨å®ããã¦ãããèªåã®æ å½ãã±ãã(id=7)ã¨æªè§£æ±ºãã±ãã(id=1)ãè¨å®ããã¦ãã¾ããä»ã®ã¬ãã¼ãã«å¤æ´ãããå ´åã¯ããã§è¨å®ãã¦ãã ããã | 7,1 |
max_count | ã²ã¨ã¤ã®ã¬ãã¼ããããã«è¡¨ç¤ºãããã±ããã®ä»¶æ°ãæå®ãã¾ãã | 5 |
link_target_new | ãªã³ã¯ãã¯ãªãã¯ããéã«æ°ããã¦ã£ã³ãã¦ã§éãããè¨å®ãã¾ãã | true |
default_visibility | ã¦ã£ã³ãã¦ãæåããéããç¶æ ã§è¡¨ç¤ºãããè¨å®ãã¾ããtrueã ã¨è¡¨ç¤ºããã¨ãã«ã¯æ¢ã«å±éããã¦ããã! | true |
width | ã¦ã£ã³ãã¦ã®å¹ (px) | 380 |
height | ã¦ã£ã³ãã¦ã®é«ã(px) | 480 |
top | ã¦ã£ã³ãã¦ã®è¡¨ç¤ºä½ç½® Y座æ¨(絶対ä½ç½®:px) | 200 |
left | ã¦ã£ã³ãã¦ã®ä½ç½® X座æ¨(絶対ä½ç½®:px) | 680 |
è¨å®ã¯ãIniAdminãã©ã°ã¤ã³ã®ç»é¢ãããè¡ããã¨ãã§ãã¾ãã
注æäºé ã§ããã表示ãããã¬ãã¼ãã®æ¤ç´¢çµæã«ã¯ãidåã¨summaryåãå«ã¾ãã¦ããå¿ è¦ãããã¾ããã¬ãã¼ãã®SQLå ã«ã"is AS Ticket"ã"summary AS æ¦è¦"ãªã©ãå«ã¾ãã¦ããªãã¨è¡¨ç¤ºããã¾ããã(ãã¡ããlogã«warningã¯åºãã¦ã¾ãã)