Esempio n. 1
0
#!/usr/bin/python
import sys
import participantCollection


names = sys.argv[1::]

participantCollection = participantCollection.ParticipantCollection()
for name in names:
    if participantCollection.hasParticipantNamed(name):
        participant = participantCollection.participantNamed(name)
        if participant.isStillIn:
            participant.relapseNowIfNotAlready()
            print "just relapsed " + name
        else:
            print name + " has already relapsed.  Skipping."
    else:
        print "*** WARNING: " + name + " is not present in participants.txt"
participantCollection.save()

Esempio n. 2
0
#!/usr/bin/python
import sys
import participantCollection


names = sys.argv[1::]

participantCollection = participantCollection.ParticipantCollection()
for name in names:
    if participantCollection.hasParticipantNamed(name):
        participantCollection.participantNamed(name).isStillIn = True
        print "just reinstated " + name
    else:
        print "*** WARNING: " + name + " is not present in participants.txt"
participantCollection.save()

Esempio n. 3
0
#!/usr/bin/python
import sys
import participantCollection

names = sys.argv[1::]

participantCollection = participantCollection.ParticipantCollection()
for name in names:
    if participantCollection.hasParticipantNamed(name):
        participantCollection.participantNamed(name).hasCheckedIn = True
        print "just checked in " + name
    else:
        print "*** WARNING: " + name + " is not present in participants.txt"
participantCollection.save()
Esempio n. 4
0
#!/usr/bin/python
import sys
import participantCollection

names = sys.argv[1::]

participantCollection = participantCollection.ParticipantCollection()
for name in names:
    if participantCollection.hasParticipantNamed(name):
        participantCollection.participantNamed(name).isStillIn = True
        print "just reinstated " + name
    else:
        print "*** WARNING: " + name + " is not present in participants.txt"
participantCollection.save()
Esempio n. 5
0
#!/usr/bin/python
import sys
import participantCollection


names = sys.argv[1::]

participantCollection = participantCollection.ParticipantCollection()
for name in names:
    if participantCollection.hasParticipantNamed(name):
        participantCollection.participantNamed(name).hasCheckedIn = True
        print "just checked in " + name
    else:
        print "*** WARNING: " + name + " is not present in participants.txt"
participantCollection.save()