2006年07月19日 星期三 21:00
TG的邮件列表里新鲜出炉的消息~ 比起0.9a6,主要亮点是对 SQLAlchemy 0.2x 版本的支持,算是去了我的一大心病。 据 Kevin 说现在距离 1.0 beta 已经很近了,剩下的工作主要是文档的补完,不知道和django谁更快了。 本来老早就打算用 TG 架一个站玩玩了,可惜最近杂事渐多,看来还得搁置一段时间。 http://www.turbogears.org/preview/about/changelog.html TurboGears Changelog 0.9a7 (July 19, 2006) Backwards Incompatibilities * Former LocalizableJSLink is now CalendarLangFile. New LocalizableJSLink is simpler but backwards-incompatible. * Catwalk no longer accepts an allowHost argument. To restrict access to it use Identity.SecureObject instead. Deprecations * Use of "entrys" is now deprecated in the FeedController. You should use "entries" instead. Features * Syntax highlighter is used in the widget browser to make the code snippets look nice (#843) * Logging configuration produces better errors and also has access to the RotatingFileHandler and TimedRotatingFileHandler (#866, also fixes #820) * The validate decorator now accepts a state_factory parameter which should be a callable that returns the initial state for validation (the same state parameter FormEncode validators use). The final state after validation can be accessed at cherrypy.request.validation_state inside controller methods. * tg-admin commands can state if they need to be run in a project dir. * Toolbox now uses entrypoints so site-specific tools can be added. * tg-admin shell now asks if it should commit changes to the database on exit. * Widgets can be listed at the tg.include_widgets config. list to send them to every template (a la tg.mochikit_all). * DBTest now drops tables after each test so they don't interfere with others. * Toolbox is now secured using Identity * SQLAlchemy support not only works again with the latest SQLAlchemy, but quickstart works properly and "tg-admin sql create" now works for SQLAlchemy databases for the first time. Fixes * The sample-prod.cfg file had an incorrect logging configuration. * Simplified visit queue handling which solves some mysterious bugs. * QUICKSTART: model.py now includes SQLObject's requirements when identity is off. * DateTimeConverter now handles dates < 1900. * Catwalk now handles gracefully UnicodeCols. * QUICKSTART: start-project.py now detects correct python binary's path in the system. * Kid's base templates are now (re)loaded properly. * Config file selection is now smarter. * tg-admin update now finds correct identity provider. * Catwalk now handles InheritableSQLObjects with mixins gracefully. * Output encoding wasn't set based on the config value under some circumstances (#972) Changes * If tg.empty_flash is True in the app's configuration, then tg_flash = None will be sent to the template when it's not set. Otherwise it will not be sent at all. * QUICKSTART: Now supports python2.3 with PEAK's [] decorator syntax. * DateTimeConverter validator now raises Invalid('empty') exceptions properly and uses the usual not_empty parameter. allow_empty is deprecated. Contributors (My apologies if your name belongs here and is not!) Roger Demetrescu, Elvelind Grandin, Rune Hansen, Sean De La Torre, Alberto Valverde, Max Ischenko, Joseph Tate, Elvelind Grandin, Charles Duffy, Matt Good, Ksenia Marasanova. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.exoweb.net/pipermail/python-chinese/attachments/20060719/907eb2ec/attachment.htm
2006年07月20日 星期四 10:34
SQLAlchemy 的license比SQLObject好 -- > If U can see it, then U can do it > If U just believe it, there's nothing to it > I believe U can fly > JetPort:80 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.exoweb.net/pipermail/python-chinese/attachments/20060720/e0ffebde/attachment.html
2006年07月20日 星期四 10:59
我用CherryPy+Cheetah比较多,与TG有什么区别,哪位可以指导一下。
2006年07月20日 星期四 13:18
我用的是 TG 的这个版本, 在内部作为 CMS 发布平台,用的是 Catwalk , Cheetah TG 中集成了 Cherrypy + Cheetah widgets 中,有些中文有问题,像 calendar 控件 On 7/20/06, gashero <harry.python at gmail.com> wrote: > > 我用CherryPy+Cheetah比较多,与TG有什么区别,哪位可以指导一下。 > > _______________________________________________ > python-chinese > Post: send python-chinese at lists.python.cn > Subscribe: send subscribe to python-chinese-request at lists.python.cn > Unsubscribe: send unsubscribe to python-chinese-request at lists.python.cn > Detail Info: http://python.cn/mailman/listinfo/python-chinese > > -- Welcome to my blog ( about Python , Lisp) http://albertlee.cublog.cn/ -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.exoweb.net/pipermail/python-chinese/attachments/20060720/c5357a01/attachment.htm
Zeuux © 2025
京ICP备05028076号