On 9/10/07, Nick <[EMAIL PROTECTED]> wrote:
>
> Someone else posted to request how to split a model into multiple
> files but didn't get an answer. So i'm trying again. My problem is i
> two unrelated sets of classes that need to use a common set of classes
> and i want to seperate them into multiple files, for example:
>
> --
> class User
> belongs_to('country', of_kind="Country")
> --
>
> in user.py and have
>
> --
> class Company
> belongs_to('country', of_kind="Country")
> --
>
> in company.py
>
> --
> class Country
> --
>
> in shared.py
>
> in user.py and company.py i "from shared import Country". This is a
> one way relation. I get key error (or something similar) on "Country"
> when i run setup-app. Is there a way to fix this?Which version of Elixir are you using? And what is the exact error message? -- Gaƫtan de Menten http://openhex.org --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "SQLElixir" 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/sqlelixir?hl=en -~----------~----~----~----~------~----~------~--~---
