Changeset df88ee9
- Timestamp:
- May 31, 2012, 2:59:36 AM (14 years ago)
- Branches:
- master, space-access, stable, stage
- Children:
- b32adb6
- Parents:
- d768e47
- git-author:
- Alex Dehnert <adehnert@…> (05/31/12 02:37:46)
- git-committer:
- Alex Dehnert <adehnert@…> (05/31/12 02:59:36)
- Location:
- asadb
- Files:
-
- 3 edited
-
forms/update_validations.py (modified) (1 diff)
-
space/import_into_db.py (modified) (2 diffs)
-
util/sync_moira_authz.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
asadb/forms/update_validations.py
r654c9af rdf88ee9 12 12 os.environ['DJANGO_SETTINGS_MODULE'] = 'settings' 13 13 14 from django.db import transaction 15 14 16 import forms.models 15 17 import groups.models 16 18 17 19 20 @transaction.commit_on_success 18 21 def revalidate_confirmations(): 19 22 confirmations = forms.models.PersonMembershipUpdate.objects.filter(deleted__isnull=True, valid=forms.models.VALID_UNSET) -
asadb/space/import_into_db.py
r5680065 rdf88ee9 10 10 sys.path.append(django_dir) 11 11 os.environ['DJANGO_SETTINGS_MODULE'] = 'settings' 12 13 from django.db import transaction 12 14 13 15 import groups.models … … 40 42 assignment.save() 41 43 44 @transaction.commit_on_success 42 45 def process_spaces(reader): 43 46 space.models.SpaceAssignment.objects.filter(end=max_date).update(end=today) -
asadb/util/sync_moira_authz.py
rc8cb9ba rdf88ee9 16 16 17 17 import django.contrib.auth.models 18 from django.db import transaction 18 19 19 20 import mit … … 77 78 return self.sync_helper(sys_name, dj_members, adder, remover, ) 78 79 80 @transaction.commit_on_success 79 81 def sync_many(con, what, force_print=False, ): 80 82 changed = False
Note: See TracChangeset
for help on using the changeset viewer.