Re: [Tutor] Building application namespaces.

2005-04-23 Thread David Driver
In the root script I import Common. Inside of Common's __init__.py I import the basic domain modules. Is this correct? >If I understand the setup correctly it should work. How are you importing Common? If you say >import Common >you should be able to refer to Common.sobjs. If you say >from Common

Re: [Tutor] Building application namespaces.

2005-04-22 Thread Kent Johnson
OK, here is a brief, working example. In my working directory I have the file test.py containing: # test.py import mypackage c=mypackage.MyClass() c.foo() In the mypackage directory I have __init__.py and MyClass.py containing: # __init__.py from MyClass import MyClass # MyClass.py class MyClass:

Re: [Tutor] Building application namespaces.

2005-04-22 Thread Kent Johnson
David Driver wrote: I have generally used python for tasks that are scripty and not appish. I have found that I don't know the language very well even though I have been scripting with it for about two years. To remedy this I am in the process of laying out a mock up for an accounting system (GL, A

[Tutor] Building application namespaces.

2005-04-22 Thread David Driver
I have generally used python for tasks that are scripty and not appish. I have found that I don't know the language very well even though I have been scripting with it for about two years. To remedy this I am in the process of laying out a mock up for an accounting system (GL, AR, AP). This is the