为plone插件开发提供的Templer系统扩展
项目描述
介绍
本软件包扩展了templer代码生成系统的功能。它基于templer.core、templer.buildout和templer.zope的功能,并依赖于这些软件包。本软件包提供创建Plone插件的基本支持。包括基本Plone软件包、嵌套命名空间Plone软件包和archetypes Plone软件包的模板。
templer代码生成系统的主要文档可以在Read The Docs上的Templer 手册 中找到。
创建软件包
与父包templer.core一样,使用templer.plone模板创建软件包是通过使用templer脚本来实现的。脚本调用如下
templer plone_basic
这将创建一个基本的Plone软件包框架。
从ZopeSkel迁移
在版本3.0之前,Templer不能与ZopeSkel在同一buildout或Python虚拟环境中共存。如果您以前在环境中安装了ZopeSkel 2.x,请在使用基于Templer的软件包或ZopeSkel 3之前将其完全卸载。
否则,在尝试创建软件包时将遇到以下错误
IOError: No egg-info directory found (looked in ./mycompany.content/./mycompany.content.egg-info, ./mycompany.content/bootstrap.py/mycompany.content.egg-info, ./mycompany.content/buildout.cfg/mycompany.content.egg-info, ./mycompany.content/CHANGES.txt/mycompany.content.egg-info, ./mycompany.content/CONTRIBUTORS.txt/mycompany.content.egg-info, ./mycompany.content/docs/mycompany.content.egg-info, ./mycompany.content/MANIFEST.in/mycompany.content.egg-info, ./mycompany.content/mycompany/mycompany.content.egg-info, ./mycompany.content/Paste-1.7.5.1-py2.6.egg/mycompany.content.egg-info, ./mycompany.content/PasteDeploy-1.5.0-py2.6.egg/mycompany.content.egg-info, ./mycompany.content/PasteScript-1.7.5-py2.6.egg/mycompany.content.egg-info, ./mycompany.content/README.txt/mycompany.content.egg-info, ./mycompany.content/setup.cfg/mycompany.content.egg-info, ./mycompany.content/setup.py/mycompany.content.egg-info, ./mycompany.content/src/mycompany.content.egg-info)
在开始使用Templer之前
从buildout.cfg中删除ZopeSkel引用
rm -rf eggs/ZopeSkel*
其他功能
templer脚本还提供了一些其他功能,这些功能在templer.core的索引页面上有详细描述,该页面位于PyPI
源代码和问题跟踪
贡献者
Cris Ewing,原始作者
Josh Johnson
David Ray
Maik Röder
基于zopeskel的代码,其中贡献者包括
Daniel Nouri
Tarek Ziadé
Mustapha Benali
Sylvain Viollon
Alan Hoey
Josh Johnson
Emanuel Sartor
Matthew Wilkes
Joel Burton
Cris Ewing
Chris Calloway
Chris Rossi
变更日志
1.0b4 2013年2月10日
作为可选项添加基于robot的功能测试。[maikroeder]
1.0b3 2013年1月9日
添加了更详细的测试设置。符合PPD 4和p.a.testing文档。[timo]
添加了Tiles模板。[timo]
1.0b2 2012年9月16日
改进了用于测试Plone软件包的基础设施。[gotcha]
将buildout添加到软件包中,以简化templer.plone的开发。[gotcha]
改进README,包括对源代码和跟踪器的链接以及对ZopeSkel 2.x的兼容性警告。[miohtama]
默认包含更多软件包分类器。[hvelarde]
开发buildout扩展test-4.x.cfg而不是plone-4.1.x.cfg;测试部分使用更好的默认选项。[hvelarde]
1.0b1 - 2012年5月20日
重新建立对archetype和plone模板的localcommand支持。[cewing]
添加对可选localcommands的支持。[cewing]
创建新的嵌套命名空间Plone软件包模板,类似于zopeskel的旧plone_app模板。[cewing]
改进模板间消息的一致性。[cewing]
1.0a1 - 2011年10月7日
从zopeskel迁移了archetype模板和doctests。[jjmojojjmojo]
从zopeskel迁移了基本Plone模板和doctests。[cewing]
使用templer创建的软件包。[cewing]