2006-07-01ãã1ã¶æéã®è¨äºä¸è¦§
ã¯ãã£ããã°ãã£ãã¯ã¹ã ãã¿ããã§ãããã¨Kidã®ãã¼ã¸ã§ã³ã¢ãããhttp://www.turbogears.org/preview/about/changelog.html
time.strptime(string, format)ã使ãã http://www.python.jp/doc/release/lib/module-time.htmlstrftimeã¯datetimeã¢ã¸ã¥ã¼ã«ã®åã¯ã©ã¹ã«ããã®ã ãã©ãstrptimeã¯timeã¢ã¸ã¥ã¼ã«ã«ãããªãã®ã§æ³¨æã æ¥ä»ã®ãã¼ã¹ã¯ããããªæãã楽ãããã y,m,d,_,_,â¦
Pythonã®ã©ã¤ãã©ãªã®ãªãã¸ããªã¨ãã³ã¼ãã«ã¿ãã°ã¨ãã¤ãã£ãªã ã¿ããã®ã£ã¦ã©ãã«ãããã§ããããï¼ã¨æã£ãã®ã§æ´çãã¦ã¿ã¾ããã PyPI â the Python Package Index · PyPI python.orgã®ä¸ã«ãããããããªããã±ã¼ã¸ã®ãªãã¸ããªãæåã©ããã¨ããâ¦
19æ¥ã«TurboGearsã®0.9a7ããªãªã¼ã¹ããã¾ãããååã®a6ã5æã ãããã¡ãã£ã¨éã空ããæãã§ããå®å®ãã¦ãã¦ããã§ãããï¼http://www.turbogears.org/preview/about/changelog.htmlä¸é¨ã ãæç²ã Features Widgetãã©ã¦ã¶ã§ã·ã³ã¿ãã¯ã¹ãã¤ã©ã¤ããâ¦
ç¾è¡ã®é²ã¿å ·åãè¨é²ããããã«ä½æãã¾ãããWindowsã®ã¿ã¹ã¯(ã£ã¦ãããã«ããååã ããªããã¿ã¹ã¯å®æå®è¡ã®æ©è½ã®ãã¨ã§ã)ã使ã£ã¦ã1æéããã«è¨é²ããããã«ãã¦ãã¾ãããã¡ã¤ã«ã大ãããªãã°ãã¾ãä»äºãé²ãã§ããããªãã¨ã import sys imporâ¦
ã½ã¼ã¹ã³ã¼ãã¨ãã§ãè¡é ã«è¡çªé ãä»å ããã®ã¨ã¿ããåè§ç©ºç½ã«ç½®æããã®ãå¿ è¦ã«ãªã£ãã®ã§ä½ã£ãã ãããCygwinã§cat -n | expand ããã ãã®è©±ãªãã ãã©ãæ®æ®µcmd.exeã§çãã¦ãã人ãªã®ã§ã import os import sys def calc_pad_len(column, ts): 'â¦
ãã¹ããæ¸ãæ¹æ³ã¯ããã¤ãããã unittest ããããæ®éã®åä½ãã¹ããã¬ã¼ã ã¯ã¼ã¯PyUnitã nose ã¢ã¸ã¥ã¼ã«åãã¯ã©ã¹åãé¢æ°åãªã©ã«ãtestãã¨å ¥ãã¦ããã ãã§ãããããã¹ãã±ã¼ã¹ã¨ã¿ãªãã¦å®è¡ãã¦ããããã¼ã«ãPyUnitãããæ軽ã«æ¸ãããã¿ã¼â¦
(ãã£ã¡ãå ã«ããã»ãã説æã楽ã ã£ããªã)åè¿°ããããã«ã¢ãã«ã®åç´ãªCRUDã¯ãã¹ãããå¿ è¦ã¯ãªããã¢ãã«ã«å®è£ ãããã¸ãã¯ã®ãã¹ãã±ã¼ã¹ã®è©±ã§ãããæè¡çã«ã¯ãDBTestãç¶æ¿ãããã¹ãã±ã¼ã¹ãæ¸ãã®ãã¨ã¦ãã·ã³ãã«ã§ããããåè¿°ã®ãããªãã³â¦
次ã«ã TurboGearsã使ã£ã¦ã Web2.0ã£ã½ã(ã£ã¦ãªã«)ã¢ããªã ã´ãªã´ãªã¨ã¢ã¸ã£ã¤ã«ããã¯ã«æ¸ãã¦ããã¨ã ã©ããªãã¹ããæ¸ããã¨ããããã®ã ãããï¼æåã«æãã¤ãã®ã¯ããµã¼ãã¼ã¨ãã©ã¦ã¶ã®ã¤ã³ã¿ã©ã¯ã·ã§ã³ã®é¨åãTurboGearsã§ããã°ã³ã³ããã¼ã©(â¦
ã¾ãã¯ãã©ããªãã¹ãã¯æ¸ããªãã§ããããæè¡çã«æ¸ããªãã¨ãããã¨ãããããæ¸ãæéãæ£å½åã§ããªãã¨ãããã¨ãããã ãã³ãã¬ã¼ã(.kid) - ãã³ãã¬ã¼ãã«ã¯ç»é¢ã®æ§æããã¶ã¤ã³ãã¬ã¤ã¢ã¦ãã¨ãæ©è½æ§ã¨ãå«ã¾ãã¦ãããè¦ãç®ã®é¨åã¯ãããã¯â¦
TurboGearsã§Webã¢ããªãä½ãã¨ãã«ãã©ããªãã¹ããã©ããã£ã¦æ¸ãã¹ãããã¾ã å®çµé¨ãå§åçã«è¶³ããªãã®ã§ããªãæ³åãå ¥ã£ã¦ãã¾ãããèãã¦ã¿ãã
Python2.4æ¨æºã¢ã¸ã¥ã¼ã«ã®ã²ã¨ã¤ããããããªiteratorãçæããããã®ä¾¿å©é¢æ°ãå ¥ã£ã¦ããã http://www.python.jp/doc/release/lib/module-itertools.htmlã¬ã·ããåç §ã http://www.python.jp/doc/release/lib/itertools-recipes.htmlåçµã¢ã¼ãã§ã # â¦