Germán Larraín
Germán Larraín
solution: create dir `~/.local/share/mime/packages` before running `update-mime-database mime`
We rely on function `defusedxml.lxml.fromstring()` for our function `libs.xml_utils.parse_untrusted_xml()`. What should we use instead? > DEPRECATED Example code for lxml.etree protection > The code has NO protection against decompression bombs....
Pendulum: "Python datetimes made easy." - https://github.com/sdispater/pendulum - https://pendulum.eustace.io
- https://github.com/fyntex/fynpal-v0/issues/1921 - https://github.com/fyntex/fynpal-v0/pull/1933 - https://github.com/fyntex/fynpal-v0/pull/1945 - https://github.com/fyntex/fynpal-v0/pull/1955 - https://github.com/fyntex/fynpal-v0/pull/1972
The value `50000000` is the minimum RUT (digits) for a "Persona Jurídica", not for the whole range of RUT. See https://bakercapital.slack.com/archives/CS9G7SZBL/p1580307661000200 Also: > "un RUT sobre 50.000.000 corresponde a una...
See LibreDTE's PHP class [sasco\LibreDTE\FirmaElectronica](https://github.com/LibreDTE/libredte-lib/blob/2bf1a524919238e0b49a298307f5949f29b69214/lib/FirmaElectronica.php) with methods: - open a [PKCS #12](https://en.wikipedia.org/wiki/PKCS_12) file (`.pfx` or `.p12`) - `getID`: "Método que entrega el RUN/RUT asociado al certificado" - get issuer -...
See: - https://github.com/LibreDTE/libredte-lib/blob/22c6f8d5d8231ac27977020b8385547a3fd98dbc/examples/008-verificar_enviodte.php#L44-L62 - https://github.com/LibreDTE/libredte-lib/blob/ca8843735df63ea2405042935ac6f7a4a1628d2e/lib/Sii/EnvioDte.php#L422-L438 And for signature verification of each element 'DTE' in 'SetDTE' see: https://github.com/LibreDTE/libredte-lib/blob/22c6f8d5d8231ac27977020b8385547a3fd98dbc/examples/008-verificar_enviodte.php#L68-L89
More info: - [SII FAQ | ¿Para qué se utiliza la Liquidación Factura Electrónica?](http://www.sii.cl/preguntas_frecuentes/catastro/001_012_3689.htm) - [SII FAQ | ¿Qué son las Liquidaciones-Factura?](http://www.sii.cl/preguntas_frecuentes/catastro/001_012_0247.htm) - [SII FAQ | ¿Qué documentos tributarios deben...
The following will trigger an error: ```python import pathlib from cl_sii.libs import xml_utils from cl_sii.dte.parse import _set_dte_xml_missing_xmlns, DTE_XMLNS_MAP file_path = pathlib.Path('SET_DTE_76408488-8_33_591.xml') envio_dte_xml_doc = xml_utils.parse_untrusted_xml(file_path.read_bytes()) assert envio_dte_xml_doc.tag == '{http://www.sii.cl/SiiDte}EnvioDTE' set_dte_em =...