[PyKDE] Eric3: Am I missing something about adding directories?
Mike C. Fletcher
mcfletch at rogers.com
Mon Sep 27 03:26:36 BST 2004
Okay, I think I'm missing something regarding how to add directories of
resource files to Eric projects. Here's what I'm doing:
In an existing project, I create a directory on the filesystem (e.g.
"templates") as a sub-directory of one of my sub-package's
directories (everything save the new directory is already checked
into CVS), for instance: cinemon/twistscan/templates, and I copy 2
or 3 html files (actually, Zope page templates, but that's of no
great consequence) into the directory that are now part of the
resources used by the project.
In the Eric3 project browser window, I switch to browsing "others",
right-click and choose "Add directory".
The directory shows up in the project browser, as do all of the
files within it. VCS status of the files shows as "local", but they
are shown in black instead of red (which is how the resources added
at the top-level of the project show up).
Now, it turns out that one of the images is just a junk backup
created by an editor in which the file is currently open, so I
right-click on it and select "Remove from Project", Eric pops up a
dialog box saying "The selected entry is not recorded in the project".
Sure enough, if I right-click on the browser pane and choose Add
File, I can actually add the file *again* to the project, i.e. it
shows up twice in the tree control. This time, however, it shows up
as red, and when I right-click and choose "remove from project", it
is removed.
A little confused now, I decide to try another project, this time,
however, I check in the files to CVS, then check them out, then add
their directory to the project. This time, when I right-click on
the files (which show VCS status of "CVS", but are still in black),
there's no option to remove them from the project (that is, it's
greyed out). Again, however, if I choose Add Files, I can add
duplicates of the files (i.e. they show up twice in the tree control).
Am I missing something about the purpose of "add directories"? Is it
intended for something other than adding a directory and all files
within it to the project? If so, what is it supposed to do? How does
one add a whole directory of files to the project simultaneously (e.g.
images, templates, stylesheets).
BTW, if anyone else is having the problem with project files not being
able to resolve their DTDs, simply editing the XML e3p files in vim (or
whatever) and deleting the line with the DTD declaration will allow you
to load the project (you'll need to do this every time you save/reload
the project).
Enjoy all,
Mike
________________________________________________
Mike C. Fletcher
Designer, VR Plumber, Coder
http://www.vrplumber.com
http://blog.vrplumber.com
More information about the PyQt
mailing list