![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
Topic Title: DXL script to set access rights Topic Summary: Created On: 22-Mar-2006 06:23 Status: Post and Reply |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() |
|
Hi,
I'm looking for solution to set every objects access rights to 'inherit from parent'. Has anyone created such script?
|
|
![]() |
|
![]() |
|
The attached code goes through the whole database and set the access to be inherited for all formal modules and each object in those modules. The code is somewhat tested, but not really verified.
Of course to run something like this, you should have no locked modules in database and no users accessing modules. ------------------------- Pekka.Makinen@softqa.fi SoftQA Oy -http://www.softqa.fi/ |
|
![]() |
|
![]() |
|
[1] If a module is locked the user will be prompted to Cancel or open Read Only. If he opens read only your "if (!null m)" check will succeed, but the DXL will abort when you try to "inherited(o)". You should addd "if (!null m and isEdit(m))" check.
[2] Use the "for o in entire m" loop, otherwise you'll skip objects not in the default view (such as deleted objects). [3] Check for errors with "ErrMess = inherited(o)"; if (!null ErrMess) print "error setting object " identifier(o) "\n" [4] You could preceed the "inherited(o)" command with the "isAccessInherited(o)" check, then count the ones you set Inherited, then print the results for each module. - Louie |
|
![]() |
Telelogic DOORS
» DXL Exchange
»
DXL script to set access rights
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.