
    恕f}                         d  Z d Zy)c                 B    | j                  dd      j                         S )z
        Prettify pythonic variable name.

        For example, 'hello_world' will be converted to 'Hello World'

        :param name:
            Name to prettify
    _ )replacetitle)names    X/var/www/feuerwehr-webapp/venv/lib/python3.12/site-packages/flask_admin/model/helpers.pyprettify_namer	      s     <<S!''))    c                     t        | d      rG| j                  |      }t        |      dk(  r|d   }|dk(  rd}|S t        |      dk(  ryt        |      S y)a  
        Return the value for the given key of the multidict.

        A werkzeug.datastructures.multidict can have a single
        value or a list of items. If there is only one item,
        return only this item, else the whole list as a tuple

        :param mdict: Multidict to search for the key
        :type mdict: werkzeug.datastructures.multidict
        :param key: key to look for
        :return: the value for the key or None if the Key has not be found
    getlist        N)hasattrr   lentuple)mdictkeyvvalues       r   get_mdict_item_or_listr      s]     ui MM#q6Q;aDE {LVq[8Or
   N)r	   r    r
   r   <module>r      s   	*r
   