Welcome, guest | Sign In | My Account | Store | Cart

Notice! PyPM is being replaced with the ActiveState Platform, which enhances PyPM’s build and deploy capabilities. Create your free Platform account to download ActivePython or customize Python with the packages you require and get automatic updates.

Download
ActivePython
INSTALL>
pypm install tgapp-photos

How to install tgapp-photos

  1. Download and install ActivePython
  2. Open Command Prompt
  3. Type pypm install tgapp-photos
 Python 2.7Python 3.2Python 3.3
Windows (32-bit)
0.2.4
0.2.7Never BuiltWhy not?
0.2.4 Available View build log
0.2.2 Available View build log
Windows (64-bit)
0.2.2
0.2.7Never BuiltWhy not?
0.2.2 Available View build log
Mac OS X (10.5+)
0.2.4
0.2.7Never BuiltWhy not?
0.2.4 Available View build log
0.2.2 Available View build log
Linux (32-bit)
0.2.7 Available View build log
0.2.5 Available View build log
0.2.4 Available View build log
0.2.2 Available View build log
Linux (64-bit)
0.2.7 Available View build log
0.2.5 Available View build log
0.2.4 Available View build log
0.2.2 Available View build log
 
Lastest release
version 0.2.7 on Nov 21st, 2012

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

Subscribe to package updates

Last updated Nov 21st, 2012

Download Stats

Last month:1

What does the lock icon mean?

Builds marked with a lock icon are only available via PyPM to users with a current ActivePython Business Edition subscription.

Need custom builds or support?

ActivePython Enterprise Edition guarantees priority access to technical support, indemnification, expert consulting and quality-assured language builds.

Plan on re-distributing ActivePython?

Get re-distribution rights and eliminate legal risks with ActivePython OEM Edition.