-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathuserinfo.py
20 lines (16 loc) · 861 Bytes
/
userinfo.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
from google.appengine.ext import db
class UserInfo(db.Model):
nickname = db.StringProperty(multiline=False)
password = db.StringProperty(multiline=False)
flickr_id = db.StringProperty(multiline=False)
flickr_api_key = db.StringProperty(multiline=False)
flickr_api_secret = db.StringProperty(multiline=False)
flickr_browse_type = db.StringProperty( choices=set(["stream", "set", "tag"]))
flickr_browse_typename = db.StringProperty(multiline=False)
flickr_browse_setid = db.IntegerProperty()
flickr_max_days = db.IntegerProperty(default=40)
weibo_id = db.StringProperty(multiline=False)
weibo_access_token = db.StringProperty(multiline=False)
weibo_expires_in = db.IntegerProperty()
weibo_access_token_secret = db.StringProperty(multiline=False)
weibo_avatar = db.StringProperty(multiline=False)