It is definitely a namespace issue. Sounds like a good idea though. Are you doing the importation when dabo is first imported? If not, it sounds like the current directory is not what you think it is and it is using dabo's directory instead. Can you post the code?
Cheers, Nate L. On 8/29/07, Ed Leafe <[EMAIL PROTECTED]> wrote: > I'd like to add a feature to the dApp object similar to that where > it automatically loads connection defs in a folder named 'db' if one > exists. IOW, if there is a directory named 'biz', do the equivalent of: > > import biz > self.biz = biz > > ...so that other classes in the app can refer to > self.Application.biz.BizWhatever when they need to access a bizobj. > However, when I tried this, 'self.biz' was a reference to the > dabo.biz module, not the local one. I tried inserting the current > directory and the biz directory into the beginning of sys.path, but > that had no effect. > > The startup script generated by appwiz does something quite similar; > I wanted to move that functionality into the app object itself, so > that people creating apps without appwiz won't have to add that code > all the time. > > So what am I missing? > > -- Ed Leafe > -- http://leafe.com > -- http://dabodev.com > > > > [excessive quoting removed by server] _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev Searchable Archives: http://leafe.com/archives/search/dabo-dev This message: http://leafe.com/archives/byMID/dabo-dev/[EMAIL PROTECTED]
