コード例 #1
0
ファイル: principal.py プロジェクト: farakavco/kakapo
 def delete_from_context():
     ctx = Context.current()
     del ctx['principal']
コード例 #2
0
ファイル: principal.py プロジェクト: farakavco/kakapo
 def current(cls):
     current = Context.current()
     return current.get('principal')
コード例 #3
0
ファイル: principal.py プロジェクト: farakavco/kakapo
 def put_into_context(self):
     ctx = Context.current()
     ctx['principal'] = self
コード例 #4
0
 def set_principal(self, principal):
     ctx = Context.current()
     ctx['principal'] = principal
コード例 #5
0
 def del_principal(self):
     ctx = Context.current()
     ctx['principal'] = None
コード例 #6
0
ファイル: jwt.py プロジェクト: farakavco/kakapo
 def del_principal(self):
     ctx = Context.current()
     ctx['principal'] = None
コード例 #7
0
 def get_principal(self):
     ctx = Context.current()
     if 'principal' in ctx.keys():
         return ctx['principal']
     return None
コード例 #8
0
ファイル: jwt.py プロジェクト: farakavco/kakapo
 def set_principal(self, principal):
     ctx = Context.current()
     ctx['principal'] = principal
コード例 #9
0
ファイル: jwt.py プロジェクト: farakavco/kakapo
 def get_principal(self):
     ctx = Context.current()
     if 'principal' in ctx.keys():
         return ctx['principal']
     return None
コード例 #10
0
 def delete_from_context():
     ctx = Context.current()
     del ctx['principal']
コード例 #11
0
 def put_into_context(self):
     ctx = Context.current()
     ctx['principal'] = self
コード例 #12
0
 def current(cls):
     current = Context.current()
     return current.get('principal')