ATListing (0.1)
- ATListing download link: http://www.upfrontsystems.co.za/Members/roche/atlisting/ATListing-0.1.tgz
- Homepage of ATListing: http://www.upfrontsystems.co.za/Members/roche/atlisting/
- Description source: http://www.upfrontsystems.co.za/Members/roche/atlisting/readme/
ATListing makes it easy to create custom content listings by simply specifying the names of fields in an existing schema as the columns of the listing.
The listings
provided by a class should be specified as a static tuple
named listings
, similar to the actions
tuple eg.:
listings=(
{'id': contacts
,
'listing': contact_listing,
'allowed_content_types': (Contact
,),
},
)
Each item in the listings
tuple is a dictionary that should specify
id
and listing
and optionally allowed_content_types
.
id
is the key that uniquely identifies the listing
listing
should reference schema
allowed_content_types
limits the listed content to a specific
content_type. This is useful if one has multiple listings for the
same container that each list only one content type.