Beispiel #1
0
 def getPrioritySortkey(self):
     """
     Returns the key that will be used to sort the current Analysis, from
     most prioritary to less prioritary.
     :return: string used for sorting
     """
     analysis_request = self.getRequest()
     if analysis_request is None:
         return None
     ar_sort_key = analysis_request.getPrioritySortkey()
     ar_id = analysis_request.getId().lower()
     title = sortable_title(self)
     if callable(title):
         title = title()
     return '{}.{}.{}'.format(ar_sort_key, ar_id, title)
 def getPrioritySortkey(self):
     """
     Returns the key that will be used to sort the current Analysis, from
     most prioritary to less prioritary.
     :return: string used for sorting
     """
     analysis_request = self.getRequest()
     if analysis_request is None:
         return None
     ar_sort_key = analysis_request.getPrioritySortkey()
     ar_id = analysis_request.getId().lower()
     title = sortable_title(self)
     if callable(title):
         title = title()
     return '{}.{}.{}'.format(ar_sort_key, ar_id, title)