def get_archive_part_value(self, part):
        """
        Method for accessing to the value of
        self.get_year(), self.get_month(), etc methods
        if they exists.
        """
        try:
            return getattr(self, 'get_%s' % part)()
        except AttributeError:
            return None
dataset/ETHPy150Open Fantomas42/django-blog-zinnia/zinnia/views/mixins/templates.py/EntryQuerysetArchiveTemplateResponseMixin.get_archive_part_value/original