You mean a subset of the entity (only part of the fields) or a subset of
the collection (only some of the entities)?

I suppose you need to provide a subset of the collection, which is the most
common case.
In that case you can provide a custom TableFiller and override the
_do_get_provider_count_and_objs methods.

The current TurboGears doc doesn't have a documentation entry for that, but
you can find some informations on the development documention (which will
be released as stable shortly anyway).
Look at the table_filler options:
http://turbogears.readthedocs.org/en/development/cookbook/Crud/index.html#options-reference


On Mon, Nov 4, 2013 at 3:05 PM, Stuart Zurcher <[email protected]>wrote:

> I have been looking around and have not found any documentation or
> examples of providing a subset of the entity for admin.
>
> I would like to provide all users of a group for that group's
> administrator.  I can hard code the forms but was wondering if there is a
> simpler way with the admin module as I have several of these type of
> instances which a simple solution would save considerable time.
>
> --
> 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