Welcome, guest | Sign In | My Account | Store | Cart

Notice! PyPM is being replaced with the ActiveState Platform, which enhances PyPM’s build and deploy capabilities. Create your free Platform account to download ActivePython or customize Python with the packages you require and get automatic updates.

Download
ActivePython
INSTALL>
pypm install collective.setuphandlertools

How to install collective.setuphandlertools

  1. Download and install ActivePython
  2. Open Command Prompt
  3. Type pypm install collective.setuphandlertools
 Python 2.7Python 3.2Python 3.3
Windows (32-bit)
1.0b4 Available View build log
1.0b3 Available View build log
Windows (64-bit)
1.0b4 Available View build log
1.0b3 Available View build log
Mac OS X (10.5+)
1.0b4 Available View build log
1.0b3 Available View build log
Linux (32-bit)
1.0b4 Available View build log
1.0b3 Available View build log
Linux (64-bit)
1.0b4 Available View build log
1.0b3 Available View build log
 
License
GPL
Lastest release
version 1.0b4 on May 23rd, 2012

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.

update_portlet_schema

Helper function to update a schema of an already registered portlet.

TODO

  • Write integration tests.

Author

Johannes Raggam <johannes at raggam dot co dot at> BlueDynamics Alliance, 2010

Credits

Carsten Senger for adding users.

Changelog

1.0.b4 (2012-04-19)
  • Allow color styles in unsafe_html_transform step. Allows colorizing text in TinyMCE. [thet]
  • In create_item and create_item_runner, allow configurations of existing items. Still don't allow creating items over existing ones. [thet]
  • Add options to deactivate hiding or retracting to hide_and_retract, if necessary. [thet]
1.0b3 (2011-02-15)
  • Add update_portlet_schema helper function. [thet]
1.0b2 (2010-11-25)
  • Bugfixes: Missing import and don't call callers_globals for load_file. [thet]
1.0b1 (2010-11-19)
  • Initial release. [thet]

Subscribe to package updates

Last updated May 23rd, 2012

Download Stats

Last month:2

What does the lock icon mean?

Builds marked with a lock icon are only available via PyPM to users with a current ActivePython Business Edition subscription.

Need custom builds or support?

ActivePython Enterprise Edition guarantees priority access to technical support, indemnification, expert consulting and quality-assured language builds.

Plan on re-distributing ActivePython?

Get re-distribution rights and eliminate legal risks with ActivePython OEM Edition.