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: modules that are modified on a given day, in a project
Topic Summary:
Created On: 21-Oct-2008 03:20
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.
 21-Oct-2008 03:20
User is offline View Users Profile Print this message


anant mitra

Posts: 50
Joined: 27-Jul-2007

I'm checking to see which modules in a project are modified today. I see the results for just one project only. Could anyone let me know what's wrong?

Thanks.
Report this to a Moderator Report this to a Moderator
 21-Oct-2008 08:45
User is offline View Users Profile Print this message


Paul Howstan

Posts: 47
Joined: 27-Sep-2006

Hi,

Your code has a for m in p loop, so it will only iterate through a single project, you either need to wrap your whole function up in a for p in database loop or use iteration to look at every item in the database (see attached).

Also, the help manual (for 8.3) says that the for m in p loop only looks at the top level modules:

"Assigns the variable moduleName to be each successive module name (for which the user has read access) in project. This loop includes open or closed modules but only at the top level of the project. This is no longer everything contained in the project. This only works on the user's computer. "

Paul
Report this to a Moderator Report this to a Moderator
 21-Oct-2008 17:37
User is offline View Users Profile Print this message


Louie Landale

Posts: 2070
Joined: 12-Sep-2002

Your 'for m in p' loop will only find open modules in the project. Don't forget to flush and close your output Stream.

Paul's recursive folder search should be routine for most scripts that deal with modules in the current folder and below. You would turn the itm into a full name, open the module, figure it out, then close the 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.