Created
February 16, 2011 07:37
-
-
Save meeech/829000 to your computer and use it in GitHub Desktop.
babys first python - pretty much copy pasta
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
token_lookup_key = "token-"+users.get_current_user().user_id(); | |
token = memcache.get(token_lookup_key) | |
if token is None: | |
token = channel.create_channel(users.get_current_user().user_id()) | |
memcache.add(token_lookup_key, token, 7200) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment