{ "info": { "author": "Giorgio Borelli", "author_email": "giorgio@giorgioborelli.it", "bugtrack_url": null, "classifiers": [ "Framework :: Plone", "Intended Audience :: Developers", "License :: OSI Approved :: GNU General Public License (GPL)", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "Overview\n========\n\ncollective.calameo provides a simple content type based on Archetypes which integrates the Calameo \nPDF viewer in Plone site.\n\nFor more informations about Calameo visit - http://www.calameo.com\n\n.. contents::\n\n\nRequirements\n============\n\nPlone 3.0 or newer is required. The package has been tested with Plone 3.3\n\nInstallation\n============\n\nTo get started you will simply need to add the package to your \"eggs\" and \"zcml\" sections, run buildout, restart your Plone instance and install the \"Collective Calameo Pdf\" package using the quick-installer or via the \"Add-on Products\" section in \"Site Setup\".\n\nYou can find an example buildout in code repository: http://svn.plone.org/svn/collective/collective.calameo/buildout\n\nThe Calameo PDF content type\n============================\n\nIn this section we are tesing the Calameo PDF content type by performing\nbasic operations like adding, updadating and deleting Calameo PDF content\nitems.\n\n >>> from Products.Five.testbrowser import Browser\n >>> browser = Browser()\n >>> portal_url = self.portal.absolute_url()\n\n >>> self.portal.error_log._ignored_exceptions = ()\n >>> from Products.PloneTestCase.setup import portal_owner, default_password\n >>> browser.open(portal_url)\n\nWe 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\nAdding a new Calameo PDF content item\n-------------------------------------\n\nWe use the 'Add new' menu to add a new content item.\n\n >>> browser.getLink('Add new').click()\n\nThen we select the type of item we want to add. In this case we select\n'Calameo PDF' and click the 'Add' button to get to the add form.\n\n >>> browser.getControl('Calameo PDF').click()\n >>> browser.getControl(name='form.button.Add').click()\n >>> 'Calameo PDF' in browser.contents\n True\n\nNow we fill the form and submit it.\n\n >>> browser.getControl(name='title').value = 'Calameo PDF Sample'\n >>> browser.getControl(name='calameoid').value = '000045549bbd850da2f2e'\n >>> browser.getControl(name='width').value = '500'\n >>> browser.getControl(name='height').value = '300'\n >>> browser.getControl('Save').click()\n >>> 'Changes saved' in browser.contents\n True\n\nIn the default view we have the calameo flash with the right parameters\n >>> print browser.contents\n \n \n \n \n \n \n \n \n \n ...\n\n\nAnd we are done! We added a new 'Calameo PDF' content item to the portal.\n\n\nCalameo macro\n-------------\n\nWe can also use directly collective.calameo macro in our page templates\n\nExample: \n\n::\n\n
\n \n
\n\n\nContributors\n============\n\nGiorgio Borelli, Author\n\n\nChangelog\n=========\n\n0.1 (2009-09-02)\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://plone.org/products/collective.calameo", "keywords": "", "license": "GPL", "maintainer": null, "maintainer_email": null, "name": "collective.calameo", "package_url": "https://pypi.org/project/collective.calameo/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/collective.calameo/", "project_urls": { "Download": "UNKNOWN", "Homepage": "http://plone.org/products/collective.calameo" }, "release_url": "https://pypi.org/project/collective.calameo/0.1/", "requires_dist": null, "requires_python": null, "summary": "Publish your PDF document in Plone with Calameo", "version": "0.1" }, "last_serial": 122171, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "4caae6cb764ea039769c2dd53f30a45c", "sha256": "1d7de6d35a82c6626f1513ecb604958ea4640267cee57d835b67696a0fbaffab" }, "downloads": -1, "filename": "collective.calameo-0.1.tar.gz", "has_sig": false, "md5_digest": "4caae6cb764ea039769c2dd53f30a45c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 18373, "upload_time": "2009-09-02T14:44:57", "url": "https://files.pythonhosted.org/packages/4c/1d/97879481e9a7724a61423295e9f3684536efe12b8e029b77712ebb7e5593/collective.calameo-0.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "4caae6cb764ea039769c2dd53f30a45c", "sha256": "1d7de6d35a82c6626f1513ecb604958ea4640267cee57d835b67696a0fbaffab" }, "downloads": -1, "filename": "collective.calameo-0.1.tar.gz", "has_sig": false, "md5_digest": "4caae6cb764ea039769c2dd53f30a45c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 18373, "upload_time": "2009-09-02T14:44:57", "url": "https://files.pythonhosted.org/packages/4c/1d/97879481e9a7724a61423295e9f3684536efe12b8e029b77712ebb7e5593/collective.calameo-0.1.tar.gz" } ] }