Skip to main content
Help us improve PyPI by participating in user testing. All experience levels needed!

tgapp-contactform is a Pluggable application for TurboGears2 that shows a simple contact form.

Project description

About contactform

tgapp-contactform is a Pluggable application for TurboGears2 that shows a simple contact form.

Installing

contactform can be installed both from pypi or from bitbucket:

pip install tgapp-contactform

should just work for most of the users

Plugging contactform

In your application config/app_cfg.py import plug:

from tgext.pluggable import plug

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

plug(base_config, 'contactform')

You will be able to access the plugged application at http://localhost:8080/contactform.

Options

contactform.sender and contactform.recipients can be used to specify the mail sender and receiver. They are required but can be overwritten using the contactform.before_send hook.

Available Hooks

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

  • contactform.before_send(maildata) -> maildata -> called before sending email (the hook must return the maildata)

Project details


Release history Release notifications

This version
History Node

0.0.3

History Node

0.0.2

History Node

0.0.1

Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
tgapp-contactform-0.0.3.tar.gz (4.9 kB) Copy SHA256 hash SHA256 Source None Jul 10, 2016

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page