{ "info": { "author": "Stephan Richter, Roger Ineichen and the Zope Community", "author_email": "zope-dev@zope.org", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Environment :: Web Environment", "Framework :: Zope3", "Intended Audience :: Developers", "License :: OSI Approved :: Zope Public License", "Natural Language :: English", "Operating System :: OS Independent", "Programming Language :: Python", "Topic :: Internet :: WWW/HTTP" ], "description": "This package provides an API for ZAM (Zope Application Management).\n\n\n.. contents::\n\n=======\nCHANGES\n=======\n\n\n0.7.0 (2011-01-13)\n------------------\n\n- Updated test set up and tests to run with ZTK 1.0 and current z3c.form\n version.\n\n- Removed dependency on ``zope.app.twisted``, ``zc.configuration`` and most\n of the ``zope.app.*`` packages.\n\n- Using Python's ``doctest`` module instead of depreacted\n ``zope.testing.doctestunit``.\n\n- Fixed package metadata, added doctests top `long_description`.\n\n0.6.1 (2009-07-06)\n------------------\n\n- Removed deprecation warnings.\n\n0.6.0 (2009-07-06)\n------------------\n\n- Updating tests and dependencies to work with latest versions of packages.\n\n0.5.3 (2008-06-07)\n------------------\n\n- A test dependency (zope.app.session) was missing\n (still checking with KGS 3.4)\n\n0.5.2 (2008-04-11)\n------------------\n\n- Simplify ftesting setup, removed duplicated configuration. Make it better\n reusable. Now we can include app.zcml and mixin ftesting.zcml at the same\n time in plugin tests.\n\n0.5.1 (2008-04-13)\n------------------\n\n- Added new plugin layer for zamplugin.contents plugin\n\n0.5.0 (2008-04-11)\n------------------\n\n- Now plugin provides it's own management form. By default the PluginManagement\n page can be used which is a mixin of IContentProvider and IForm. This makes\n it possible to write intelligent plugin management views which can do more\n then just install and uninstall.\n\n- Initial Release\n\n\n=======\nzam.api\n=======\n\nThis package contains the Zope Application Management api. We support a test\nskin for this package which allows us to test the plugin management page.\nThere is also a ZAMTest site available whcih this test will use. This test site\ncan also be used in any other zam.* or zamplugin.* package.\n\nLogin as manager first:\n\n >>> from zope.testbrowser.testing import Browser\n >>> manager = Browser()\n >>> manager.addHeader('Authorization', 'Basic mgr:mgrpw')\n\nCheck if we can access the page.html view which is registred in the\nftesting.zcml file with our skin:\n\n >>> manager = Browser()\n >>> manager.handleErrors = False\n >>> manager.addHeader('Authorization', 'Basic mgr:mgrpw')\n >>> skinURL = 'http://localhost/++skin++ZAMTest/index.html'\n >>> manager.open(skinURL)\n >>> manager.url\n 'http://localhost/++skin++ZAMTest/index.html'\n\nNow let's create a test site called ``first`` and add them to the root:\n\n >>> import zam.api.testing\n >>> root = getRootFolder()\n >>> firstSite = zam.api.testing.ZAMTestSite(u'first')\n >>> root['first'] = firstSite\n\nAnd create another one called ``second``:\n\n >>> secondSite = zam.api.testing.ZAMTestSite(u'second')\n >>> root['second'] = secondSite\n\nGo the the new zam test site:\n\n >>> firstSiteURL = 'http://localhost/++skin++ZAMTest/first'\n >>> manager.open(firstSiteURL + '/index.html')\n >>> manager.url\n 'http://localhost/++skin++ZAMTest/first/index.html'\n\nand to the ``second`` site:\n\n >>> secondSiteURL = 'http://localhost/++skin++ZAMTest/second'\n >>> manager.open(secondSiteURL + '/index.html')\n >>> manager.url\n 'http://localhost/++skin++ZAMTest/second/index.html'\n\nand go to the ``plugins.html`` page:\n\n >>> manager.open(firstSiteURL + '/plugins.html')\n\nNow we see the plugins.html page:\n\n >>> print manager.contents\n \n \n
\n