Skip to main content

Permission management for web application in turbogears2

Project description

https://travis-ci.org/axant/tgapp-permissions.svg?branch=master https://coveralls.io/repos/github/axant/tgapp-permissions/badge.svg?branch=master

About tgapp-permissions

tgapp-permissions is a Pluggable application for TurboGears2. tgapp-userprofile allows admins of your application to assign the users of your application to groups, and since groups are bound to permissions to assign permissions to your users

Installing

tgapp-permissions can be installed both from pypi or from github:

pip install tgapppermissions

should just work for most of the users

Plugging tgapp-permissions

In your application config/app_cfg.py import plug:

from tgext.pluggable import plug

Then at the end of the file call plug with tgapppermissions:

plug(base_config, 'tgapppermissions')

You will be able to access the plugged application at http://localhost:8080/tgapppermissions.

other special options that can be used with tgapppermissions are:

  • exclusive_permissions (default False): only a group can be assigned to a user

  • query_groups: function that is called by the template, must return a list of tuples where each entry is composed of the _id of the group and it’s display_name. you can customize this function to filter or and sort groups if you don’t want to show every group in your database

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tgapp-permissions-0.4.0.tar.gz (16.1 kB view details)

Uploaded Source

File details

Details for the file tgapp-permissions-0.4.0.tar.gz.

File metadata

  • Download URL: tgapp-permissions-0.4.0.tar.gz
  • Upload date:
  • Size: 16.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: Python-urllib/3.6

File hashes

Hashes for tgapp-permissions-0.4.0.tar.gz
Algorithm Hash digest
SHA256 11ae26fff6a01439a9c06bd1fc9a1769898371cc4208aeaac77128957f8c774c
MD5 a172f873524c526195f05453466c0aa6
BLAKE2b-256 5085a6d1e09f3771718b69667cf660cde633b187056e3c19ad7bca28cf621024

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page