______________________________________________________________________ Le dimanche 5 septembre, Jonah Crawford <[email protected]> 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 _______________________________________________ bluebream mailing list [email protected] https://mail.zope.org/mailman/listinfo/bluebream
