custom_content.py (873B)
1 #Embedded file name: C:\BuildAgent\work\20d73f1b24eed06e\eve\release\V24.01\packages\agency\client\custom_content.py 2 import logging 3 logger = logging.getLogger(__name__) 4 5 def get_remote_agency_provider_service(): 6 return sm.RemoteSvc('custom_agency_provider') 7 8 9 def get_custom_content(): 10 content_data = get_remote_agency_provider_service().get_content_data() 11 logger.debug('Returning %s pieces of custom agency content from the server', len(content_data)) 12 return content_data 13 14 15 def get_custom_content_by_content_type(content_type): 16 content_data_collection = get_custom_content() 17 filtered_content_data = [ data for data in content_data_collection if data.content_type == content_type ] 18 logger.debug('Returning %s pieces of custom agency content of type %s from the server', len(filtered_content_data), content_type) 19 return filtered_content_data