Tools for setting up a Plone site.
Project description
Introduction
Tools for Plone setuphandler steps when running Generic Setup import Steps.
add_calendar_type
Add calendar types to Products.CMFPlone.CalendarTool.
add_group
Add a group to plone.
add_user
Add a user to plone.
create_item
Create an Archetype content item in the given context. This function is called by create_item_runner for each content found in it’s given data structure.
create_item_runner
Create Archetype contents from a list of dictionaries, where each dictionary describes a content item and optionally it’s childs.
delete_items
Remove content items from a context.
hide_and_retract
Exclude an item from the navigation and retract it, if it was published. For example, to hide “Members” folder, if it shouldn’t be shown to anonymous users.
isNotThisProfile
Return True if marker_file CANNOT be found in the current profile’s context. Used to exit a setuphandler step if it isn’t called in profile’s context.
load_file
Load a file from a directory and return it’s data.
setup_portal_transforms
Persistently configure a specific transformation in portal_transforms.
unsafe_html_transform
Configure safe_html transformation from portal_transforms, so that it also allows embed and object elements. Also configure the style_whitelist to allow some styles needed for TinyMCE to bypass a limitation found in beta versions of Plone 4.0.
TODO
Write integration tests.
Credits
Carsten Senger for adding users.
Changelog
1.0b1 (2010-11-19)
Initial release
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 Distributions
Built Distribution
Hashes for collective.setuphandlertools-1.0b1-py2.6.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | 28484f4bdc6543a6981ee37d4a8daf964625230f40b0404942664dfb47bdd17f |
|
MD5 | d8d0d272fa4a9399014fe9c1d5d981d7 |
|
BLAKE2b-256 | 840764b2ec1258a1bae8ff12497262d39be5616f2c2bff39eb1c298c44fce4e7 |