Skip to content. | Skip to navigation

Personal tools

Navigation

You are here: Home / Tips / Paster

Paster

Plone 使用一組稱為 Paste 的工具,協助開發人員建立網站專案。 paster 是 Paste 裡的小工具,常被用來建立網站專案的骨架程式碼。

Python Paste 常被簡稱為 paste,是由 Ian Backing 開發的工具模組,用來協助建立 WSGI 專案。

http://ivory.idyll.org/articles/wsgi-intro/what-is-wsgi.html 所有的 web app framework 都支援 WSGI 了,原則上只需要處理設定跟佈署的議題。 WSGI PEP 只規範最精簡的介面需求,完全沒提及佈署方式,少數提及設定方式,這些議題都是 Paste 的實作範圍,也因此,討論 WSGI 內部細節時,常和 Paste 扯在一起。

http://pythonpaste.org/script/developer.html Paste 分成 WebOb, Script, Deploy 等部份,其中 Script 提供的 paster 是兩階式的工具程式,可以用來執行 paster help 或 paster create 這樣的指令。 ZopeSkel 就提供 template 給 paster 執行。

Related content
Package Skeleton