feature request
Alfredo Quesada
freddy2_tiny at yahoo.com
Thu Dec 7 17:25:20 MST 2006
Hi again
Some time ago I talked about something related to use relative paths
for
saving image files instead of saving them at the default folder, and by
doing it in this way you could have (for example) your collection in a
DVD (both tellico file and images) and load them perfectly, without
having to copy all them (the images) to the default location.
In order to can do it I've thought one thing. You simply need to
add an extra attribute to each collection (should be configurable in a
different way for every one) that would represent how use the
image/file
paths related inside the collection, with 3 possible values:
1. Default -> build image (or whatever else) path by combining both
file
path and default location ($HOME/.kde/share/apps/tellico/data). So the
final path should be something like this:
$DEFAULT/file (that's current behaviour, and in the collection you only
can see "file"). In fact you can have an easy migration from current
format to the newer one if you assume this value when this attribute
is missing (that is, trying to load older collections with newer
versions of tellico).
2. Relative path -> build the path by mixing collection file's
directory
and file path. Assuming your collection file located at /mnt/dvd/XXX
the full path should look like that:
/mnt/dvd/XXX/evenIntermediateFolder/file (in the collection you should
see evenIntermediateFolder/file, that should be calculated at save
time,
starting at the folder where the collection is saved). So you should
save the images in "evenIntermediateFolder" previously, and when adding
the file tellico should calculate the correct path for the file. The
full path is calculated obviously at load time.
3. Absolute path -> simply what this means. So the collection file
should store all the path, that is
/mnt/dvd/XXX/evenIntermediateFolder/file
Maybe this third option isn't quite useful, but.. who knows! In the end
is quite easy to implement, so.. I think it's not a problem to include
it too.
What do you think about it?
Regards
__________________________________________________
Correo Yahoo!
Espacio para todos tus mensajes, antivirus y antispam ¡gratis!
Regístrate ya - http://correo.espanol.yahoo.com/
More information about the tellico-users
mailing list