{ "info": { "author": "Six Feet Up, Inc.", "author_email": "info@sixfeetup.com", "bugtrack_url": null, "classifiers": [ "Framework :: Plone", "Programming Language :: Python", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "Introduction\n============\n\nThis package listens for a IChildSiteCreation event and then adds a `Proxy Properties `_ local utility to that child site.\n\nThis package along with the Proxy Properties package are proof of concepts and are subject to re-writes :)\n\n\n\nLineage Proxy Props Tests\n=========================\n\nFirst a little set up::\n\n >>> import zope.component\n >>> from p4a.subtyper import interfaces\n >>> from Products.CMFCore.interfaces import IPropertiesTool\n\nLet's enable a Child Site.\n\nFirst we go ahead and register the default engine utility.\n\n >>> from p4a.subtyper import engine\n >>> zope.component.provideUtility(engine.Subtyper())\n\nNow we can query the engine as we need information.\n\n >>> subtyper = zope.component.getUtility(interfaces.ISubtyper)\n\n >>> self.login('contributor')\n >>> _ = self.portal.invokeFactory(\"Folder\", \"folder\")\n\nAt first the simple folder we created has no subtype.\n\n >>> subtyper.existing_type(self.portal.folder) is None\n True\n\n >>> subtyper.change_type(self.portal.folder, u'collective.lineage.childsite')\n >>> subtyper.existing_type(self.portal.folder)\n >\n >>> interfaces.ISubtyped.providedBy(self.portal.folder)\n True\n\nThen we test that the subscriber from lineage.proxyprops has done its job and added a ProxyProperties utility to the microsite.\n\n >>> sm = self.portal.folder.getSiteManager()\n >>> sm.getUtility(IPropertiesTool)\n \n\n\n\nChangelog\n=========\n\n0.1 - (2009-07-10)\n------------------\n\n* Initial release", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://svn.plone.org/svn/collective/lineage.proxyprops", "keywords": "", "license": "GPL", "maintainer": null, "maintainer_email": null, "name": "lineage.proxyprops", "package_url": "https://pypi.org/project/lineage.proxyprops/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/lineage.proxyprops/", "project_urls": { "Download": "UNKNOWN", "Homepage": "http://svn.plone.org/svn/collective/lineage.proxyprops" }, "release_url": "https://pypi.org/project/lineage.proxyprops/0.1/", "requires_dist": null, "requires_python": null, "summary": "Small wrapper package to add support for collective.proxyprops", "version": "0.1" }, "last_serial": 794208, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "62797e04067b587ce9babcdcb1cf79d9", "sha256": "dac2adde6d6c73568da6f107cb248e37c0bac32f2c1e35d7ee7c9097e0f51bd9" }, "downloads": -1, "filename": "lineage.proxyprops-0.1.tar.gz", "has_sig": false, "md5_digest": "62797e04067b587ce9babcdcb1cf79d9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9659, "upload_time": "2009-07-10T21:14:26", "url": "https://files.pythonhosted.org/packages/0a/a0/424b640cb5495309d9235e2e10cb914986f7383abc619dbbfb51e8db22bc/lineage.proxyprops-0.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "62797e04067b587ce9babcdcb1cf79d9", "sha256": "dac2adde6d6c73568da6f107cb248e37c0bac32f2c1e35d7ee7c9097e0f51bd9" }, "downloads": -1, "filename": "lineage.proxyprops-0.1.tar.gz", "has_sig": false, "md5_digest": "62797e04067b587ce9babcdcb1cf79d9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9659, "upload_time": "2009-07-10T21:14:26", "url": "https://files.pythonhosted.org/packages/0a/a0/424b640cb5495309d9235e2e10cb914986f7383abc619dbbfb51e8db22bc/lineage.proxyprops-0.1.tar.gz" } ] }