(self, menu, lang=None)
return media
Convenience method. Gets the ApplicationMediaReference for a menu that's
            associated with this MediaMixin (which may be self or a different attribute)

            Note that "menu" may refer to any object that implements NavMenuItemMediaMixin,
            like a module or a form.
Convenience method. Gets the ApplicationMediaReference for a menu that's
            associated with this MediaMixin (which may be self or a different attribute)
Convenience method . Gets the ApplicationMediaReference for a menu that s associated with this MediaMixin ( which may be self or a different attribute )
def menu_media(self, menu, lang=None):
        """
            Convenience method. Gets the ApplicationMediaReference for a menu that's
            associated with this MediaMixin (which may be self or a different attribute)

            Note that "menu" may refer to any object that implements NavMenuItemMediaMixin,
            like a module or a form.
        """
        kwargs = self.get_media_ref_kwargs()
        media = []
        media.extend([ApplicationMediaReference(image, media_class=CommCareImage, is_menu_media=True, **kwargs)
                      for image in menu.all_image_paths(lang=lang) if image])
        media.extend([ApplicationMediaReference(audio, media_class=CommCareAudio, is_menu_media=True, **kwargs)
                      for audio in menu.all_audio_paths(lang=lang) if audio])
        return media
def menu_media ( self , menu , lang = None ) : kwargs = self . get_media_ref_kwargs ( ) media = [ ] media . extend ( [ ApplicationMediaReference ( image , media_class = CommCareImage , is_menu_media = True , * * kwargs ) for image in menu . all_image_paths ( lang = lang ) if image ] ) media . extend ( [ ApplicationMediaReference ( audio , media_class = CommCareAudio , is_menu_media = True , * * kwargs ) for audio in menu . all_audio_paths ( lang = lang ) if audio ] ) return media