(cls, domain)
return Program.view(**kwargs)
Gets all programs in a domain.
Gets all programs in a domain.
Gets all programs in a domain .
def by_domain(cls, domain):
        """
        Gets all programs in a domain.
        """
        kwargs = dict(
            view_name='program_by_code/view',
            startkey=[domain],
            endkey=[domain, {}],
            include_docs=True
        )
        return Program.view(**kwargs)
def by_domain ( cls , domain ) : kwargs = dict ( view_name = 'program_by_code/view' , startkey = [ domain ] , endkey = [ domain , { } ] , include_docs = True ) return Program . view ( * * kwargs )