I tried moving the import inside the methods and it still didn't work. I've
been resistant to using the declarative syntax or elixr because I feel like
too much magic is happening, but I could be wrong, it's just an impression
and I have to admit I haven't really rolled up my sleeves and dug into
either yet. I like the feeling that I can control and customize the mapping
of the class to the db table.

Plus, I'm under the (possibly mistaken) impression that I can't map to
legacy database tables using either declarative or elixr...am I wrong about
that?

I think I'll just end up sticking them in the same file but there's
something that just feels wrong about that to me, but it's really just a
style issue I guess.

On Fri, Mar 13, 2009 at 11:08 AM, Antoine Pitrou
<[email protected]>wrote:

>
> On Mar 13, 12:05 pm, robneville73 <[email protected]> wrote:
> >
> > I have classmethods in Order that access and reference Customer. So in
> > the definition of Order I have:
> > from customer import Customer
>
> Simply move that import inside the methods themselves and it will
> remove the circularity.
>
>
> >
>


-- 
Rob Neville
http://www.robneville.net

http://www.linkedin.com/in/robneville

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to