Well... I was thinking about something like this:
import afs #attribute file system
mydb = afs.link("/path/to/my/db", ["Year", "Patient", "Intervention", "Date"], "path/to/cache/local.cache")
set = mydb.get({"Patient":"some_name_fragment", "Intervention":"intervention_name"})
pacs = set.list("Patients")
dates = set.list("Dates")
attribute = "Patient"
newValue = "Some Other Name"
mydb.change(fileID, attribute, newValue) # this alters the directory structure of my db
Thanks for the links about MVC. I'm a fan of that pattern too
ยทยทยท
On Fri, 11 Mar 2005 09:03:17 +0200, Roger Binns <rogerb@rogerbinns.com> wrote:
is there a python module that can create a proxy database for
a directory structure based on keywords? what I'm looking for
is something like what iTunes has. Files have a set of attributes
and they are laid on HDD in a structure that reflects those
attributes. a change in the attributes chances the directory
structure transparently.I don't understand exactly the details of what you are asking
(eg who changes the attributes, what about clashes etc)
--
Peter Damoc
Warrior Of The Light
http://www.sigmacore.net/