As far as I can see __limit_fields__ has effects only on views, not on
fillers.
It is probably available in fillers only because both ViewBase and
FillerBase inherit from ConfigBase, but I can see no evidence that it ever
worked on Fillers even in the past.
At least up to 2010 the providers didn't do anything with the limit_fields,
it just got ignored.

Probably what you want to do is put it inside the TableBase declaration,
not into the TableFiller.


On Sat, Sep 21, 2013 at 4:29 PM, Moritz Schlarb <[email protected]>wrote:

> I don't recall __limit_fields__ in sprox anymore, are you sure this fields
> has effect at all?
> Did you try with __omit_fields__ and __field_order___?
>
> Am Donnerstag, 19. September 2013 15:28:38 UTC+2 schrieb Craig Small:
>
>>
>> I'm hoping someone can help me with this.
>> It seems something has changed how the admin controller works with the
>> TableFiller.  No matter what I do, I am unable to adjust the fields
>> that are shown.  My normal controllers work fine as before.
>>
>> The code snippet is:
>>
>> class MyAdminConfig(AdminConfig):
>>
>>   class host(**MyCrudRestControllerConfig):
>>     class table_filler_type(**RequestLocalTableFiller):
>>       entity = model.Host
>>       __limit_fields__ = ('id', 'zone_id',)
>>
>> In theory, /admin/hosts.json should show me only those two fields, but
>> I see all of them. I know TG is "looking at" this part of the code
>> because removing entity line gives an error:
>>   "You must define a __entity__ attribute for this object "
>>
>> --
>> Craig Small VK2XLZ   http://enc.com.au/          csmall at : enc.com.au
>> Debian GNU/Linux     http://www.debian.org/      csmall at : debian.org
>> GPG fingerprint:     5D2F B320 B825 D939 04D2  0519 3938 F96B DF50 FEA5
>>
>  --
> 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.
>

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