Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

sorry #4

Merged
3 commits merged into from

1 participant

@mdks

hope this fixes sign in... dont know why this broke... will try to make a better patch... please lemme know what else is needed.

jonathan added some commits
@mdks

this worked on my local box.. dont know why this broke live... sory.. this reverse it all. sorry everyone who couldnt signin at the dojo today, i'm a doof.

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Mar 3, 2011
  1. oops sorry fix bad patch

    jonathan authored
  2. Revert "oops sorry fix bad patch"

    jonathan authored
    This reverts commit 743c2d0.
This page is out of date. Refresh to see the latest.
Showing with 5 additions and 2 deletions.
  1. +5 −2 main.py
View
7 main.py
@@ -83,8 +83,11 @@ def signin(cls, email, type):
name = string.capwords(email.split('@')[0].replace('.', ' '))
# prevents double signin...
previous_signin = db.GqlQuery("SELECT * FROM Signin WHERE email = '%s' AND active = true" % email).get()
- if previous_signin is not None:
- cls.deactivate_staffer(email)
+ if previous_signin:
+ try:
+ cls.deactivate_staffer(email)
+ except:
+ logging.info("Failed deactivating old Signin object.")
s = Signin(email=email, type=type, image_url=image, name=name)
s.put()
return s
Something went wrong with that request. Please try again.