Created
January 21, 2016 00:24
-
-
Save mcotton/baa4aade29a4cf264f1e to your computer and use it in GitHub Desktop.
Enable company_dashboard for a user
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
import os | |
import pprint | |
from google.appengine.api import memcache | |
from google.appengine.api import mail | |
from google.appengine.api import urlfetch | |
from google.appengine.ext import ndb | |
from google.appengine.api import search | |
from core.models import * | |
u = User.get_by_id(4644337115725824) | |
if getattr(u, 'company_dashboard', False): | |
pprint.pprint('yay!') | |
else: | |
pprint.pprint('boo!') | |
pprint.pprint(u) | |
#u.company_dashboard = True | |
#u.put() | |
#pprint.pprint(u) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment