Tornado角色权限控制插件 tor_access

码农软件 · 软件分类 · 安全相关框架 · 2019-10-02 11:59:51

软件介绍

Python Tornado 的角色权限控件第三方插件。

支持:

  • 自动收集权限节点

  • 节点分组管理

  • 角色及超管角色

示例代码:

import tor_access

@tor_access.needcheck(url=True)
class IndexHandler(tornado.web.RequestHandler):
    def get(self):
        pass

aclgroup = tor_access.ACLGroupNode('userdemo',u'系统管理')

@tor_access.needcheck(url=True, group=aclgroup)
class UserHandler(tornado.web.RequestHandler):
    def get(self):
        pass

@tor_access.needcheck(url=True, category='categroyname')
class UserInfoHandler(tornado.web.RequestHandler):
    def get(self):
        pass

本文地址:https://codercto.com/soft/d/15868.html

Python for Everyone

Python for Everyone

Cay S. Horstmann、Rance D. Necaise / John Wiley & Sons / 2013-4-26 / GBP 181.99

Cay Horstmann's" Python for Everyone "provides readers with step-by-step guidance, a feature that is immensely helpful for building confidence and providing an outline for the task at hand. "Problem S......一起来看看 《Python for Everyone》 这本书的介绍吧!

HTML 压缩/解压工具
HTML 压缩/解压工具

在线压缩/解压 HTML 代码

JS 压缩/解压工具
JS 压缩/解压工具

在线压缩/解压 JS 代码

Base64 编码/解码
Base64 编码/解码

Base64 编码/解码