I have tried:

name = FieldProperty(s.FancySchemaItem())
>

name = FieldProperty(s.Array(s.FancySchemaItem()))
>

name = FieldProperty(s.Array(dict(name1=str, name2=str)))   #most accurate
>

None of the above work with tg.admin
 

On Friday, November 8, 2013 9:19:59 AM UTC-6, Stuart Zurcher wrote:
>
> I have a collection with a nested fieldproperty:
>
>> name = fieldproperty(
>>     [
>>      dict(
>>            fieldName=str,
>>            fieldName2=str
>>      )])
>>
>
> tg.admin on the collection raises KeyError in __getattr__(self, k) of 
> ming.odm.icollection.InstrumentedObj:
>
> Invalid search query "": <class 'ming.odm.icollection.InstrumentedObj'> 
>>
> The page is shown with an empty table. 
>
> Doing a simple collectionClassName.query.find().first()  returns normal 
> results for the table schema.
>
> Anyone else have this problem?  Work around?
>

-- 
You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/turbogears.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to