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 | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file tgapp-contactform-0.0.1.tar.gz
.
File metadata
- Download URL: tgapp-contactform-0.0.1.tar.gz
- Upload date:
- Size: 4.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 86260bb71239335939ca3cfc818d6c03e1d03e9ba15429e4d7de6afbafd60d96 |
|
MD5 | b8f02c112c2775db7e93046138e7b51f |
|
BLAKE2b-256 | ccfe86c367357c7da638b47767e9916d29c1049a044414df57df324f96a769e1 |