/usr/share/doc/python-apptools/examples/permissions/application/permissions.py is in python-apptools 4.3.0-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 | """The definitions of all the permissions used in the example."""
from apptools.permissions.api import Permission
# Access to the Debug view.
DebugViewPerm = Permission(id='ets.permissions.example.debug.view',
description=u"Use the debug view")
# Add a new person.
NewPersonPerm = Permission(id='ets.permissions.example.person.new',
description=u"Add a new person")
# Update a person's age.
UpdatePersonAgePerm = Permission(id='ets.permissions.example.person.age.update',
description=u"Update a person's age")
# View or update a person's salary.
PersonSalaryPerm = Permission(id='ets.permissions.example.person.salary',
description=u"View or update a person's salary")
# Enable the example toolkit specific widget.
EnableWidgetPerm = Permission(id='ets.permissions.example.widget',
description=u"Enable the example toolkit specific widget")
|