{ "info": { "author": "Cykooz", "author_email": "saikuz@mail.ru", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "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 project is a fork of gocept.sequence (http://pypi.python.org/pypi/gocept.sequence/)\noriginally created by Daniel Havlik and Sebastian Wehrmann.*\n\n\n===============\ncykooz.sequence\n===============\n\nGenerates a persistent sequence.\n\nSequences\n=========\n\n>>> import persistent\n>>> import zope.annotation.interfaces\n>>> from zope.interface import implements\n\n\nWe need a testobject, where the SequenceGenerator stores his data:\n\n>>> class Dummy(persistent.Persistent):\n... implements(zope.annotation.interfaces.IAttributeAnnotatable)\n\n>>> test_object = Dummy()\n\n\nYou get a SequenceGenerator by adapting to ISequenceGenerator:\n\n>>> from cykooz.sequence.interfaces import ISequenceGenerator\n>>> seq_gen = ISequenceGenerator(test_object)\n\n\nYou get a sequence like this:\n\n>>> seq_gen.getNextValue()\n1\n>>> seq_gen.getNextValue()\n2\n>>> seq_gen.getNextValue()\n3\n\n\nYou can also set the generator to a value:\n\n>>> seq_gen.setNextValue(1)\n>>> seq_gen.getNextValue()\n1\n\n>>> seq_gen.setNextValue(5)\n>>> seq_gen.getNextValue()\n5\n>>> seq_gen.getNextValue()\n6\n>>> seq_gen.getNextValue()\n7\n>>> seq_gen.getNextValue()\n8\n\n\nBut setNextValue only accepts integer arguments:\n\n>>> seq_gen.setNextValue('1')\nTraceback (most recent call last):\n...\nValueError: setNextValue expected Integer, found.\n\n>>> seq_gen.setNextValue(3.14)\nTraceback (most recent call last):\n...\nValueError: setNextValue expected Integer, found.\n\n\nChanges\n=======\n\n1.0.2 (2011-05-17)\n------------------\n\n- Fix tests.\n\n1.0.1 (2011-05-16)\n------------------\n\n- Fix interface name for getting annotations.\n\n1.0.0 (2011-04-14)\n------------------\n\n- Removed old migration code.\n- Removed the dependency from *Persistence*.", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://bitbucket.org/cykooz/cykooz.sequence", "keywords": "", "license": "ZPL", "maintainer": null, "maintainer_email": null, "name": "cykooz.sequence", "package_url": "https://pypi.org/project/cykooz.sequence/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/cykooz.sequence/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://bitbucket.org/cykooz/cykooz.sequence" }, "release_url": "https://pypi.org/project/cykooz.sequence/1.0.2/", "requires_dist": null, "requires_python": null, "summary": "Generates a persistent sequence", "version": "1.0.2" }, "last_serial": 788718, "releases": { "1.0.0": [ { "comment_text": "", "digests": { "md5": "31942d79859cf67479bb17e7df7bf2f0", "sha256": "be0fd96bd927cf0e2835de8aa93557b42a59550a5a5ce4157c488008e5a360a5" }, "downloads": -1, "filename": "cykooz.sequence-1.0.0.tar.gz", "has_sig": false, "md5_digest": "31942d79859cf67479bb17e7df7bf2f0", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3800, "upload_time": "2011-03-14T14:38:02", "url": "https://files.pythonhosted.org/packages/ea/b3/f7af3617c75c7f4fa8d7c7980012bf76f8e1c6312e13659577f2444a30df/cykooz.sequence-1.0.0.tar.gz" } ], "1.0.1": [ { "comment_text": "", "digests": { "md5": "52324707a9d97962b0e27ba5ae5d99b0", "sha256": "c5fad69e5a86f5eb1131532be74f701d1c5253b4a04725b658adf2afa9919560" }, "downloads": -1, "filename": "cykooz.sequence-1.0.1.tar.gz", "has_sig": false, "md5_digest": "52324707a9d97962b0e27ba5ae5d99b0", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3854, "upload_time": "2011-05-16T14:35:26", "url": "https://files.pythonhosted.org/packages/d9/7d/bac87476413ff3cc54c198b335db6853098bf7adbf79c59945477c234247/cykooz.sequence-1.0.1.tar.gz" } ], "1.0.2": [ { "comment_text": "", "digests": { "md5": "7780df5826965852fb8d90fc1c395b92", "sha256": "9464bfbe402fddcc8f905da039f1edd63518c61350bc2eb7499667911c649446" }, "downloads": -1, "filename": "cykooz.sequence-1.0.2.tar.gz", "has_sig": false, "md5_digest": "7780df5826965852fb8d90fc1c395b92", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3884, "upload_time": "2011-05-17T18:41:04", "url": "https://files.pythonhosted.org/packages/03/01/4d84b2e5eea508480327796a9cfb130ac54ab584bf1421ac37ae2592d859/cykooz.sequence-1.0.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "7780df5826965852fb8d90fc1c395b92", "sha256": "9464bfbe402fddcc8f905da039f1edd63518c61350bc2eb7499667911c649446" }, "downloads": -1, "filename": "cykooz.sequence-1.0.2.tar.gz", "has_sig": false, "md5_digest": "7780df5826965852fb8d90fc1c395b92", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3884, "upload_time": "2011-05-17T18:41:04", "url": "https://files.pythonhosted.org/packages/03/01/4d84b2e5eea508480327796a9cfb130ac54ab584bf1421ac37ae2592d859/cykooz.sequence-1.0.2.tar.gz" } ] }