tgapp-photos 0.2.7

Minimal Pluggable Photogallery for TurboGears2, EasyCrudRestController based for management
tgapp-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

last updated on:
September 11th, 2012, 12:13 GMT
price:
FREE!
developed by:
Alessandro Molina
license type:
Other/Proprietary License
category:
ROOT \ Internet \ HTTP (WWW)

FREE!

In a hurry? Add it to your Download Basket!

user rating

UNRATED
0.0/5
 

0/5

Add your review!

SUBMIT