Ok. I got it. I just defined the connection above and outside the Companys
and Company classes. Thanks for your help.

Jeremy

On Mon, Mar 26, 2012 at 8:05 AM, Oleg Broytman <p...@phdru.name> wrote:

> On Mon, Mar 26, 2012 at 07:59:39AM -0500, Jeremy Hoyle wrote:
> >   File "C:\Pysoft\Software\SMS Development\tests\test0.py", line 5, in
> > <module>
> >     from pySMS import Companys
> >   File "C:\Pysoft\Software\SMS Development\pySMS\__init__.py", line 1, in
> > <module>
> >     from Company import Companys
>
>    Here is the problem now - Company (and Companys) is imported before
> a connection is created. You have to open a connection before the class
> Company is created (i.e., before the module is imported).
>
> Oleg.
> --
>     Oleg Broytman            http://phdru.name/            p...@phdru.name
>           Programmers don't die, they just GOSUB without RETURN.
>
>
> ------------------------------------------------------------------------------
> This SF email is sponsosred by:
> Try Windows Azure free for 90 days Click Here
> http://p.sf.net/sfu/sfd2d-msazure
> _______________________________________________
> sqlobject-discuss mailing list
> sqlobject-discuss@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/sqlobject-discuss
>
------------------------------------------------------------------------------
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here 
http://p.sf.net/sfu/sfd2d-msazure
_______________________________________________
sqlobject-discuss mailing list
sqlobject-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sqlobject-discuss

Reply via email to