annotate website/www/contact.txt @ 5525:bb7865241f8a

Make CSV import/export compatible across Python versions (also RDBMS journals) (issue 2550976, issue 2550975). The roundup-admin export and import commands are used for migrating between different database backends. It is desirable that they should be usable also for migrations between Python 2 and Python 3, and in some cases (e.g. with the anydbm backend) this may be required. To be usable for such migrations, the format of the generated CSV files needs to be stable, meaning the same as currently used with Python 2. The export process uses repr() to produce the fields in the CSV files and eval() to convert them back to Python data structures. repr() of strings with non-ASCII characters produces different results for Python 2 and Python 3. This patch adds repr_export and eval_import functions to roundup/anypy/strings.py which provide the required operations that are just repr() and eval() in Python 2, but are more complicated in Python 3 to use data representations compatible with Python 2. These functions are then used in the required places for export and import. repr() and eval() are also used in storing the dict of changed values in the journal for the RDBMS backends. It is similarly desirable that the database be compatible between Python 2 and Python 3, so that export and import do not need to be used for a migration between Python versions for non-anydbm back ends. Thus, this patch changes rdbms_common.py in the places involved in storing journals in the database, not just in those involved in import/export. Given this patch, import/export with non-ASCII characters appear based on some limited testing to work across Python versions, and an instance using the sqlite backend appears to be compatible between Python versions without needing import/export, *if* the sessions/otks databases (which use anydbm) are deleted when changing Python version.
author Joseph Myers <jsm@polyomino.org.uk>
date Sun, 02 Sep 2018 23:48:04 +0000
parents b87a1f51ac32
children fefd8263ee4d
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
4035
e4950073153f Adjust to better sync with roundup docs.
Stefan Seefeld <stefan@users.sourceforge.net>
parents:
diff changeset
1 Contact
e4950073153f Adjust to better sync with roundup docs.
Stefan Seefeld <stefan@users.sourceforge.net>
parents:
diff changeset
2 =======
e4950073153f Adjust to better sync with roundup docs.
Stefan Seefeld <stefan@users.sourceforge.net>
parents:
diff changeset
3
e4950073153f Adjust to better sync with roundup docs.
Stefan Seefeld <stefan@users.sourceforge.net>
parents:
diff changeset
4 We maintain the following mailing lists:
e4950073153f Adjust to better sync with roundup docs.
Stefan Seefeld <stefan@users.sourceforge.net>
parents:
diff changeset
5
5366
b87a1f51ac32 As far as I can tell, gmane and nabble archives are gone/not being
John Rouillard <rouilj@ieee.org>
parents: 4951
diff changeset
6 =================== ==========================
b87a1f51ac32 As far as I can tell, gmane and nabble archives are gone/not being
John Rouillard <rouilj@ieee.org>
parents: 4951
diff changeset
7 roundup-users_ archives `[SourceForge]`__
b87a1f51ac32 As far as I can tell, gmane and nabble archives are gone/not being
John Rouillard <rouilj@ieee.org>
parents: 4951
diff changeset
8 roundup-devel_ archives `[SourceForge]`__
4820
2b7425b24243 website: Revise contacts page, add links to archives and web IRC
anatoly techtonik <techtonik@gmail.com>
parents: 4035
diff changeset
9 roundup-checkins_ archives `[SourceForge]`__
5366
b87a1f51ac32 As far as I can tell, gmane and nabble archives are gone/not being
John Rouillard <rouilj@ieee.org>
parents: 4951
diff changeset
10 =================== ==========================
4035
e4950073153f Adjust to better sync with roundup docs.
Stefan Seefeld <stefan@users.sourceforge.net>
parents:
diff changeset
11
e4950073153f Adjust to better sync with roundup docs.
Stefan Seefeld <stefan@users.sourceforge.net>
parents:
diff changeset
12 These lists are moderated to protect them against spam.
e4950073153f Adjust to better sync with roundup docs.
Stefan Seefeld <stefan@users.sourceforge.net>
parents:
diff changeset
13 Please sign up if you intend to mail repeatedly.
e4950073153f Adjust to better sync with roundup docs.
Stefan Seefeld <stefan@users.sourceforge.net>
parents:
diff changeset
14
4820
2b7425b24243 website: Revise contacts page, add links to archives and web IRC
anatoly techtonik <techtonik@gmail.com>
parents: 4035
diff changeset
15 You may talk to Roundup developers directly via IRC irc://irc.oftc.net/roundup
4951
5de19a3d99bd website: Add autologin and nick selection to WebChat link
anatoly techtonik <techtonik@gmail.com>
parents: 4820
diff changeset
16 using IRC client or through WebChat_ interface.
4820
2b7425b24243 website: Revise contacts page, add links to archives and web IRC
anatoly techtonik <techtonik@gmail.com>
parents: 4035
diff changeset
17
2b7425b24243 website: Revise contacts page, add links to archives and web IRC
anatoly techtonik <techtonik@gmail.com>
parents: 4035
diff changeset
18
2b7425b24243 website: Revise contacts page, add links to archives and web IRC
anatoly techtonik <techtonik@gmail.com>
parents: 4035
diff changeset
19 .. _roundup-users: https://lists.sourceforge.net/lists/listinfo/roundup-users
2b7425b24243 website: Revise contacts page, add links to archives and web IRC
anatoly techtonik <techtonik@gmail.com>
parents: 4035
diff changeset
20 .. _roundup-devel: https://lists.sourceforge.net/lists/listinfo/roundup-devel
2b7425b24243 website: Revise contacts page, add links to archives and web IRC
anatoly techtonik <techtonik@gmail.com>
parents: 4035
diff changeset
21 .. _roundup-checkins: https://lists.sourceforge.net/lists/listinfo/roundup-checkins
4035
e4950073153f Adjust to better sync with roundup docs.
Stefan Seefeld <stefan@users.sourceforge.net>
parents:
diff changeset
22
4820
2b7425b24243 website: Revise contacts page, add links to archives and web IRC
anatoly techtonik <techtonik@gmail.com>
parents: 4035
diff changeset
23 .. __: https://sourceforge.net/mailarchive/forum.php?forum_name=roundup-users
2b7425b24243 website: Revise contacts page, add links to archives and web IRC
anatoly techtonik <techtonik@gmail.com>
parents: 4035
diff changeset
24
2b7425b24243 website: Revise contacts page, add links to archives and web IRC
anatoly techtonik <techtonik@gmail.com>
parents: 4035
diff changeset
25 .. __: https://sourceforge.net/mailarchive/forum.php?forum_name=roundup-devel
2b7425b24243 website: Revise contacts page, add links to archives and web IRC
anatoly techtonik <techtonik@gmail.com>
parents: 4035
diff changeset
26
2b7425b24243 website: Revise contacts page, add links to archives and web IRC
anatoly techtonik <techtonik@gmail.com>
parents: 4035
diff changeset
27 .. __: https://sourceforge.net/mailarchive/forum.php?forum_name=roundup-checkins
4951
5de19a3d99bd website: Add autologin and nick selection to WebChat link
anatoly techtonik <techtonik@gmail.com>
parents: 4820
diff changeset
28
5de19a3d99bd website: Add autologin and nick selection to WebChat link
anatoly techtonik <techtonik@gmail.com>
parents: 4820
diff changeset
29 .. _WebChat: http://webchat.oftc.net/?randomnick=1&channels=roundup&prompt=1

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