view tools/base64 @ 6536:b78c45828e42

post_init must be called on the database .. otherwise things set up in post_init (notably rev_multilink properties) will be missing. Note that post_init is idempotent and can be called multiple times.
author Ralf Schlatterbeck <rsc@runtux.com>
date Mon, 29 Nov 2021 11:31:14 +0100
parents c75defc1c2f0
children 9c3ec0a5c7fc
line wrap: on
line source

#!/usr/bin/env python
from __future__ import print_function
import zlib, base64, sys
print(base64.encodestring(zlib.compress(sys.stdin.read())))

Roundup Issue Tracker: http://roundup-tracker.org/