================
Overview
--------
vnccollab.common is a support package for vnccollab.* add-ons. It offers the
following features:
* A convenience memoizer class based on last time access.
* Keyword Search.
* Simple Vocabulary Factory.
* A convenience base class for deferred portlets.
TimeCacheKey
------------
TimeCacheKey is a helper class to add volatile cache based on last time access. You can use it in the following way: ::
>>> from plone.memoize import ram
>>> from vnccollab.common.cache import TimeCacheKey
>>> CACHE_TIME = 15 * 60 # 15 minutes
>>> cache = TimeCacheKey(CACHE_TIME)
>>> ram(cache)
>>> def sum(a, b): return a + b
...
Keyword Search
--------------
A keyword search is a special kind of search that takes place when a keyword
suffixed by ``:`` is present in the search string. This package offers a
``search`` view with keyword search.
Currently, there are two keywords defined:
- ``type:`` keyword: The search returns only object of the types specified
in the query.
- ``user:`` keyword: The search returns only objects created by the user
specified in the query.
Simple Vocabulary Factory
-------------------------
``SimpleVocabularyFactory`` is a convenience class for the creation of
vocabularies based in a list of tuples: ::
>>> from vnccollab.common.vocabularies import SimpleVocabularyFactory
>>> semaphore = [('r', 'Red'), ('y', 'Yellow'), ('g', 'Green')]
>>> semaphoreVocabulary = SimpleVocabularyFactory(semaphore)
Deferred Portlet
----------------
``DeferredRenderer`` is a convenience class for the creation of deferred
portlets. It extends ``plone.app.portlets.portlets.base.DeferredRendered``
and adds easy access to the portlet metadata. This class is intended to
be used by other vnccollab packages.
Changelog
=========
1.0.6 - July 02, 2014
------------------
- Adds portlet migration functions.
[JOse Dinuncio]
- Cleans setup.py [11080].
[Jose Dinuncio]
1.0.5 - April 11, 2014
----------------------
- Adds common icon images [10960].
[Cesar Gonzalez]
- Force css override for dynatree [10936].
[Cesar Gonzalez]
- Fixes cssregistry order. Upgrade step 1102 [10936].
[Cesar Gonzalez]
1.0.4 - April 02, 2014
----------------------
- Add unit tests [10656].
[Marcin Staniszczak]
- Adds README documentation.
[Jose Dinuncio]
1.0.3 - March 07, 2014
----------------------
- Fixes tests.
[Jose Dinuncio]
- Improves speed in user search [10169].
[Jose Dinuncio].
- Adds version.txt.
[Jose Dinuncio]
1.0.2 - December 06, 2013
-------------------------
- Adds lost hotfix.
[Jose Dinuncio]
1.0.1 - November 20, 2013
-------------------------
- Adds missing images of dynatree jquery plugin. Adds main.js resource [9049].
[Cesar Gonzalez]
- Adds dynatree jquery plugin. Upgrade step 1100.
[Cesar Gonzalez]
- Adds vocabualry utility.
[Jose DInuncio]
- Add more js scripts for stream and casts.
[Vitaliy Podoba]
1.0.0 - October 24, 2013
------------------------
- Add jquery selection field js plugin.
[Vitaliy Podoba]
- Adds search keywords.
[Jose Dinuncio]
- Adds custom event for portlet loading complete.
[Cesar Gonzalez]
- Attach portlet buttons when deferred porlets are complete
[Cesar Gonzalez]
- Initial release.
Metadata
Release files for vnccollab.common 1.0.6
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 |
|---|---|---|---|---|
| vnccollab.common-1.0.6.tar.gz | 66.3 kB | Without provenance | Details for vnccollab.common-1.0.6.tar.gz |
Release files / vnccollab.common-1.0.6.tar.gz
| Download URL | vnccollab.common-1.0.6.tar.gz |
|---|---|
| Size | 66.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
697ed30fea5337e9459ed9e70a1811210acb594af786b7b45cc40f27e9ee69e1
|
|
BLAKE2b-256 checksum How to use checksums |
4b1f5d84df783b394a5504e941abf72e3717fde68d7bf96545d8f4c95148be65
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for vnccollab.common 1.0.6
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.