This release is a pre-release and may not be stable for production use.
Introduction
horae.lifecycle handles the lifecycle of objects for the Horae resource planning system. It stores the creator, creation_date, modifier and modification_date of objects implementing horae.lifecycle.interfaces.ILifecycleAware. Additionally it provides a viewlet displaying the collected information in context and a storage for latest objects of a user which tracks what objects were changed by a given user.
Usage
The easiest way to activate the functionality provided by horae.lifecycle is to subclass from the provided mix in class horae.lifecycle.lifecycle.LifecycleAwareMixin:
import grok
from horae.lifecycle import lifecycle
class SampleContent(grok.Model, lifecycle.LifecycleAwareMixin):
""" Sample content aware of his lifecycle
"""
Latest
The latest storage is provided as an adapter implementing horae.lifecycle.interfaces.ILatest and adapting a principal. There is a convenience adapter adapting the request available which returns the storage for the current user:
from horae.lifecycle import interfaces
class SampleView(grok.View):
def latest(self):
latest = interfaces.ILatest(self.request)
return latest.objects()
Dependencies
Horae
Third party
Changelog
1.0a1 (2012-01-16)
Initial release
Metadata
Release files for horae.lifecycle 1.0a1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| horae.lifecycle-1.0a1.tar.gz | 5.7 kB | Without provenance | Details for horae.lifecycle-1.0a1.tar.gz |
Release files / horae.lifecycle-1.0a1.tar.gz
| Download URL | horae.lifecycle-1.0a1.tar.gz |
|---|---|
| Size | 5.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
07a0d558d7f111cea7c7d589ebe095842accb0c0053ae7e100fee761e77de8b3
|
|
BLAKE2b-256 checksum How to use checksums |
4d58bb301d7a9c6ba0aeaf7993084e6f56dc87d06cc0fcef9c7f640be5246ad4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for horae.lifecycle 1.0a1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.