instead of worrying about tcfsearchpath, why don't you just put a softlink for the tcf in every site that you're going to need it.
doing an @include in the onCreate could always look for the same file " config.tml" or something like that? On 1/19/07, William M Conlon <[EMAIL PROTECTED]> wrote:
I want to be able to share TCF among various projects (that's the point after all). I've reconciled myself to having to assign a tcfsearchpath as " /../../.. ... /TCFs" before instantiation in order to share a TCF among different webroots. But I would like to be able to specify Instance Variables for each object instance, for example to specify DSNs differently for each web site. Alas, there doesn't seem to be a mechanism to pass in the instance variables when the Object is Instantiated. I'm consider two ways to do this: * read a config file in the On_Create method (maybe by <@include>). I would need to build in some logic to find the config file for each instance. * instance_init method Here I could pass in the instance variables as method parameters for assignment, but the Object wouldn't really be "Created" and ready to use until initialization is complete. One could imagine some problems if initialization was delayed, or some other thread started to use an object before or during initialization, so to be perfectly safe, I would probably need to check Instance Variable semaphore at the top of each method (ugh!). Are there any other things to consider, or other approaches? Thanks bill ________________________________________________________________________ TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf
-- John McGowan Seven A C Consulting, Inc. ________________________________________________________________________ TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf
