[BlueBream] bluebream Digest, Vol 9, Issue 4
Thierry Florac
tflorac at ulthar.net
Sun Sep 5 13:16:53 EDT 2010
______________________________________________________________________
Le dimanche 5 septembre,
Jonah Crawford <jonah at microgridsystems.com> a écrit :
> I'm assuming that root = getParents(context)[-2] in your example
> below would traverse to a persistent folder with the terms a client
> adds to it.
>
> Also are you saying that Vocabularies remember or persist their
> context so that it does not need to be passed one when it is called ?
______________________________________________________________________
I just reused "getParents(...)" syntax from your source code, as I
can't assume anything about your configuration. But a better way would
probably be to register the container of your vocabulary values as a
local utility and use this utility from the vocabulary code without
any need to "hard code" it's location.
Also, vocabularies are dynamic: they don't remember or persist their
context and so are created and called each time you use them. Defining
such a persistent mode is not impossible but would require much work...
Regards,
Thierry
More information about the bluebream
mailing list