Workout With Friends Stay fit with a little motivation

- Main Page
- Namespaces
- Classes
- Files

- File List
- File Members

All Classes Namespaces Files Functions Variables Properties
sendinvite.py
Go to the documentation of this file.
1 import transaction
2 from wowf.lib.auth import Auth
3 from wowf.scripts import BaseCommand, make_main
4
5
6 class SendInviteCommand(BaseCommand):
7
8 def run(self):
9 transaction.begin()
10 emails = []
11 while True:
12 email = raw_input('Email: ')
13 emails.append(email)
14 again = raw_input('Add another email ([y]/n)? ')
15 if again.upper() == 'N':
16 break
17 Auth.send_invite(emails)
18 transaction.commit()
19
20
21 main = make_main(SendInviteCommand)
22