Skip to main content

Introduction

This package listens for a IChildSiteCreation event and then adds a Proxy Properties local utility to that child site.

This package along with the Proxy Properties package are proof of concepts and are subject to re-writes :)

Lineage Proxy Props Tests

First a little set up:

>>> import zope.component
>>> from p4a.subtyper import interfaces
>>> from Products.CMFCore.interfaces import IPropertiesTool

Let’s enable a Child Site.

First we go ahead and register the default engine utility.

>>> from p4a.subtyper import engine
>>> zope.component.provideUtility(engine.Subtyper())

Now we can query the engine as we need information.

>>> subtyper = zope.component.getUtility(interfaces.ISubtyper)
>>> self.login('contributor')
>>> _ = self.portal.invokeFactory("Folder", "folder")

At first the simple folder we created has no subtype.

>>> subtyper.existing_type(self.portal.folder) is None
True
>>> subtyper.change_type(self.portal.folder, u'collective.lineage.childsite')
>>> subtyper.existing_type(self.portal.folder)
<DescriptorWithName name=collective.lineage.childsite; descriptor=<collective.lineage.descriptors.ChildSiteDescriptor ...>>
>>> interfaces.ISubtyped.providedBy(self.portal.folder)
True

Then we test that the subscriber from lineage.proxyprops has done its job and added a ProxyProperties utility to the microsite.

>>> sm = self.portal.folder.getSiteManager()
>>> sm.getUtility(IPropertiesTool)
<collective.proxyproperties.ProxyProperties ...>

Changelog

0.1 - (2009-07-10)

  • Initial release

Metadata

Release files for lineage.proxyprops 0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for lineage.proxyprops 0.1
File Size Uploaded Provenance Actions
lineage.proxyprops-0.1.tar.gz 9.7 kB Without provenance Details for lineage.proxyprops-0.1.tar.gz

Release files / lineage.proxyprops-0.1.tar.gz

Download URL lineage.proxyprops-0.1.tar.gz
Size 9.7 kB
Tags Source
SHA-256 checksum
How to use checksums
dac2adde6d6c73568da6f107cb248e37c0bac32f2c1e35d7ee7c9097e0f51bd9
BLAKE2b-256 checksum
How to use checksums
0aa0424b640cb5495309d9235e2e10cb914986f7383abc619dbbfb51e8db22bc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for lineage.proxyprops 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.

Release history Release notifications | RSS feed

This release

0.1 This release

1 release file No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page