Minimal Pluggable Photogallery for TurboGears2, EasyCrudRestController based for management
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.
tgapp-photos can be installed both from pypi or from bitbucket:
should just work for most of the users
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:
You will be able to access the photos process at http://localhost:8080/photos.
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
The templates used by photos and that can be replaced with tgext.pluggable.replace_template are:
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|Filename, size||File type||Python version||Upload date||Hashes|
|Filename, size tgapp-photos-0.3.0.tar.gz (57.3 kB)||File type Source||Python version None||Upload date||Hashes View hashes|