tgapp-tgcomments

TurboGears2 pluggable application for comments to entities with Facebook sharing
Download

tgapp-tgcomments Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Other/Proprietary Li...
  • Price:
  • FREE
  • Publisher Name:
  • Alessandro Molina
  • Publisher web site:
  • http://www.objectblues.net/wiki/show/FlatLand

tgapp-tgcomments Tags


tgapp-tgcomments Description

Comments can be added to any webpage by using the comments_for partial.TGComments supports Facebook for avatar if the user logged using tgapp-fbauth or if the User model provides a similar interface. Otherwise will fallback to Gravatar.Installingtgcomments can be installed both from pypi or from bitbucket:easy_install tgcommentsshould just work for most of the usersPlugging tgcommentsIn your application config/app_cfg.py import plug:from tgext.pluggable import plugThen at the end of the file call plug with tgcomments:plug(base_config, 'tgcomments')You will be able to access the registration process at http://localhost:8080/tgcomments.Exposed Partialstgcomments exposes a bunch of partials which can be used to render pieces of the blogging system anywhere in your application:- tgcomments.partials:comments_for(entity) Given any SQLAlchemy entity which is available inside your application model module it will display a list of comments for that entity with a box to add a new comment.Provided Optionstgcomments supports a bunch of options that can be passed to the plug call to change its behavior:- notify_facebook (default:True) automatically notify on facebook comments that the user wrote if he has logged using Facebook- allow_anonymous (default:True) allow anonymous users to commentExposed TemplatesThe templates used by registration and that can be replaced with tgext.pluggable.replace_template are:- tgcomments.templates.comments_partialProduct's homepage


tgapp-tgcomments Related Software