
I have been working on a new Export dialog, in order to get exports to use the Extension mechanism the same as all of the other inputs and outputs. I haven't seen Ted or anyone else who knows the mechanism well recently, so I thought I would ask here.
One question: is there a singleton instance of each Extension module? In other words, can I use a db.get() to find the module, set some parameters, and then later in the module's code expect those parameters to be set? I think I can, but I'd like to be sure before I write a lot of code.
bob

On Wed, 2006-07-19 at 13:35 -0500, Bob Jamison wrote:
One question: is there a singleton instance of each Extension module? In other words, can I use a db.get() to find the module, set some parameters, and then later in the module's code expect those parameters to be set? I think I can, but I'd like to be sure before I write a lot of code.
Yes, there should be a single instance of each extension. And so you should be able to set the parameters once and expect them to stick around.
Though, I will say that I'm working on extending the parameters so that they have scope. Meaning that they can have a user scope, a document scope, or a node scope. So, a parameter would have a different value based on which document you're looking in. If you could write your code to keep this in mind, that would be best.
Sorry, I've been having some ISP issues of late, they're fixed, but I'm still catching up.
--Ted
participants (2)
-
Bob Jamison
-
Ted Gould