zc buildout recipe在zope实例的etc/文件夹中生成atcontenttypes配置文件
plone.recipe.atcontenttypes的Python项目详细描述
用法
此配方生成一个自定义atcontenttypes配置文件并将其放入 zope实例的etc/文件夹。
您可以将其与以下部件一起使用:
[atcontenttypes-conf] recipe = plone.recipe.atcontenttypes zope-instance-location = /home/kevin/instance/
通常,我们将此方法与zope实例部分结合使用。这是 基于plone.recipe.zope2instance documentation
的示例[instance] recipe = plone.recipe.zope2instance zope2-location = /path/to/zope2/install user = admin:admin http-address = 8080 eggs = ${buildout:eggs} my.package products = ${buildout:directory}/products zcml = my.package [atcontenttypes-conf] recipe = plone.recipe.atcontenttypes zope-instance-location = ${instance:location} max-file-size = ATImage:1mb ATFile:100mb ATNewsItem:500kb max-image-dimension = ATNewsItem:640,400 ATImage:2048,2048 pil-quality = 95
如果有多实例设置,则可以定义多个实例位置 配方将在每个实例的etc目录中创建配置文件:
[atcontenttypes-conf] recipe = plone.recipe.atcontenttypes zope-instance-location = ${instance1:location} ${instance2:location}
选项
- zope实例位置
- 安装zope实例的路径。如果您同时使用 plone.recipe.zope2instance recipe(如上面的第二个示例),然后 在atcontenttypes之前将其配置为名为'instance'的部分 部分,您可以使用${instance:location}作为此参数。
- 最大文件大小(默认值:否) <选项>此选项允许设置最大文件大小(以字节、KB或MB)。你可以 指定不同的文件大小限制,每种内容类型一个。
- 最大图像尺寸(默认值:0,0)
- PIL质量(默认值:90)
- 此选项影响保存图像的质量。
示例:
max-file-size = ATImage:1mb ATFile:100mb ATNewsItem:500kb
示例:
max-image-dimension = ATNewsItem:640,400 ATImage:2048,2048
报告错误或提出问题
我们在Launchpad上有一个共享的BugTracker和帮助台: https://bugs.launchpad.net/collective.buildout/
更改历史记录
0.2.1(2010-04-07)
- 修复readme的rest语法,使其在pypi上显示得很好
0.2(2010-04-07)
- 允许设置PIL质量 [弗里西]
- 允许为zope实例位置提供多个值 [弗里西]
0.1
- 初步实施。 [kdeldycke]