Changeset ea217bd


Ignore:
Timestamp:
Nov 12, 2011, 4:05:03 AM (14 years ago)
Author:
Alex Dehnert <adehnert@…>
Branches:
master, space-access, stable, stage, test-hooks
Children:
712067b
Parents:
4098256
git-author:
Alex Dehnert <adehnert@…> (11/12/11 04:04:29)
git-committer:
Alex Dehnert <adehnert@…> (11/12/11 04:05:03)
Message:

Only update asa-official itself when in production

Location:
asadb
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • asadb/groups/diffs.py

    r4098256 rea217bd  
    2929update_constitution_archive = 'asa-db@mit.edu'
    3030
    31 asa_all_groups_list = util.mailman.MailmanList('asa-official')
    32 asa_all_groups_list = util.mailman.MailmanList('asa-test-mailman')
     31if settings.PRODUCTION_DEPLOYMENT:
     32    asa_all_groups_list = util.mailman.MailmanList('asa-official')
     33else:
     34    asa_all_groups_list = util.mailman.MailmanList('asa-test-mailman')
    3335
    3436class DiffCallback(object):
     
    139141                subject = "ERROR: " + subject
    140142            context = {
     143                'listname': asa_all_groups_list.name,
    141144                'add': self.add,
    142145                'delete': self.delete,
  • asadb/settings.py

    r4da2aeb rea217bd  
    88DEBUG = False
    99TEMPLATE_DEBUG = DEBUG
     10
     11# Is this the main, production deployment?
     12# If not, we won't try to propagate things to other systems.
     13# (For example, no changing asa-official membership.)
     14PRODUCTION_DEPLOYMENT = False
    1015
    1116ADMINS = (
  • asadb/template/groups/diffs/asa-official-update.txt

    r4098256 rea217bd  
    11{% autoescape off %}
    2 We tried to add the following {{add|length}} addresses to asa-official, and remove the following {{delete|length}} addresses.{%if errors%} Some errors occurred.{%endif%}
     2We tried to add the following {{add|length}} addresses to {{listname}}, and remove the following {{delete|length}} addresses.{%if errors%} Some errors occurred.{%endif%}
    33
    44Errors:
Note: See TracChangeset for help on using the changeset viewer.