This is a pre-production deployment of Warehouse, however changes made here WILL affect the production instance of PyPI.
Latest Version Dependencies status unknown Test status unknown Test coverage unknown
Project Description


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
>>> 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)

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


0.1 - (2009-07-10)

  • Initial release
Release History

Release History


This version

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

Download Files

Download Files

TODO: Brief introduction on what you do with files - including link to relevant help section.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
lineage.proxyprops-0.1.tar.gz (9.7 kB) Copy SHA256 Checksum SHA256 Source Jul 10, 2009

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting