예제 #1
0
 def delete_from_context():
     ctx = Context.current()
     del ctx['principal']
예제 #2
0
 def current(cls):
     current = Context.current()
     return current.get('principal')
예제 #3
0
 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')