I've just attempted this on another system with a more recent elixir
version and it works, so sorry to waste your time. I'll update my
other system and confirm it works again. Thanks for your help.

On Sep 11, 8:23 am, "Gaetan de Menten" <[EMAIL PROTECTED]> wrote:
> 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 Mentenhttp://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
-~----------~----~----~----~------~----~------~--~---

Reply via email to