ZC Buildout recipe to generate an ATContentTypes configuration file in the etc/ folder of a zope instance
Project description
plone.recipe.atcontenttypes
===========================
This recipe generate a custom ATContentTypes configuration file and place 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/etc/
Generally, we use this recipe in combination with a zope instance part. Here is
an example base on plone.recipe.zope2instance documentation
( http://pypi.python.org/pypi/plone.recipe.zope2instance ):
[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
Options
-------
zope-instance-location
The path where your zope instance is 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
Reporting bugs or asking questions
----------------------------------
We have a shared bugtracker and help desk on Launchpad:
https://bugs.launchpad.net/collective.buildout/
Change History
==============
0.1
---
- Initial implementation.
[kdeldycke]
===========================
This recipe generate a custom ATContentTypes configuration file and place 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/etc/
Generally, we use this recipe in combination with a zope instance part. Here is
an example base on plone.recipe.zope2instance documentation
( http://pypi.python.org/pypi/plone.recipe.zope2instance ):
[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
Options
-------
zope-instance-location
The path where your zope instance is 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
Reporting bugs or asking questions
----------------------------------
We have a shared bugtracker and help desk on Launchpad:
https://bugs.launchpad.net/collective.buildout/
Change History
==============
0.1
---
- Initial implementation.
[kdeldycke]
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for plone.recipe.atcontenttypes-0.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | bc4a9278ab7e4f2cf063130b37c055e50517b105a1e0fbad4080c8f6c2dff8ac |
|
MD5 | dfcc058ab995ef35ae7fdf3b72412ae7 |
|
BLAKE2b-256 | 03148bc0ea865fc6f0be38ee90bf6dc0ed477f4b9159292cfbe15d407ce3f70d |
Close
Hashes for plone.recipe.atcontenttypes-0.1-py2.4.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5521f5434982741774f2e1c6260829f5e4a6f1a634f2181bf58a1741b7d4635e |
|
MD5 | ead24be3e1523bebe4986c46b769892e |
|
BLAKE2b-256 | 6531a516c7fa987a9778225d33fd38860f7c54d5c62260de81eae7e43f7f2303 |