19.0 vanilla

This commit is contained in:
Ernad Husremovic 2025-10-03 18:07:25 +02:00
parent 0a7ae8db93
commit 991d2234ca
416 changed files with 646602 additions and 300844 deletions

View file

@ -0,0 +1,13 @@
import csv
def patch_module():
""" The default limit for CSV fields in the module is 128KiB,
which is not quite sufficient to import images to store
in attachment. 500MiB is a bit overkill, but better safe
than sorry I guess
"""
class UNIX_LINE_TERMINATOR(csv.excel):
lineterminator = '\n'
csv.field_size_limit(500 * 1024 * 1024)
csv.register_dialect("UNIX", UNIX_LINE_TERMINATOR)