On Thu, Oct 16, 2008 at 8:02 AM, Tomasz Nazar <[EMAIL PROTECTED]> wrote:
> I wouldn't mind to also have table + mapping inside a file with class.
> But there are some issues with mapping using 'autoload'  - engine does
> not exist yet. Isn't it?

You can't do autoloading or map to an autoloaded table at the top
level.  You have to do that inside init_model().  The reason is that
the top-level code is executed when the module is first imported, and
the engine does not exist at that point (or at least the module
doesn't know about it).

-- 
Mike Orr <[EMAIL PROTECTED]>

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

Reply via email to