tg_contact_importer is a Pluggable application for TurboGears2.
tg_contact_importer can be installed both from pypi or from bitbucket:
easy_install tg_contact_importer
should just work for most of the users
In your application config/app_cfg.py import plug:
from tgext.pluggable import plug
Then at the end of the file call plug with tg_contact_importer:
plug(base_config, 'tg_contact_importer', 'contacts')
You will be able to access the registration process at http://localhost:8080/contacts.
In order to import contacts from Gmail, Live and Yahoo accounts you should follow these steps.
- Obtain a client id and client secret from providers above.
- Set your API credentials in your *.ini config files.
Following is a sample configuration:
[app:main] # other configurations.. google.client_id = my_google_client_id google.client_secret = my_google_client_secret live.client_id = my_live_client_id live.client_secret = my_live_client_secret yahoo.client_id = my_yahoo_client_id yahoo.client_secret = my_yahoo_client_secret
The templates used by registration and that can be replaced with tgext.pluggable.replace_template are:
templates/invite.jinja