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.