This repository has been archived by the owner on Jan 18, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 10
Cookbook
Byron Ruth edited this page May 7, 2013
·
1 revision
DataContext
and DataView
both come with a template
and default
field. These can be used in downstream client implementations for enabling default context and/or view data for user agents. For example, Serrano checks if there is a default template defined for the resource if this is the requesting user's first time accessing it.
cxt = DataContext({...}, template=True, default=True)
cxt.save()
Many templates can be created for each type, but only one default can exist for each. Upon save, this will be checked to prevent ambiguity for downstream clients.
Contents
- Introduction
- Installation & Setup
- Getting Started
- What Next?
Guides
- Managing your metadata
- Persisting sets of objects
- Writing a custom Interface
- Writing a custom Formatter
- Cookbook
APIs
Proposals
Reference
Developers