Source

django-swingcms / swingcms / mailserver / plugins.py

Full commit
#!/usr/bin/env python
# -*- coding: utf-8 -*-

from mailserver.code import get_link_to_privacy_policy
from mailserver.forms import SubscribeAsPluginForm, ContactForm



__all__ = ('subscribe',
           'contact',)


def subscribe(**kwargs):

    return {'form':SubscribeAsPluginForm(),
            'link_to_privacy_policy':get_link_to_privacy_policy(kwargs['language'])}


def contacts(**kwargs):

    return {'form':ContactForm(),
            'link_to_privacy_policy':get_link_to_privacy_policy(kwargs['language'])}