Skip to content

Commit

Permalink
Remove research affiliates and allow logins
Browse files Browse the repository at this point in the history
The change to LoginAllowed is a temporary solution until Symplectic
comes up with a better solution.
  • Loading branch information
Mike Graves committed Apr 1, 2016
1 parent db7486d commit b79da3c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions carbon/app.py
Expand Up @@ -26,7 +26,7 @@
'PRINCIPAL RESEARCH ASSOCIATE', 'PRINCIPAL RESEARCH ENGINEER',
'PRINCIPAL RESEARCH SCIENTIST', 'PROFESSOR', 'PROFESSOR (NOTT)',
'PROFESSOR (WOT)', 'PROFESSOR EMERITUS', 'PROFESSOR OF THE PRACTICE',
'RESEARCH AFFILIATE', 'RESEARCH ASSOCIATE', 'RESEARCH ENGINEER',
'RESEARCH ASSOCIATE', 'RESEARCH ENGINEER',
'RESEARCH FELLOW', 'RESEARCH SCIENTIST', 'RESEARCH SPECIALIST',
'SENIOR LECTURER', 'SENIOR POSTDOCTORAL ASSOCIATE',
'SENIOR POSTDOCTORAL FELLOW', 'SENIOR RESEARCH ASSOCIATE',
Expand Down Expand Up @@ -147,7 +147,7 @@ def _add_person(xf, person):
add_child(record, 'field', 'MIT', name='[AuthenticatingAuthority]')
add_child(record, 'field', '1', name='[IsAcademic]')
add_child(record, 'field', '1', name='[IsCurrent]')
add_child(record, 'field', '0', name='[LoginAllowed]')
add_child(record, 'field', '1', name='[LoginAllowed]')
add_child(record, 'field', person['DLC_NAME'],
name='[PrimaryGroupDescriptor]')
add_child(record, 'field', person['ORCID'], name='[Generic01]')
Expand Down
4 changes: 2 additions & 2 deletions tests/conftest.py
Expand Up @@ -56,7 +56,7 @@ def xml_records(E):
E.field('MIT', {'name': '[AuthenticatingAuthority]'}),
E.field('1', {'name': '[IsAcademic]'}),
E.field('1', {'name': '[IsCurrent]'}),
E.field('0', {'name': '[LoginAllowed]'}),
E.field('1', {'name': '[LoginAllowed]'}),
E.field('Chemistry', {'name': '[PrimaryGroupDescriptor]'}),
E.field('http://example.com/1', {'name': '[Generic01]'}),
E.field('CFAT', {'name': '[Generic02]'}),
Expand All @@ -72,7 +72,7 @@ def xml_records(E):
E.field('MIT', {'name': '[AuthenticatingAuthority]'}),
E.field('1', {'name': '[IsAcademic]'}),
E.field('1', {'name': '[IsCurrent]'}),
E.field('0', {'name': '[LoginAllowed]'}),
E.field('1', {'name': '[LoginAllowed]'}),
E.field('Nuclear Science', {'name': '[PrimaryGroupDescriptor]'}),
E.field('http://example.com/2', {'name': '[Generic01]'}),
E.field('COAC', {'name': '[Generic02]'}),
Expand Down

0 comments on commit b79da3c

Please sign in to comment.