collective.pfg.norobots 允许向PloneFormGen表单添加 collective.z3cform.norobots 验证码字段。
项目描述
概览
collective.pfg.norobots 是一个使用 collective.z3cform.norobots 的 PloneFormGen 字段。
collective.z3cform.norobots 提供了一个基于问题/答案列表的“人类”验证码小部件。
此验证码可以使用
作为 collective.pfg.norobots 的 PloneFormGen 字段
作为 plone.app.discussion (Plone 讨论) 验证码插件
作为 z3c form 字段
作为自定义表单中的宏
需求
我已经使用以下版本进行了测试
Plone 5.0.5 & PloneFormGen 1.8.1 & collective.z3cform.norobots 1.4.4
Plone 4.3.10 & PloneFormGen 1.7.19 & collective.z3cform.norobots 1.4.4
屏幕截图
安装
获取模块
将 collective.pfg.norobots 添加到您的 plone.recipe.zope2instance buildout部分,例如。
[instance] ... eggs = Plone ... collective.pfg.norobots
或者,您可以将它作为依赖项添加到您的自己的产品 setup.py
install_requires=[ ... 'collective.pfg.norobots', ],
启用模块
安装PloneFormGen(如果尚未安装),然后从附加组件控制面板安装collective.pfg.norobots。就这样!
快速测试?
下载 collective.pfg.norobots 并使用 virtualenv 和 buildout 测试该模块
easy_install virtualenv cd collective.pfg.norobots virtualenv . source bin/activate (collective.pfg.norobots) easy_install zc.buildout !!! check the buildout config file ``test-plone-base.cfg`` before running !!! (collective.pfg.norobots) ln -s test-plone-5.0.x.cfg buildout.cfg (collective.pfg.norobots) python bootstrap.py (collective.pfg.norobots) bin/buildout [...] be patient... [...] (collective.pfg.norobots) ./bin/instance fg
前往 http://localhost:8080,添加一个新的Plone站点并安装collective.pfg.norobots。
启动测试
(collective.pfg.norobots) pip install unittest2 (collective.pfg.norobots) ./bin/test -s collective.pfg.norobots
启动代码覆盖率
(collective.pfg.norobots) bin/coverage (collective.pfg.norobots) bin/report And open with a browser htmlcov/index.html
鸣谢
Makina Corpus Makina Corpus
源代码
源代码托管在Github上。
如何贡献和提交补丁?
贡献者
Sylvain Boureliou [sylvainb]
Kim Chee Leong [kcleong]
Pawel Lewicki [lewicki]
变更日志
1.2 (2016-07-21)
与PFG的其他小部件统一,使其与QuickEdit兼容。[lewicki]
1.1 (2015-04-13)
添加荷兰语翻译。[kcleong]
1.0 (2012-10-03)
首次发布[sylvainb]