{ "info": { "author": "Simon Kaeser", "author_email": "skaeser@gmail.com", "bugtrack_url": null, "classifiers": [ "Programming Language :: Python", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "Introduction\r\n============\r\n\r\n``horae.lifecycle`` handles the lifecycle of objects for the Horae resource\r\nplanning system. It stores the ``creator``, ``creation_date``, ``modifier``\r\nand ``modification_date`` of objects implementing\r\n``horae.lifecycle.interfaces.ILifecycleAware``. Additionally it provides\r\na viewlet displaying the collected information in context and a storage\r\nfor latest objects of a user which tracks what objects were changed by a\r\ngiven user.\r\n\r\nUsage\r\n=====\r\n\r\nThe easiest way to activate the functionality provided by ``horae.lifecycle``\r\nis to subclass from the provided mix in class ``horae.lifecycle.lifecycle.LifecycleAwareMixin``::\r\n\r\n import grok\r\n \r\n from horae.lifecycle import lifecycle\r\n \r\n class SampleContent(grok.Model, lifecycle.LifecycleAwareMixin):\r\n \"\"\" Sample content aware of his lifecycle\r\n \"\"\"\r\n\r\nLatest\r\n------\r\n\r\nThe latest storage is provided as an adapter implementing ``horae.lifecycle.interfaces.ILatest``\r\nand adapting a principal. There is a convenience adapter adapting the ``request``\r\navailable which returns the storage for the current user::\r\n\r\n from horae.lifecycle import interfaces\r\n \r\n class SampleView(grok.View):\r\n \r\n def latest(self):\r\n latest = interfaces.ILatest(self.request)\r\n return latest.objects()\r\n\r\nDependencies\r\n============\r\n\r\nHorae\r\n-----\r\n\r\n* `horae.auth `_\r\n* `horae.core `_\r\n* `horae.layout `_\r\n* `horae.timeaware `_\r\n\r\nThird party\r\n-----------\r\n\r\n* `grok `_\r\n* `zope.principalannotation `_\r\n\r\nChangelog\r\n=========\r\n\r\n1.0a1 (2012-01-16)\r\n------------------\r\n\r\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": "UNKNOWN", "keywords": "", "license": "GPL", "maintainer": "", "maintainer_email": "", "name": "horae.lifecycle", "package_url": "https://pypi.org/project/horae.lifecycle/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/horae.lifecycle/", "project_urls": { "Download": "UNKNOWN", "Homepage": "UNKNOWN" }, "release_url": "https://pypi.org/project/horae.lifecycle/1.0a1/", "requires_dist": null, "requires_python": null, "summary": "Handles the lifecycle of objects for the Horae resource planning system", "version": "1.0a1" }, "last_serial": 792994, "releases": { "1.0a1": [ { "comment_text": "", "digests": { "md5": "ebf75008e2bb2aa785d21aead9b8c821", "sha256": "07a0d558d7f111cea7c7d589ebe095842accb0c0053ae7e100fee761e77de8b3" }, "downloads": -1, "filename": "horae.lifecycle-1.0a1.tar.gz", "has_sig": false, "md5_digest": "ebf75008e2bb2aa785d21aead9b8c821", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5708, "upload_time": "2012-01-16T12:01:16", "url": "https://files.pythonhosted.org/packages/4d/58/bb301d7a9c6ba0aeaf7993084e6f56dc87d06cc0fcef9c7f640be5246ad4/horae.lifecycle-1.0a1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "ebf75008e2bb2aa785d21aead9b8c821", "sha256": "07a0d558d7f111cea7c7d589ebe095842accb0c0053ae7e100fee761e77de8b3" }, "downloads": -1, "filename": "horae.lifecycle-1.0a1.tar.gz", "has_sig": false, "md5_digest": "ebf75008e2bb2aa785d21aead9b8c821", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5708, "upload_time": "2012-01-16T12:01:16", "url": "https://files.pythonhosted.org/packages/4d/58/bb301d7a9c6ba0aeaf7993084e6f56dc87d06cc0fcef9c7f640be5246ad4/horae.lifecycle-1.0a1.tar.gz" } ] }