Skip to main content
Archived

This project has been archived by its maintainers, and is no longer receiving any updates.

Usage

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:

[atcontenttypes-conf]
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

[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

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:

[atcontenttypes-conf]
recipe                 = plone.recipe.atcontenttypes
zope-instance-location =
    ${instance1:location}
    ${instance2:location}

Options

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.

Example:

max-file-size = ATImage:1mb
                ATFile:100mb
                ATNewsItem:500kb
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.

Example:

max-image-dimension = ATNewsItem:640,400
                      ATImage:2048,2048
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: https://bugs.launchpad.net/collective.buildout/

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]

0.1

  • Initial implementation. [kdeldycke]

Download files

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

Source Distribution

plone.recipe.atcontenttypes-0.2.1.zip (12.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

plone.recipe.atcontenttypes-0.2.1-py2.6.egg (8.1 kB view details)

Uploaded Egg

File details

Details for the file plone.recipe.atcontenttypes-0.2.1.zip.

File metadata

File hashes

Hashes for plone.recipe.atcontenttypes-0.2.1.zip
Algorithm Hash digest
SHA256 41e3f02a1ddea6281ebf9844b9302170d911d8c463f210120b17f327abc326fe
MD5 5ae053efcf09d2877b80515869b9b974
BLAKE2b-256 b189c0ab364c211fac2df855f31c03059ebc4494c714d6ac3a0bb1ccc5ee92b6

See more details on using hashes here.

File details

Details for the file plone.recipe.atcontenttypes-0.2.1-py2.6.egg.

File metadata

File hashes

Hashes for plone.recipe.atcontenttypes-0.2.1-py2.6.egg
Algorithm Hash digest
SHA256 f60c4ca7d34b601d4c0cdf01e1edcb9efef715a155ab57f1b1ddedac806638d2
MD5 8188d36fe8696194af044fbd3c2cedef
BLAKE2b-256 028734ba91d478a619442d431ed7189b098f869bad8bd0e154f6ee04d8753a5e

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.2.1 This release

2 files

0.2

1 file

0.1

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page