

def after_init_apps(sender):
    from uliweb import settings
    from rbac import register_role_method
    if ('ROLES' in settings):
        for (k, v) in settings.get_var('ROLES', {
            
        }).iteritems():
            if (isinstance(v, (list, tuple)) and (len(v) > 1)):
                method = v[1]
                if k:
                    register_role_method(k, method)

dataset/ETHPy150Open limodou/uliweb/uliweb/contrib/rbac/__init__.py after_init_apps/VarMisuse@87/104 `method`->`k`