Projekt

Obecné

Profil

« Předchozí | Další » 

Revize 08f22957

Přidáno uživatelem Michal Seják před více než 3 roky(ů)

Re #8476 - Clarity update.

Zobrazit rozdíly:

swagger_server/controllers/certificates_controller.py
7 7
from src.dao.certificate_repository import CertificateRepository    # TODO not the Controller's responsibility. 1
8 8
from src.services.cryptography import CryptographyService           # TODO not the Controller's responsibility. 2
9 9
from sqlite3 import Connection, Cursor                              # TODO not the Controller's responsibility. 3
10
from src.constants import DATABASE_FILE, DICT_USAGES, CA_ID  # TODO not the Controller's responsibility. 4
10
from src.constants import DATABASE_FILE, DICT_USAGES, CA_ID         # TODO DATABASE_FILE - not the Controller's
11
                                                                    #  responsibility. 4
11 12
from src.services.key_service import KeyService
12 13
from swagger_server.models import CertificateRequest
13 14

  
......
40 41

  
41 42

  
42 43
def setup():
44
    """
45
    SQLite3 thread issue hack.
46
    :return:
47
    """
43 48
    _ = Connection("../" + DATABASE_FILE)
44 49
    CERTIFICATE_SERVICE.certificate_repository.connection = _
45 50
    CERTIFICATE_SERVICE.certificate_repository.cursor = _.cursor()

Také k dispozici: Unified diff