{ "info": { "author": "Peter Dyson", "author_email": "pdyson@cannonscientific.com", "bugtrack_url": null, "classifiers": [ "Framework :: Plone", "Intended Audience :: Developers", "License :: OSI Approved :: GNU General Public License (GPL)", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": ".. contents::\n \n .. Note!\n -----\n Update the following URLs to point to your:\n \n - code repository\n - bug tracker\n - questions/comments feedback mail\n (do not set a real mail, to avoid spams)\n \n Or remove it if not used.\n \n - Code repository: http://svn.somewhere.com/...\n - Questions and comments to somemailing_list\n - Report bugs at http://bug.somewhere.com/..\n \n \n Change history\n **************\n \n Changelog\n =========\n \n 0.1 (xxxx-xx-xx)\n ----------------\n \n - Created recipe with ZopeSkel\n [Peter Dyson]\n \n Detailed Documentation\n **********************\n \n Introduction\n ============\n \n This is a full-blown functional test. The emphasis here is on testing what\n the user may input and see, and the system is largely tested as a black box.\n We use PloneTestCase to set up this test as well, so we have a full Plone site\n to play with. We *can* inspect the state of the portal, e.g. using\n self.portal and self.folder, but it is often frowned upon since you are not\n treating the system as a black box. Also, if you, for example, log in or set\n roles using calls like self.setRoles(), these are not reflected in the test\n browser, which runs as a separate session.\n \n Being a doctest, we can tell a story here.\n \n First, we must perform some setup. We use the testbrowser that is shipped\n with Five, as this provides proper Zope 2 integration. Most of the\n documentation, though, is in the underlying zope.testbrower package.\n \n >>> from Products.Five.testbrowser import Browser\n >>> browser = Browser()\n >>> portal_url = self.portal.absolute_url()\n \n The following is useful when writing and debugging testbrowser tests. It lets\n us see all error messages in the error_log.\n \n >>> self.portal.error_log._ignored_exceptions = ()\n \n With that in place, we can go to the portal front page and log in. We will\n do this using the default user from PloneTestCase:\n \n >>> from Products.PloneTestCase.setup import portal_owner, default_password\n \n >>> browser.open(portal_url)\n \n We have the login portlet, so let's use that.\n \n >>> browser.getControl(name='__ac_name').value = portal_owner\n >>> browser.getControl(name='__ac_password').value = default_password\n >>> browser.getControl(name='submit').click()\n \n Here, we set the value of the fields on the login form and then simulate a\n submit click.\n \n We then test that we are still on the portal front page:\n \n >>> browser.url == portal_url\n True\n \n And we ensure that we get the friendly logged-in message:\n \n >>> \"You are now logged in\" in browser.contents\n True\n \n \n -*- extra stuff goes here -*-\n The fourthplinth content type\n ===============================\n \n In this section we are tesing the fourthplinth content type by performing\n basic operations like adding, updadating and deleting fourthplinth content\n items.\n \n Adding a new fourthplinth content item\n --------------------------------\n \n We use the 'Add new' menu to add a new content item.\n \n >>> browser.getLink('Add new').click()\n \n Then we select the type of item we want to add. In this case we select\n 'fourthplinth' and click the 'Add' button to get to the add form.\n \n >>> browser.getControl('fourthplinth').click()\n >>> browser.getControl(name='form.button.Add').click()\n >>> 'fourthplinth' in browser.contents\n True\n \n Now we fill the form and submit it.\n \n >>> browser.getControl(name='title').value = 'fourthplinth Sample'\n >>> browser.getControl('Save').click()\n >>> 'Changes saved' in browser.contents\n True\n \n And we are done! We added a new 'fourthplinth' content item to the portal.\n \n Updating an existing fourthplinth content item\n ---------------------------------------\n \n Let's click on the 'edit' tab and update the object attribute values.\n \n >>> browser.getLink('Edit').click()\n >>> browser.getControl(name='title').value = 'New fourthplinth Sample'\n >>> browser.getControl('Save').click()\n \n We check that the changes were applied.\n \n >>> 'Changes saved' in browser.contents\n True\n >>> 'New fourthplinth Sample' in browser.contents\n True\n \n Removing a/an fourthplinth content item\n --------------------------------\n \n If we go to the home page, we can see a tab with the 'New fourthplinth\n Sample' title in the global navigation tabs.\n \n >>> browser.open(portal_url)\n >>> 'New fourthplinth Sample' in browser.contents\n True\n \n Now we are going to delete the 'New fourthplinth Sample' object. First we\n go to the contents tab and select the 'New fourthplinth Sample' for\n deletion.\n \n >>> browser.getLink('Contents').click()\n >>> browser.getControl('New fourthplinth Sample').click()\n \n We click on the 'Delete' button.\n \n >>> browser.getControl('Delete').click()\n >>> 'Item(s) deleted' in browser.contents\n True\n \n So, if we go back to the home page, there is no longer a 'New fourthplinth\n Sample' tab.\n \n >>> browser.open(portal_url)\n >>> 'New fourthplinth Sample' in browser.contents\n False\n \n Adding a new fourthplinth content item as contributor\n ------------------------------------------------\n \n Not only site managers are allowed to add fourthplinth content items, but\n also site contributors.\n \n Let's logout and then login as 'contributor', a portal member that has the\n contributor role assigned.\n \n >>> browser.getLink('Log out').click()\n >>> browser.open(portal_url)\n >>> browser.getControl(name='__ac_name').value = 'contributor'\n >>> browser.getControl(name='__ac_password').value = default_password\n >>> browser.getControl(name='submit').click()\n >>> browser.open(portal_url)\n \n We use the 'Add new' menu to add a new content item.\n \n >>> browser.getLink('Add new').click()\n \n We select 'fourthplinth' and click the 'Add' button to get to the add form.\n \n >>> browser.getControl('fourthplinth').click()\n >>> browser.getControl(name='form.button.Add').click()\n >>> 'fourthplinth' in browser.contents\n True\n \n Now we fill the form and submit it.\n \n >>> browser.getControl(name='title').value = 'fourthplinth Sample'\n >>> browser.getControl('Save').click()\n >>> 'Changes saved' in browser.contents\n True\n \n Done! We added a new fourthplinth content item logged in as contributor.\n \n Finally, let's login back as manager.\n \n >>> browser.getLink('Log out').click()\n >>> browser.open(portal_url)\n >>> browser.getControl(name='__ac_name').value = portal_owner\n >>> browser.getControl(name='__ac_password').value = default_password\n >>> browser.getControl(name='submit').click()\n >>> browser.open(portal_url)\n \n \n \n \n Contributors\n ************\n \n Peter Dyson, Author\n \n \n Download\n ********", "description_content_type": null, "docs_url": null, "download_url": null, "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "www.cannonscientific.com", "keywords": "trafalgar square fourth plinth arts plone cannon scientific", "license": "GPL", "maintainer": null, "maintainer_email": null, "name": "csci.fourthplinth", "package_url": "https://pypi.org/project/csci.fourthplinth/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/csci.fourthplinth/", "project_urls": { "Homepage": "www.cannonscientific.com" }, "release_url": "https://pypi.org/project/csci.fourthplinth/0.1dev/", "requires_dist": null, "requires_python": null, "summary": "Post the fourthplinth schedule to twitter daily", "version": "0.1dev" }, "last_serial": 788564, "releases": { "0.1dev": [ { "comment_text": "", "digests": { "md5": "1386847eda33b535035051bcb04e441d", "sha256": "a78f5a755f66e9dfe4fd02b84a61552e474d13e0ae0df5046331f63ad7ee80c7" }, "downloads": -1, "filename": "csci.fourthplinth-0.1dev-py2.4.egg", "has_sig": false, "md5_digest": "1386847eda33b535035051bcb04e441d", "packagetype": "bdist_egg", "python_version": "2.4", "requires_python": null, "size": 31793, "upload_time": "2009-09-07T11:33:02", "url": "https://files.pythonhosted.org/packages/1c/8c/6090c400f862585ee9c29fc32a1c27f800671605b00fbdc98f416ec5e683/csci.fourthplinth-0.1dev-py2.4.egg" }, { "comment_text": "", "digests": { "md5": "0bb47a8307b4890f44ad6380fd7660db", "sha256": "bbbf071d7aea3c05ace4fe6dcb371acf88fb75b871ef3ce6a759d362f43943db" }, "downloads": -1, "filename": "csci.fourthplinth-0.2dev-py2.4.egg", "has_sig": false, "md5_digest": "0bb47a8307b4890f44ad6380fd7660db", "packagetype": "bdist_egg", "python_version": "2.4", "requires_python": null, "size": 31997, "upload_time": "2009-09-07T12:52:13", "url": "https://files.pythonhosted.org/packages/65/ea/69641c00d0b5170af79de6bb8830418453c181eb0002743b922429076226/csci.fourthplinth-0.2dev-py2.4.egg" }, { "comment_text": "", "digests": { "md5": "f60e80f37bb4f45403ec1449c771c857", "sha256": "1e44e3c076b5392e0259780e66a5a6a045e278b0ab10c0654aed9aa101b9ae06" }, "downloads": -1, "filename": "csci.fourthplinth-0.3dev-py2.4.egg", "has_sig": false, "md5_digest": "f60e80f37bb4f45403ec1449c771c857", "packagetype": "bdist_egg", "python_version": "2.4", "requires_python": null, "size": 29001, "upload_time": "2009-09-07T15:37:19", "url": "https://files.pythonhosted.org/packages/ab/17/9a4d97ae71c0b77b201587259c80667d4733fbdf01fbb918e4a6b5c64d86/csci.fourthplinth-0.3dev-py2.4.egg" }, { "comment_text": "", "digests": { "md5": "0a1d12e53a0e1e309a54f6d90e7dfa1a", "sha256": "15ac4312ba195c6f4e1f50052b29b9aabb63200fbf5d3e35d03cf01dd4a04082" }, "downloads": -1, "filename": "csci.fourthplinth-0.4dev-py2.4.egg", "has_sig": false, "md5_digest": "0a1d12e53a0e1e309a54f6d90e7dfa1a", "packagetype": "bdist_egg", "python_version": "2.4", "requires_python": null, "size": 29265, "upload_time": "2009-09-07T16:14:49", "url": "https://files.pythonhosted.org/packages/bb/58/9ab7e5dcad1ba0e8cebbb0730d39da82f55830a33c23bd01cbdc67544669/csci.fourthplinth-0.4dev-py2.4.egg" }, { "comment_text": "", "digests": { "md5": "a6235068e1eccc65617e3fd1b2de3d78", "sha256": "d3aee2f58560b5ee6d849b7b31dafe937daf0b19c29208f10a1b9424d31eeabd" }, "downloads": -1, "filename": "csci.fourthplinth-0.5dev-py2.4.egg", "has_sig": false, "md5_digest": "a6235068e1eccc65617e3fd1b2de3d78", "packagetype": "bdist_egg", "python_version": "2.4", "requires_python": null, "size": 34034, "upload_time": "2009-09-10T15:38:46", "url": "https://files.pythonhosted.org/packages/c1/d9/cdc04f5a2faddbb6199d3e893f0fe187655e3654a51970e57c80d64fff85/csci.fourthplinth-0.5dev-py2.4.egg" }, { "comment_text": "", "digests": { "md5": "db2c5f6bceef070ed35e1af0626e90c7", "sha256": "fac7a71f04241e5ecdc167beb3c877f589fcb0a5c0daac3e99d706b0b6fd2c0f" }, "downloads": -1, "filename": "csci.fourthplinth-0.6dev-py2.4.egg", "has_sig": false, "md5_digest": "db2c5f6bceef070ed35e1af0626e90c7", "packagetype": "bdist_egg", "python_version": "2.4", "requires_python": null, "size": 34398, "upload_time": "2009-09-16T12:10:00", "url": "https://files.pythonhosted.org/packages/85/b5/2bed4017863a06336194cf00f938a9e9f43d454265f65cbac26c9ed5775f/csci.fourthplinth-0.6dev-py2.4.egg" }, { "comment_text": "", "digests": { "md5": "c40654dd10e9b4b8910d6fef2abc0bfe", "sha256": "f564aa31f978616416aeec69643de8da8f9467bfce93f9c5b1a9c7a946eaf9b5" }, "downloads": -1, "filename": "csci.fourthplinth-0.7dev-py2.4.egg", "has_sig": false, "md5_digest": "c40654dd10e9b4b8910d6fef2abc0bfe", "packagetype": "bdist_egg", "python_version": "2.4", "requires_python": null, "size": 34533, "upload_time": "2009-09-16T16:06:46", "url": "https://files.pythonhosted.org/packages/1e/ea/7fce68e49d57e933b31b6162912183d6ee80a11e8253ca11819a0da09c39/csci.fourthplinth-0.7dev-py2.4.egg" }, { "comment_text": "", "digests": { "md5": "9f32b07e2ccd7c1b67096f265dca5289", "sha256": "6240ae2cb3143a27731293db967e9109d8e2a9d9da154fda7780d4140659f842" }, "downloads": -1, "filename": "csci.fourthplinth-0.8dev-py2.4.egg", "has_sig": false, "md5_digest": "9f32b07e2ccd7c1b67096f265dca5289", "packagetype": "bdist_egg", "python_version": "2.4", "requires_python": null, "size": 34818, "upload_time": "2009-09-18T14:09:32", "url": "https://files.pythonhosted.org/packages/c8/0e/559a16cc35d54496897a11b2f9c4e04bfaeff7103dd14dc6a81c9beb8ab7/csci.fourthplinth-0.8dev-py2.4.egg" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "1386847eda33b535035051bcb04e441d", "sha256": "a78f5a755f66e9dfe4fd02b84a61552e474d13e0ae0df5046331f63ad7ee80c7" }, "downloads": -1, "filename": "csci.fourthplinth-0.1dev-py2.4.egg", "has_sig": false, "md5_digest": "1386847eda33b535035051bcb04e441d", "packagetype": "bdist_egg", "python_version": "2.4", "requires_python": null, "size": 31793, "upload_time": "2009-09-07T11:33:02", "url": "https://files.pythonhosted.org/packages/1c/8c/6090c400f862585ee9c29fc32a1c27f800671605b00fbdc98f416ec5e683/csci.fourthplinth-0.1dev-py2.4.egg" }, { "comment_text": "", "digests": { "md5": "0bb47a8307b4890f44ad6380fd7660db", "sha256": "bbbf071d7aea3c05ace4fe6dcb371acf88fb75b871ef3ce6a759d362f43943db" }, "downloads": -1, "filename": "csci.fourthplinth-0.2dev-py2.4.egg", "has_sig": false, "md5_digest": "0bb47a8307b4890f44ad6380fd7660db", "packagetype": "bdist_egg", "python_version": "2.4", "requires_python": null, "size": 31997, "upload_time": "2009-09-07T12:52:13", "url": "https://files.pythonhosted.org/packages/65/ea/69641c00d0b5170af79de6bb8830418453c181eb0002743b922429076226/csci.fourthplinth-0.2dev-py2.4.egg" }, { "comment_text": "", "digests": { "md5": "f60e80f37bb4f45403ec1449c771c857", "sha256": "1e44e3c076b5392e0259780e66a5a6a045e278b0ab10c0654aed9aa101b9ae06" }, "downloads": -1, "filename": "csci.fourthplinth-0.3dev-py2.4.egg", "has_sig": false, "md5_digest": "f60e80f37bb4f45403ec1449c771c857", "packagetype": "bdist_egg", "python_version": "2.4", "requires_python": null, "size": 29001, "upload_time": "2009-09-07T15:37:19", "url": "https://files.pythonhosted.org/packages/ab/17/9a4d97ae71c0b77b201587259c80667d4733fbdf01fbb918e4a6b5c64d86/csci.fourthplinth-0.3dev-py2.4.egg" }, { "comment_text": "", "digests": { "md5": "0a1d12e53a0e1e309a54f6d90e7dfa1a", "sha256": "15ac4312ba195c6f4e1f50052b29b9aabb63200fbf5d3e35d03cf01dd4a04082" }, "downloads": -1, "filename": "csci.fourthplinth-0.4dev-py2.4.egg", "has_sig": false, "md5_digest": "0a1d12e53a0e1e309a54f6d90e7dfa1a", "packagetype": "bdist_egg", "python_version": "2.4", "requires_python": null, "size": 29265, "upload_time": "2009-09-07T16:14:49", "url": "https://files.pythonhosted.org/packages/bb/58/9ab7e5dcad1ba0e8cebbb0730d39da82f55830a33c23bd01cbdc67544669/csci.fourthplinth-0.4dev-py2.4.egg" }, { "comment_text": "", "digests": { "md5": "a6235068e1eccc65617e3fd1b2de3d78", "sha256": "d3aee2f58560b5ee6d849b7b31dafe937daf0b19c29208f10a1b9424d31eeabd" }, "downloads": -1, "filename": "csci.fourthplinth-0.5dev-py2.4.egg", "has_sig": false, "md5_digest": "a6235068e1eccc65617e3fd1b2de3d78", "packagetype": "bdist_egg", "python_version": "2.4", "requires_python": null, "size": 34034, "upload_time": "2009-09-10T15:38:46", "url": "https://files.pythonhosted.org/packages/c1/d9/cdc04f5a2faddbb6199d3e893f0fe187655e3654a51970e57c80d64fff85/csci.fourthplinth-0.5dev-py2.4.egg" }, { "comment_text": "", "digests": { "md5": "db2c5f6bceef070ed35e1af0626e90c7", "sha256": "fac7a71f04241e5ecdc167beb3c877f589fcb0a5c0daac3e99d706b0b6fd2c0f" }, "downloads": -1, "filename": "csci.fourthplinth-0.6dev-py2.4.egg", "has_sig": false, "md5_digest": "db2c5f6bceef070ed35e1af0626e90c7", "packagetype": "bdist_egg", "python_version": "2.4", "requires_python": null, "size": 34398, "upload_time": "2009-09-16T12:10:00", "url": "https://files.pythonhosted.org/packages/85/b5/2bed4017863a06336194cf00f938a9e9f43d454265f65cbac26c9ed5775f/csci.fourthplinth-0.6dev-py2.4.egg" }, { "comment_text": "", "digests": { "md5": "c40654dd10e9b4b8910d6fef2abc0bfe", "sha256": "f564aa31f978616416aeec69643de8da8f9467bfce93f9c5b1a9c7a946eaf9b5" }, "downloads": -1, "filename": "csci.fourthplinth-0.7dev-py2.4.egg", "has_sig": false, "md5_digest": "c40654dd10e9b4b8910d6fef2abc0bfe", "packagetype": "bdist_egg", "python_version": "2.4", "requires_python": null, "size": 34533, "upload_time": "2009-09-16T16:06:46", "url": "https://files.pythonhosted.org/packages/1e/ea/7fce68e49d57e933b31b6162912183d6ee80a11e8253ca11819a0da09c39/csci.fourthplinth-0.7dev-py2.4.egg" }, { "comment_text": "", "digests": { "md5": "9f32b07e2ccd7c1b67096f265dca5289", "sha256": "6240ae2cb3143a27731293db967e9109d8e2a9d9da154fda7780d4140659f842" }, "downloads": -1, "filename": "csci.fourthplinth-0.8dev-py2.4.egg", "has_sig": false, "md5_digest": "9f32b07e2ccd7c1b67096f265dca5289", "packagetype": "bdist_egg", "python_version": "2.4", "requires_python": null, "size": 34818, "upload_time": "2009-09-18T14:09:32", "url": "https://files.pythonhosted.org/packages/c8/0e/559a16cc35d54496897a11b2f9c4e04bfaeff7103dd14dc6a81c9beb8ab7/csci.fourthplinth-0.8dev-py2.4.egg" } ] }