Formã®å ¥åå 容ãCookieã«èªåä¿åãããã¨ã§å¾©å ã§ããããã«ããTracPluginãä½ãã¾ããã
ã¾ãã¾ãTracã®Pluginã§ãã
ãã¨ãã°ãæ°ãããã±ãããæ¸ãã¦ããã¨ãã«ããã©ã¦ã¶ãã¯ã©ãã·ã¥ããã¨ããæä½ãééãã¦é å¼µã£ã¦å ¥åãããã±ããã®å 容ãæ空ã®å½¼æ¹ã¸ã¨æ¶ãå»ã£ããã¨ããæããæãããããããã¯å¤ãã®ã§ã¯ãªãã§ãããã?
ããã£ã»ã»ã»ã» ã師ã»ã»ã»ã»ã»ã» ã師ããããããï¼ï¼ ãªã»ã»ã»ãªã ãããªã«è¦ããã®ãªãæ²ããã®ãªãã»ã»ã»ã»ã»ã»ã»ã»ã»ã»ã» Tracãªã©ããã¬ï¼ï¼ ããã¯ãã®æããTracããã¦ãï¼ ããå¸çã®æãããããã®ã ï¼ï¼ å¸çã«Tracãªã©ããã¬ï¼ã
ãªã©ã¨ããæ²åãå¼ãèµ·ãããExcelã®ãã°ç¥¨ã§èå¸ååéµãç¯ããããä¸ã¤ã®å·ãæã¤åæã®ç·ã«åããããããªãããã«ããããªPluginãä½ãã¾ããã
shibuya-tracã®repositoryã«ã³ããããã¦ã¾ãã
ããã¯ãªã«?
FormAutoSavePluginã¨ããã¾ãã
rikrikrik.com - jQuery autosave plug-inã¨ããjQueryãã©ã°ã¤ã³ãå©ç¨ãã¦ããã±ããã®ç»é²ç»é¢ãªã©ã®ãã©ã¼ã ã®å
¥åå
容ãä¸å®ééã§Cookieã«ä¿åãããã¨ã§å¾©å
ã§ããããã«ãããã®ã§ãã
Trac 0.11.5.ja1ã¨MacOSX Safari4.0.4ã¨Firefox3.5.5ã§åä½ç¢ºèªãã¦ãã¾ãã
ããã¾ã§é å¼µã£ã¦å
¥åãã¦ããã
ãã©ã¦ã¶ãã¯ã©ãã·ã¥! å
¥åããã®ãæ¶ããã(ï¼Â´Ðï½)
è½ã¡çã! "Cookieãã復å
"ãæ¼ããã !
復å
! ãµã
ããã¶ãªãã£ããããã(´âï½)
ã¤ã³ã¹ã³
shibuya-tracã®ãªãã¸ããªããsvn coã§ãã§ãã¯ã¢ã¦ããã¦ãã ããã
svn checkout http://svn.sourceforge.jp/svnroot/shibuya-trac/plugins/FormAutoSavePlugin/trunk/0.11/ FormAutoSavePlugin
ãã§ãã¯ã¢ã¦ãããå¾ãFormAutoSavePluginãã£ã¬ã¯ããªã«ç§»åãã以ä¸ã®ã³ãã³ãã§eggãä½æãã¾ãã
cd FormAutoSavePlugin/ ./setup.py bdist_egg
distãã£ã¬ã¯ããªã«FormAutoSavePlugin-1.0-py2.5.eggã¨ãããã¡ã¤ã«ãä½æãããã®ã§ããã®ãã¡ã¤ã«ãtracã®ããã¸ã§ã¯ãç°å¢ããããã£ã¬ã¯ããªã®pluginsãã£ã¬ã¯ããªã«ã³ãã¼ãã¦ãã ããã
使ãæ¹
ãã©ã°ã¤ã³ãæå¹ã«ãªãã¨ãTracã®ãã±ããç»é²ç»é¢ã®ä¸ã®æ¹ã«ããããªãªã³ã¯ã表示ãããããã«ãªãã¾ãã
ãã®ç¶æ ã§ã¯ãä¸å®æé(ããã©ã«ãã§ã¯5ç§ãã)ã«Cookieã«ä¿åããã¾ãããã©ã¦ã¶ãéãããããå¾ã«ãåãURLã«æ»ã£ã¦ããå ´åã¯ããã®"Cookieãã復å "ãªã³ã¯ãã¯ãªãã¯ãããã¨ã§ãä¿åãããç¶æ ã«Formã復å ã§ãã¾ãã
è¨å®
trac.iniã®"components"ã»ã¯ã·ã§ã³ã®æ«å°¾ã«ã以ä¸ã®ããã«è¨å ¥ãã¦ãã©ã°ã¤ã³ãæå¹ã«ãã¦ãã ããã(IniAdminãã©ã°ã¤ã³ã®ç»é¢ããæå¹ã«ãã¦ãããã§ãã)
[components] ...çç¥ formautosave.* = enabled
åä½ãã«ã¹ã¿ãã¤ãºããã«ã¯ãtrac.iniã«"formautosave"ã»ã¯ã·ã§ã³ã追å ãã¦ãè¨å®ãè¡ã£ã¦ãã ããã
[formautosave] interval = 5000
è¨è¨é ç®ã®å 容ã¯ä»¥ä¸ã®éãã§ãã
é ç® | 説æ | ããã©ã«ã |
---|---|---|
interval | èªåä¿åãå®è¡ããééãããªç§ã§æå®ãã¾ããããã©ã«ãã¯5ç§ã§ãã | 50000 |
è¨å®ã¯ãIniAdminãã©ã°ã¤ã³ã®ç»é¢ãããè¡ããã¨ãã§ãã¾ãã