Skip to main content

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


Download files

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

Source Distribution

tgapp-contactform-0.0.2.tar.gz (4.8 kB view details)

Uploaded Source

File details

Details for the file tgapp-contactform-0.0.2.tar.gz.

File metadata

File hashes

Hashes for tgapp-contactform-0.0.2.tar.gz
Algorithm Hash digest
SHA256 2af76ee5f75562b9cc866f5c23b0b2b7b48b393c584b8745faea3f697ef48156
MD5 2989387791a1c0d9e6ad0c9b2e69bf57
BLAKE2b-256 76ac79aee89ee39e5d98861f843bb4f16f4aa2f02f235f1af9910a9c8eeb60a4

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page