About TGApp-Photos
Photos is a Pluggable photos application for TurboGears2. It has born as an example on how to use tgext.crud.EasyCrudRestController inside a pluggable application, but can be used to quickly implement photo galleries inside any TurboGears application.
Installing
tgapp-photos can be installed both from pypi or from bitbucket:
easy_install tgapp-photos
should just work for most of the users
Plugging Photos
In your application config/app_cfg.py import plug:
from tgext.pluggable import plug
Then at the end of the file call plug with photos:
plug(base_config, 'photos')
You will be able to access the photos process at http://localhost:8080/photos.
Exposed Partials
Photos exposes a bunch of partials which can be used to render pieces of the photo galleries anywhere in your application:
photos.partials:gallery -> Renders a photo gallery, if none specified renders the first available
photos.partials:albums -> Renders preview of galleries, if none specified renders all the galleries
Exposed Templates
The templates used by photos and that can be replaced with tgext.pluggable.replace_template are:
photos.templates.index
photos.templates.gallery
photos.templates.gallery_partial
photos.templates.albums_partial
Metadata
Release files for tgapp-photos 0.3.0
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 |
|---|---|---|---|---|
| tgapp-photos-0.3.0.tar.gz | 57.3 kB | Without provenance | Details for tgapp-photos-0.3.0.tar.gz |
Release files / tgapp-photos-0.3.0.tar.gz
| Download URL | tgapp-photos-0.3.0.tar.gz |
|---|---|
| Size | 57.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
201c2d441a025d5371c3876612579d8cf691fee6015f17758cd4e7bbd1526b15
|
|
BLAKE2b-256 checksum How to use checksums |
b483d5e9d34196af688fd5f85ba142727e25d7dc3892e8d2003174369d019774
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for tgapp-photos 0.3.0
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.