def METHOD_NAME(self):
    self.ckan_version = ckan.__version__
    self.ckan_base_version = re.sub('[^0-9\.]', '', self.ckan_version)
    if self.ckan_base_version == self.ckan_version:
        self.ckan_doc_version = self.ckan_version[:3]
    else:
        self.ckan_doc_version = 'latest'
    # process the config details to set globals
    for key in app_globals_from_config_details.keys():
        new_key, value = process_app_global(key, config.get(key) or '')
        setattr(self, new_key, value)