parameters: (self)
return_statement: return getattr(
        portal.portal_categories.getCategoryValue(metric_type.split('/', 1)[0],
                                                  'quantity_unit'),
        portal.portal_preferences.getPreference(
          'preferred_category_child_item_list_method_id',
          'getCategoryChildCompactLogicalPathItemList')
      )(recursive=0, local_sort_id='quantity', checked_permission='View')
docstring: Returns the list of possible quantity units for the current metric type.
      This is mostly useful in ERP5Form instances to generate selection menus.
docstring_summary: Returns the list of possible quantity units for the current metric type.
      This is mostly useful in ERP5Form instances to generate selection menus.
docstring_tokens: Returns the list of possible quantity units for the current metric type . This is mostly useful in ERP5Form instances to generate selection menus .
function: def getQuantityUnitItemList(self):
      """
      Returns the list of possible quantity units for the current metric type.
      This is mostly useful in ERP5Form instances to generate selection menus.
      """
      metric_type = self.getMetricType()
      if not metric_type:
        return ('', ''),
      portal = self.getPortalObject()
      return getattr(
        portal.portal_categories.getCategoryValue(metric_type.split('/', 1)[0],
                                                  'quantity_unit'),
        portal.portal_preferences.getPreference(
          'preferred_category_child_item_list_method_id',
          'getCategoryChildCompactLogicalPathItemList')
      )(recursive=0, local_sort_id='quantity', checked_permission='View')
function_tokens: def getQuantityUnitItemList ( self ) : metric_type = self . getMetricType ( ) if not metric_type : return ( '' , '' ) , portal = self . getPortalObject ( ) return getattr ( portal . portal_categories . getCategoryValue ( metric_type . split ( '/' , 1 ) [ 0 ] , 'quantity_unit' ) , portal . portal_preferences . getPreference ( 'preferred_category_child_item_list_method_id' , 'getCategoryChildCompactLogicalPathItemList' ) ) ( recursive = 0 , local_sort_id = 'quantity' , checked_permission = 'View' )