看过pylons后,总是对它给开发带来的愉悦感到兴奋。但自己再怎么说,都不如pylons的作者自己来阐述的更好。Ben对pylons从很多方面进行了说明,要作什么,为什么这样做,怎么做的,都从他自己的角度进行了透视。他的话题很宽:

  • Web Framework Installer – setuptools
  • Template for starter Web Application – PasteScript
  • Stand-alone Server – Paste
  • Dispatcher – Routes / Myghty
  • Request API/Object – Myghty
  • Sessions – Myghty
  • Caching – Myghty
  • Templating – Myghty, or any that support the TurboGears Template Plug-In
  • Helper functions/AJAX – WebHelpers
  • JSON- simplejson + Pylons decorator
  • Global “convenience” objects – Pylons
  • Database Integration – SQLObject, SQLAlchemy, anything else
  • Interactive Debugging – Paste
  • Traceback E-mails – Paste
  • Webapp Unit Testing – Paste
  • Webapp Deployment – PasteDeploy
  • Webapp Distribution/Installation – setuptools
一眼看过去,头都会晕。怎么这么多?这不是比turbogears更多组件么?其实注意一下就知道,他讲的是web framework的各个方面以及要用到的相关组件,组件有部分是重叠的。可以看看文中的一段话:

While having more people use Pylons would be great, it isn’t necessary for Pylons to become a better framework. Having more people use the WebHelpers package, or make their framework Paste-compatible, or use Routes, or Myghty’s powerful caching/session API’s all helps Pylons. It also helps any other framework using these components, and that’s what counts the most.

他表现出来的开放性和宽容性是令人钦佩的,他的目的也很明显,就是充分发挥python的特长,重用各种组件,他自己的webhelper和routes都可以使用在其他framework上。同时也说明了pylons本身的弹性很大。这需要个人进入pylons去体会。