mirror of
https://github.com/ail-project/ail-framework.git
synced 2024-11-10 08:38:28 +00:00
28 lines
570 B
Python
Executable file
28 lines
570 B
Python
Executable file
#!/usr/bin/env python3
|
|
# -*-coding:UTF-8 -*
|
|
|
|
import os
|
|
import sys
|
|
|
|
sys.path.append(os.environ['AIL_BIN'])
|
|
from lib import ConfigLoader
|
|
|
|
config_loader = ConfigLoader.ConfigLoader()
|
|
r_serv_db = config_loader.get_redis_conn("ARDB_DB")
|
|
r_serv_metadata = config_loader.get_redis_conn("ARDB_Metadata")
|
|
config_loader = None
|
|
|
|
class User(object):
|
|
"""AIL User."""
|
|
|
|
def __init__(self, id):
|
|
self.id = id
|
|
if self.id == '__anonymous__':
|
|
self.role = 'anonymous'
|
|
else:
|
|
self.role = None
|
|
|
|
def get_role(self):
|
|
pass
|
|
|
|
|