Yea, it seems that issue is the metadata not being bound at the point
where make_form tries to introspect the model.

You may need to "manually" bind the metadata in __init__.py in your
model, as is done in a freshly quickstarted project.

On Wed, Sep 10, 2008 at 9:44 AM, Antti Niinikoski
<[EMAIL PROTECTED]> wrote:
>
> Hello list
>
> I have a problem with the paster CRUD tool in TG2. I always get the
> following error message:
>
> "Exception: arg1(model) has not been mapped to an sql table
> appropriately"
>
> The exception comes from the make_form method in the form-controller.
> The whole traceback can be found in paste (http://paste.turbogears.org/
> paste/6318).
>
> I have done "paster setup-app".  And the model works fine without
> CRUD. In my project I use the identity and it uses
> DeclarativeBase.metadata. Could the metadata be the problem?
>
> Does anyone know what I am doing wrong?
>
> The CRUD tool and TG2 seems very intresting. Thanks!
>
> Regards,
>
> Antti
>
> >
>



-- 
Mark Ramm-Christensen
email: mark at compoundthinking dot com
blog: www.compoundthinking.com/blog

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to