On Wed, 2004-12-22 at 11:50 +, Paul Goodyear wrote:
> Working.
> From myDB.ObjectsT import *
> Changed to
> Import myDB.ObjectsT
> And
> Obj = ObjectsT.CreateMain()
> To
> Obj = myDB.ObjectsT.CreateMain()
> Working a treat.
You could also do:
from myDB import ObjectsT
obj = ObjectsT.Crea
17:01
To: [EMAIL PROTECTED]
Subject: [Webware-devel] Import from another context
When importing from another context like
WebKit/myPage/Main.py
-
>From myDB.ObjectsT import *
It doesn't report any errors until I try to access it like so
Obj = ObjectsT.CreateMain()
T
When importing from another context like
WebKit/myPage/Main.py
-
>From myDB.ObjectsT import *
It doesn't report any errors until I try to access it like so
Obj = ObjectsT.CreateMain()
The WW error is:
AttributeError: class ObjectsT has no attribute 'ObjectsT'
The file str