On Sun, Apr 20, 2008 at 8:49 PM, DanL <[EMAIL PROTECTED]> wrote:
>
>  Hey guys,
>
>  I've been working on a large Turbogears project that required me to
>  split an Elixir model across multiple files.  As a programmer new to
>  Python and Elixir, I had some troubles (a good tutorial for this has
>  noticeably missing from the docs).
>
>  There were a few subtle (and frustrating) tricks involved, so I wrote
>  up in the wiki the technique and patterns I ultimately used, along
>  with some common pitfalls I encountered.  It is written with a
>  Turbogears project in mind, but it should be abstract enough that it
>  will apply to Pylons projects as well.
>
>  Check it out under Recipes: 
> http://elixir.ematia.de/trac/wiki/Recipes/SplittingAModelAcrossMultipleFiles

Thanks *a lot* for this. I've been wanting to add an entry in the FAQ
for this for quite a while but didn't find (or take) the time yet.

>
>  Please comment or fix if I did anything architecturally wrong or bad
>  -- my background is mostly in C++, so I may not be grasping certain
>  Python concepts properly.

There are a few mistakes and oddities. Some of which rather important
(I fail to see how it works at all the way you do it) but I have to
investigate it further to correct and comment properly what's wrong.

The most minor one is that in the following line:
using_options(shortnames=True, tablename="my_man_table")

the shortnames=True is totally useless as it's an option which is only
used when you don't specify the table name manually.

Thanks again,
-- 
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to