# tgapp-fbcontest

Bitbucket is a code hosting site with unlimited public and private repositories. We're also free for small teams!

Close

fbcontest is a Pluggable application for TurboGears2 to let people have photo contests and let them vote and rate by facebook likes

## Installing

fbcontest can be installed both from pypi or from bitbucket:

easy_install fbcontest


should just work for most of the users

## Plugging fbcontest

In your application config/app_cfg.py import plug:

from tgext.pluggable import plug


Then at the end of the file call plug with fbcontest:

plug(base_config, 'fbcontest')


You will be able to access the registration process at http://localhost:8080/fbcontest.

## Available Hooks

fbcontest makes available a some hooks which will be called during some actions to alter the default behavior of the appplications:

## Exposed Partials

fbcontest exposes a bunch of partials which can be used to render pieces of the blogging system anywhere in your application:

## Exposed Templates

The templates used by registration and that can be replaced with tgext.pluggable.replace_template are:

# Recent activity

Add parameter for custom attachment type

Add parameter for custom attachment type

Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.