remotes/origin/stage6
Alexander Burdeiny 9 years ago
parent 2e931e9b00
commit 8020fb2104
  1. 2
      emencia/django/newsletter/mailer.py
  2. 9
      fabfile.py

@ -241,7 +241,7 @@ class NewsLetterSender(object):
_section = context.get(section)
if _section:
for event in _section:
prefix = '{}_{}_'.format(_section, event.object.event_type)
prefix = '{}_{}_'.format(section, event.object.event_type)
msg_attachment = self.gen_attachment_logo(event.object, prefix)
if msg_attachment:
attachments.append(msg_attachment)

9
fabfile.py vendored

@ -96,6 +96,15 @@ def put_configs():
settings_conf)
def newsletters_media():
with cd(join(REMOTE_HOME_DIR, 'media')):
run('mkdir -p newsletter')
put(
join(LOCAL_HOME_DIR, 'media/newsletter'),
join(REMOTE_HOME_DIR, 'media')
)
def call_state(state, only=None):
if only is not None and only in services:
run('service {only} {state}'.format(only=only, state=state))

Loading…
Cancel
Save