14 Nov
2002
14 Nov
'02
8 p.m.
Andreas Heckel writes:
... I have a Python Workflow Product in mind that allows me to configure a set of customizable PythonScripts. I want the user to be able to create a custom permission that can be used within a set of instances. Normally Globals.InitializeClass does the job. But I'm looking for a way to define permissions at runtime that are bound to a PythonScript in several but not all product instances.
Can Permission.registerPermissions be used to do that and is ther a method to unregister permissions? I do not know. Try it out.
The "PermissionMapping" may also be helpful for you. It's used by ZClasses. Maybe, it does what you need, too. Dieter