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
wowf
scripts
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
Generated on Sat Dec 15 2012 14:59:09 for Workout With Friends by
1.8.1.2