%PDF- %PDF-
Direktori : /lib/python3/dist-packages/orca/backends/__pycache__/ |
Current File : //lib/python3/dist-packages/orca/backends/__pycache__/json_backend.cpython-312.pyc |
� g f � �X � d Z dZdZdZdZdZddlmZmZ ddl Z dd l mZmZ G d � d� Z y)zJSON backend for Orca settingsz$Id$z $Revision$z$Date$z7Copyright (c) 2010-2011 Consorcio Fernando de los Rios.�LGPL� )�load�dumpN)�settings�acssc �h � e Zd Zd� Zd� Zd� Zd� Zd� Zd� Zdd�Z dd �Z dd �Zd� Zd� Z dd �Zd� Zd� Zy)�Backendc � � i | _ i | _ i | _ i | _ t j j |d� | _ t j j |d� | _ dt j i i d�i| _ y)z& Initialize the JSON Backend. zuser-settings.confzapp-settings�default)�profile�pronunciations�keybindingsN)�generalr r �profiles�os�path�join�settingsFile�appPrefsDirr r �_defaultProfiles)�self�prefsDirs �</usr/lib/python3/dist-packages/orca/backends/json_backend.py�__init__zBackend.__init__$ sq � � ��� �������� ��G�G�L�L��3G�H����7�7�<�<��.�A���!*�(�:J�:J�LN�IK�-.� !"��� c �� � || j ||d�}|| _ | j | _ || _ || _ t | j d� }t ||d�� |j � y)zN Save default settings for all the properties from orca.settings. )r r r r �w� ��indentN) r r r r r �openr r �close)r r r r �prefsr s r �saveDefaultSettingszBackend.saveDefaultSettings4 sm � � $�!�2�2�#1� +�-�� ����-�-�� �,���&����D�-�-�s�3���U�L��+����r c �� � t j j | j |� d�� }t j j |� r)t |d� }t |� }|j � |S i }|S )N�.conf�r)r r r r �existsr! r r"