def is_activated(): if not "username" in session: return False if not (session['status']=='normal'): return False return True