bugpyFormex - Bugs: bug #38327, closeProject does not allow to...

 
 

bug #38327: closeProject does not allow to delete the existing globals if the project is not saved

Submitted by:  Sofie Van Cauter <svcauter>
Submitted on:  Thu 14 Feb 2013 10:13:01 AM UTC  
 
Category: GUISeverity: 1 - Wish
Item Group: Feature requestStatus: Fixed
Privacy: PublicAssigned to: Benedict Verhegghe <bverheg>
Open/Closed: Closed

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Thu 14 Feb 2013 11:51:23 AM UTC, comment #2:

The announced change in my previous comment has been made.
(commit 1248f3f).
Please test, and close if ok.

Benedict Verhegghe <bverheg>
Project AdministratorIn charge of this item.
Thu 14 Feb 2013 11:37:53 AM UTC, comment #1:

When you open a new project, you have the option to delete the existing globals. So, unless you want to save the current project,
there is no need to call closeProject before you open a new one.
Only call closeProject to (save it or not) and make no project
active.

From a script, to delete the current globals before opening a new
project, you can just do

'pf.PF.clear()'.
'closeProject(save=False)'

The order does not matter.

Note: The clear alone would be fine if a succesful openProject is following, but what if the openProject fails or is aborted by the user? It would leave the current project open!
So it is better to also force closing.

Note 2: closeProject also has an argument `delet` to clear the
globals. However ,its value is currently not honored when used
noninteractively. I will change that, so that both lines above
can be reduced to:
'closeProject(save=False,clear=True)'
('clear' looks better than 'delet')?

Benedict Verhegghe <bverheg>
Project AdministratorIn charge of this item.
Thu 14 Feb 2013 10:13:01 AM UTC, original submission:

If 'closeProject' is called, the user is asked if the project should be saved first, and if it is saved, the user is asked if the existing globals should be deleted. Why can the globals not be deleted if the project is not saved? This can e.g. be useful when calling the function from a script before opening a new project.

Sofie Van Cauter <svcauter>
Project Member

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by bverheg (Posted a comment)
  • -unavailable- added by svcauter (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Thu 14 Feb 2013 11:51:23 AM UTCbverhegStatusIn Progress=>Fixed
      Open/ClosedOpen=>Closed
    Thu 14 Feb 2013 11:37:53 AM UTCbverhegStatusNone=>In Progress

    Back to the top


    Powered by Savane 3.1-cleanup1