Lukasz Szybalski wrote:
> Hello,
> I am trying to follow:
> http://turbogears.org/2.0/docs/main/ToscaWidgets/forms.html
> ps. you have a typo "from toscawidgets.api import WidgetsList" should
> be "from tw.api import WidgetsList"
>
> but I get the following error:
> UnmappedInstanceError: Class '__builtin__.type' is not mapped; was a
> class (addressbook.model.address.Addressbook) supplied where an
> instance was required?
>
>
> Any idea how to solve this?
> I am importing my address.py in __init__.py in the last line as follows:
> from addressbook.model.address import *
>
> and in my root.py I import module as:
> from addressbook.model import Addressbook
>   

You're missing some context needed to answer this question properly.
>From the little you give I assume you're passing a class as an option or
value or something when you should be passing an instance (as SA is
pointing out). Can you paste the a code snippet that shows how you're
feeding your Addressbooks to the widget/form?

Alberto

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