Welcome to Telelogic Product Support
  Home Downloads Knowledgebase Case Tracking Licensing Help Telelogic Passport
Telelogic DOORS (steve huntington)
Decrease font size
Increase font size
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
Search Topic Search Topic
Topic Tools Topic Tools
Quick Reply Quick Reply
Subscribe to this topic Subscribe to this topic
E-mail this topic to someone. E-mail this topic
Bookmark this topic Bookmark this topic
View similar topics View similar topics
View topic in raw text format. Print this topic.
 22-Mar-2006 06:23
User is offline View Users Profile Print this message


Jani Honkanen

Posts: 1
Joined: 24-Feb-2006

Hi, I'm looking for solution to set every objects access rights to 'inherit from parent'. Has anyone created such script?
Report this to a Moderator Report this to a Moderator
 22-Mar-2006 07:57
User is offline View Users Profile Print this message


Pekka Mäkinen

Posts: 276
Joined: 18-Mar-2004

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/
Report this to a Moderator Report this to a Moderator
 22-Mar-2006 21:25
User is offline View Users Profile Print this message


Louie Landale

Posts: 2070
Joined: 12-Sep-2002

[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
Report this to a Moderator Report this to a Moderator
Statistics
20925 users are registered to the Telelogic DOORS forum.
There are currently 1 users logged in.
The most users ever online was 15 on 15-Jan-2009 at 16:36.
There are currently 0 guests browsing this forum, which makes a total of 1 users using this forum.
You have posted 0 messages to this forum. 0 overall.

FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.