Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

ZC Buildout recipe to generate an ATContentTypes configuration file in the etc/ folder of a zope instance

Project Description


This recipe generates a custom ATContentTypes configuration file and places it in the etc/ folder of your zope instance.

You can use it with a part like this:

recipe                 = plone.recipe.atcontenttypes
zope-instance-location = /home/kevin/instance/

Generally, we use this recipe in combination with a zope instance part. Here is an example base on plone.recipe.zope2instance documentation

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

recipe                 = plone.recipe.atcontenttypes
zope-instance-location = ${instance:location}
max-file-size          = ATImage:1mb
max-image-dimension    = ATNewsItem:640,400
pil-quality            = 95

In case you have a multi-instance setup you can define multiple instance locations and the recipe will create config files in each instance’s etc directory:

recipe                 = plone.recipe.atcontenttypes
zope-instance-location =


The path(s) where your zope instance(s) is(are) installed. If you are also using the plone.recipe.zope2instance recipe (like the second example above), and you have that configured as a part called ‘instance’ prior to the atcontenttypes part, you can use ${instance:location} for this parameter.
max-file-size (default: no)

This option let you set the maximum file size (in byte, kb or mb). You can specify different file size limit, one for each content type.


max-file-size = ATImage:1mb
max-image-dimension (default: 0,0)

This option let you set the maximum image dimension (“w, h”). “0,0” means no rescaling of the original image. This option is per-content-type and its syntax is the same as above.


max-image-dimension = ATNewsItem:640,400
pil-quality (default: 90)
This option affects the quality images get saved with.

Reporting bugs or asking questions

We have a shared bugtracker and help desk on Launchpad:

Change History

0.2.1 (2010-04-07)

  • fix rest syntax of README to make it display nicely on pypi

0.2 (2010-04-07)

  • allow to set pil quality [fRiSi]
  • allow to supply multiple values to zope-instance-location [fRiSi]


  • Initial implementation. [kdeldycke]

Release History

This version
History Node


History Node


History Node


Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, Size & Hash SHA256 Hash Help File Type Python Version Upload Date
(8.1 kB) Copy SHA256 Hash SHA256
Egg 2.6 Apr 7, 2010
(12.3 kB) Copy SHA256 Hash SHA256
Source None Apr 7, 2010

Supported By

Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Google Google Cloud Servers