Skip to content
Browse files

Arrgh

  • Loading branch information...
1 parent 3c8b63c commit a9bf471dde92d6abb66b8bdc8af8db88efa8cd2d @dustball dustball committed Jun 20, 2011
Showing with 6 additions and 0 deletions.
  1. +6 −0 main.py
View
6 main.py
@@ -260,6 +260,8 @@ def retry(countdown=None):
if not membership.spreedly_token:
logging.warn("CreateUserTask: No spreedly token yet, retrying")
return retry(300)
+
+ logging.info("CreateUserTask: About to create user "+membership.username)
try:
username, password = memcache.get(hashlib.sha1(membership.hash+SPREEDLY_APIKEY).hexdigest()).split(':')
@@ -274,6 +276,8 @@ def retry(countdown=None):
'last_name': membership.last_name,
'secret': keymaster.get(DOMAIN_USER),
}), deadline=10)
+ membership.username = username
+ membership.put()
logging.warn("CreateUserTask: I think that worked")
except urlfetch.DownloadError, e:
logging.warn("CreateUserTask: API response error or timeout, retrying")
@@ -284,6 +288,8 @@ def retry(countdown=None):
except Exception, e:
return fail(e)
+
+
class UnsubscribeHandler(webapp.RequestHandler):
def get(self, id):
member = Membership.get_by_id(int(id))

0 comments on commit a9bf471

Please sign in to comment.
Something went wrong with that request. Please try again.