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
Metadata
Release files for Products.PageTemplateFilledSlots 1.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| Products.PageTemplateFilledSlots-1.0.1.tar.gz | 2.9 kB | Without provenance | Details for Products.PageTemplateFilledSlots-1.0.1.tar.gz |
Release files / Products.PageTemplateFilledSlots-1.0.1.tar.gz
| Download URL | Products.PageTemplateFilledSlots-1.0.1.tar.gz |
|---|---|
| Size | 2.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2d51491208453955bbd6e383537ad9f5b3725a67b824cb02b33c77d6dba5d00c
|
|
BLAKE2b-256 checksum How to use checksums |
84d8b13d1abca9a41ea1da1e568a22b2e210ca21cb0af1444a27d53ef559e11b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for Products.PageTemplateFilledSlots 1.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.