Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(3)  |  Call(2)  |  Derive(0)  |  Import(1)

src/t/e/tendenci-5.1.333/tendenci/addons/campaign_monitor/views.py   tendenci(Download)
from tendenci.addons.campaign_monitor.models import Template, Campaign
from tendenci.addons.campaign_monitor.forms import TemplateForm, CampaignForm
from tendenci.addons.campaign_monitor.utils import temporary_id, extract_files
from tendenci.addons.campaign_monitor.utils import sync_campaigns, sync_templates
from tendenci.addons.campaign_monitor.utils import apply_template_media
 
            #extract and serve files in zip
            extract_files(template)
 
            messages.add_message(request, messages.SUCCESS, 'Successfully created Template : %s' % t_id)
 
            #extract and serve files in zip
            extract_files(template)
 
            messages.add_message(request, messages.SUCCESS, 'Successfully updated Template : %s' % template.template_id)