def get(self): logging.debug("GET") self.response.headers['Content-Type'] = 'text/html' my_user = utilities.userKey() value = self.request.get('name') query = Twitter.query() data = query.fetch() query1 = UserInfo.query() data1 = query1.fetch() if utilities.userLoggedIn(): if my_user is None or my_user == '': if not utilities.userExist(): utilities.newUser(utilities.currentUser()) renderpage.register(self, utilities.logoutUrl(self), my_user) else: if not utilities.userExist(): utilities.newUser(utilities.currentUser()) renderpage.user(self, utilities.logoutUrl(self), my_user, data, data1, value) else: renderpage.login(self, utilities.loginUrl(self))
def get(self): logging.debug("GET") self.response.headers['Content-Type'] = 'text/html' my_user = utilities.userKey() query = Twitter.query() tweets = query.fetch() query1 = UserInfo.query() userinfo = query1.fetch() if utilities.userLoggedIn(): if my_user is None or my_user == '': if not utilities.userExist(): utilities.newUser(utilities.currentUser()) renderpage.register(self, utilities.logoutUrl(self), my_user) else: if not utilities.userExist(): utilities.newUser(utilities.currentUser()) renderpage.profile(self, utilities.logoutUrl(self), my_user, tweets, userinfo) else: renderpage.login(self, utilities.loginUrl(self))
def get(self): logging.debug("GET") self.response.headers['Content-Type'] = 'text/html' my_user = utilities.userKey() if utilities.userLoggedIn(): if not utilities.userExist(): utilities.newUser(utilities.currentUser()) renderpage.register(self, utilities.logoutUrl(self), my_user) else: renderpage.login(self, utilities.loginUrl(self))
def get(self): logging.debug("GET") self.response.headers['Content-Type'] = 'text/html' my_user = utilities.userKey() query = Twitter.query() data = query.fetch() url1 = blobstore.create_upload_url('/uploadhandler') if utilities.userLoggedIn(): if my_user is None or my_user == '': if not utilities.userExist(): utilities.newUser(utilities.currentUser()) renderpage.register(self, utilities.logoutUrl(self), my_user) else: if not utilities.userExist(): utilities.newUser(utilities.currentUser()) renderpage.add(self, utilities.logoutUrl(self), my_user, data, url1) else: renderpage.login(self, utilities.loginUrl(self))