Viewing File: /opt/imunify360/venv/lib/python3.11/site-packages/imav/patchman/__pycache__/model.cpython-311.pyc
sj d Z ddlmZmZ ddlmZ ddlmZ ddlm Z m
Z
mZmZm
Z
mZ G d de
Z G d d e
Z G d
de
Zedd
dee
dedefd ZdS )u
This program is free software: you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License,
or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
Copyright © 2019 Cloud Linux Software Inc.
This software is also available under ImunifyAV commercial license,
see <https://www.imunify360.com/legal/eula>
) ExitStackcontextmanager)NamedTemporaryFile)List)BooleanField CharFieldForeignKeyFieldIntegerFieldModelSqliteDatabasec e Zd Z G d d Z e Z ed Z ed Z ed Z e d Z
ed ZdS )Userc e Zd ZdZdS ) User.MetausersN__name__
__module____qualname__db_table H/opt/imunify360/venv/lib/python3.11/site-packages/imav/patchman/model.pyMetar % r r )defaultFr N)
r r r r r nameparentemaillanguager suspendedr
levelr r r r r $ s 9;;D
Yr
"
"
"FIb!!!Ey$$$HU+++IL###EEEr r c V e Zd Z G d d Z e Z eed ZdS )Domainc e Zd ZdZdS )Domain.MetadomainsNr r r r r r' 1 s r r r( backrefN) r r r r r r r r userr r r r% r% 0 sW 9;;D?4333DDDr r% c V e Zd Z G d d Z e Z eed ZdS )Pathc e Zd ZdZdS ) Path.MetapathsNr r r r r r/ 9 r r r r0 r) N) r r r r r r r r% domainr r r r- r- 8 sW 9;;D
_VW
5
5
5FFFr r- N)prefixmodels
target_dirr2 c # j K t d|rd| dz nd|d }t |j }t }| | | | | |5 | | |V d d d d S # 1 swxY w Y d S )Nz.db patchman__r F)suffixr2 dirdelete)r r r r
enter_contextbind_ctx
create_tables)r3 r4 r2 tmp_filedbstacks r patchman_dbrA @ s !-3;{\\\)) H
& &BKKE F++,,,
s B((B,/B,)__doc__
contextlibr r tempfiler typingr peeweer r r r
r r r r% r- strrA r r r <module>rH sk * 1 0 0 0 0 0 0 0 ' ' ' ' ' ' $ $ $ $ $5 $ $ $4 4 4 4 4U 4 4 46 6 6 6 65 6 6 6 GK U C r
Back to Directory
File Manager