(self)
return self._archived
Return a boolean indicating whether the sketch has been archived.
Return a boolean indicating whether the sketch has been archived.
Return a boolean indicating whether the sketch has been archived .
def is_archived(self):
        """Return a boolean indicating whether the sketch has been archived."""
        if self._archived is not None:
            return self._archived

        resource_url = '{0:s}/sketches/{1:d}/archive/'.format(
            self.api.api_root, self.id)
        response = self.api.session.get(resource_url)
        data = error.get_response_json(response, logger)
        meta = data.get('meta', {})
        self._archived = meta.get('is_archived', False)
        return self._archived
def is_archived ( self ) : if self . _archived is not None : return self . _archived resource_url = '{0:s}/sketches/{1:d}/archive/' . format ( self . api . api_root , self . id ) response = self . api . session . get ( resource_url ) data = error . get_response_json ( response , logger ) meta = data . get ( 'meta' , { } ) self . _archived = meta . get ( 'is_archived' , False ) return self . _archived