@classmethod
def view(cls, db, viewname, **options):
    """Execute a CouchDB named view and map the result values back to
        objects of this mapping.
        
        Note that by default, any properties of the document that are not
        included in the values of the view will be treated as if they were
        missing from the document. If you want to load the full document for
        every row, set the ``include_docs`` option to ``True``.
        """
    return db.view(viewname, wrapper=cls._wrap_row, **options)
