Thanks, those are all useful inputs. The first bit below (the failed
makedirs) is because I seem to have misunderstood one of the topObject
utility functions. It's returning a relative, not an absolute, file name,
so the directory is coming out blank rather than something useful. I'll
fix that (possibly with input from Rasmus).
The timestamp issues we can look into, it should be possible to do
something about that.
The v2 projects and v1 project directories ought to be in different
directories. So in v1 you might have:
abc/
myProject.xml
myProject/
and in v2 you would have
def/
myProject/
but those two myProject directories should not be in the same directory,
i.e. you don't want abc = def. The two sets of XML files are
incompatible. As luck would have it, they are so incompatible (e.g. the
v2 names are much wackier) that I suspect you could actually get away with
having both on top of each other. But it's not a good idea because when
you come to package it all up it will just jumble the two sets together.
Wayne
On Mon, 18 Aug 2008, Ben Goult wrote:
> Hi Wayne
>
> I just converted my project using the upgrade server and it worked fine
> (once I realised you launch it with "analysis project" rather than "analysis
> project.xml"!)
>
> However, when I tried to save the project it failed (I think) and I got the
> error,
>
> >>> Exception in Tkinter callback
> Traceback (most recent call last):
> File "/usr/lib64/python2.4/lib-tk/Tkinter.py", line 1345, in __call__
> return self.func(*args)
> File
> "/data/prog/ccpnmr/ccpnmr2.0/python/ccpnmr/analysis/AnalysisPopup.py", line
> 1440, in saveProject
> self.saveFile()
> File
> "/data/prog/ccpnmr/ccpnmr2.0/python/ccpnmr/analysis/AnalysisPopup.py", line
> 1488, in saveFile
> saveProject(self.project, createFallback=True)
> File "/data/prog/ccpnmr/ccpnmr2.0/python/memops/general/Io.py", line 291,
> in saveProject
> createTopObjectFallback(topObject)
> File "/data/prog/ccpnmr/ccpnmr2.0/python/memops/general/Io.py", line 100,
> in createTopObjectFallback
> os.makedirs(directory)
> File "/usr/lib64/python2.4/os.py", line 159, in makedirs
> mkdir(name, mode)
> OSError: [Errno 2] No such file or directory: ''
>
>
> I am not sure if it saved. However, I did "save as" instead and it seems to
> have worked fine.
>
> I also have a couple of questions about the new saving system.
>
> 1) From what I can tell the upgrade server creates new file within the
> project directory and when you run analysis2 with "analysis project" it
> loads these, so does this mean that that project directory cannot be used to
> run analysis1? i.e. If I run "analysis1 project.xml" it appears to still
> load and work fine. However, if I save and modify things in Analysis 2 I
> guess it soon wont, is this correct or are the two versions kept seperate
> within the project directory?
>
> 2) As all the files are now kept within the project directory then when you
> save the time stamp on the project directory is not changed. Therefore I can
> no longer sort my Analysis projects chronologically (It used to be possible
> to sort them chronologically by the .xml files). I also am not sure if it is
> possible to quickly check when a project was last modified? Would it be
> possible to do do a "touch" on the top directory when it is saved or
> something similar? Or perhaps if you start analysis and select "M:Open"
> there could be a Date column after Status so you can sort them based on the
> last save to the xml file?
>
> (and an unimportant one that I would find useful)
>
> 3) Also, it would be nice if when it saved, it said "successfully saved
> project at 17:43" i.e. with the time in it so you know when the project was
> last saved (useful if it crashes).
>
> Cheers
>
> Ben
>
|