Skip to main content

Minimal Pluggable Photogallery for TurboGears2, EasyCrudRestController based for management

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tgapp-photos-0.2.6.tar.gz (57.7 kB view details)

Uploaded Source

File details

Details for the file tgapp-photos-0.2.6.tar.gz.

File metadata

File hashes

Hashes for tgapp-photos-0.2.6.tar.gz
Algorithm Hash digest
SHA256 99b1c1fcd8d315c2b1619780e7330b6f8b7475c145f7da1e6cc6ac1cc2c9aafd
MD5 7c01e39f64df8b2c5b9d04d3eaf8639b
BLAKE2b-256 bb338e1bc68f83440ad982f6f492d177deb7d6c0cf4c82d23ff1966faf0bd57b

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page