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 products.pagetemplatefilledslots

How to install Products.PageTemplateFilledSlots

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

This product adds a pt_filled_slots methods to page templates, so it is possible from within or before a filled slot see which slots are filled by the calling page template.

For example "python:'content-core' in template.pt_filled_slots" could be called to see if content-core is defined.

After discovering some security-related issues with this approach (access denied) I've also added the option of setting up the method as an External Method:

ID: pt_filled_slots Module name: Products.PageTemplateFilledSlots.pt_filled_slots Function name: pt_filled_slots

And this is called via for example "python:'content-core' in context.pt_filled_slots(template)" in a page template.

1.0.1 (2012-03-27)

  • Added patching of ac_permissions for template, as well as an alternative method of applying pt_filled_slots from an External Method.

1.0 (2012-03-21)

  • Initial release

Subscribe to package updates

Last updated May 23rd, 2012

Download Stats

Last month:1

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.