how are people solving this problem? I apologize in advance for the complex question but without pasting a crap-load of code, I don't know how to ask it simply.
I have an existing DB that I'm mapping, so as I understand it, declarative use of SA is not an option. I have a model called Customer and a model called Order. Order is a child of Customer (1 Customer : N Order). I have classmethods in Order that access and reference Customer. So in the definition of Order I have: from customer import Customer now, I need to define a relation in the mapper for Customer. Houston, we have a problem.... To do that, I need to pass the relation function Order as the first argument. How do I reference Order? The problem is that you get a circular import problem I think, because if I add... from order import Order to the definition of Customer, then I get an import error. However, if I remove the "from customer import Customer" statement from Order, then it works, but I then I can't do what I need to do. OK, maybe this is a short way of saying it: How do I reference methods from other models inside of a model without creating this import dependency issue? --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

