def list_categories(self, package_keyname, **kwargs):
        """List the categories for the given package.

        :param str package_keyname: The package for which to get the categories.
        :returns: List of categories associated with the package
        """
        get_kwargs = {}
        get_kwargs['mask'] = kwargs.get('mask', CATEGORY_MASK)

        if 'filter' in kwargs:
            get_kwargs['filter'] = kwargs['filter']

        package = self.get_package_by_key(package_keyname, mask='id')
        categories = self.package_svc.getConfiguration(id=package['id'], **get_kwargs)
        return categories
def list_categories ( self , package_keyname , ** kwargs ) : get_kwargs = { } get_kwargs [ 'mask' ] = kwargs . get ( 'mask' , CATEGORY_MASK ) if 'filter' in kwargs : get_kwargs [ 'filter' ] = kwargs [ 'filter' ] package = self . get_package_by_key ( package_keyname , mask = 'id' ) categories = self . package_svc . getConfiguration ( id = package [ 'id' ] , ** get_kwargs ) return categories
List the categories for the given package.

        :param str package_keyname: The package for which to get the categories.
        :returns: List of categories associated with the package