def get(self): user = users.get_current_user() debug(user) imgs = Social_Image.all() imgs.filter('author = ', user) debug(str(imgs.count())) debug('hello') self.response.out.write(imgs)
def post(self): desc = self.request.get('desc') img = self.request.get('img') geo_lat = self.request.get('geo_lat') geo_lng = self.request.get('geo_lng') user_email = self.request.get('user_email') user = User(email=user_email) si = Social_Image(author=user) si.desc = desc si.img = db.Blob(img) si.geo_lat = None si.geo_lng = None si.put() self.response.out.write(user)