summaryrefslogtreecommitdiff
path: root/listsync.py
AgeCommit message (Collapse)Author
2020-07-11Misc fixes to make pep8 happyMagnus Hagander
Mostly whitespace fixes, but also some bare-exception fixes. Add a setup.cfg that specifies which pep8 settings we normally run with.
2020-07-11Convert tabs to spacesMagnus Hagander
Finally time to clean this repo up
2019-06-28Fix imports for python 3Magnus Hagander
2017-12-08Update listsync script to sync with pglister instead of mj2Magnus Hagander
2016-02-15Don't synchronize users who only have archived blogsMagnus Hagander
2016-02-11Fix query for list syncMagnus Hagander
2015-12-31Move all tables to public schemaMagnus Hagander
Since django still does not properly support multiple schemas, it creates a lot of pain to maintain the tables in different schemas. And the planet database has a very simple schema with few tables anyway, so there is arguably no actual gain from keeping them separate. When deploying, run SQL manually to move existing tables over: ALTER TABLE admin.auditlog SET SCHEMA public; ALTER TABLE admin.auth_group SET SCHEMA public; ALTER TABLE admin.auth_group_permissions SET SCHEMA public; ALTER TABLE admin.auth_message SET SCHEMA public; ALTER TABLE admin.auth_permission SET SCHEMA public; ALTER TABLE admin.auth_user SET SCHEMA public; ALTER TABLE admin.auth_user_groups SET SCHEMA public; ALTER TABLE admin.auth_user_user_permissions SET SCHEMA public; ALTER TABLE admin.django_admin_log SET SCHEMA public; ALTER TABLE admin.django_content_type SET SCHEMA public; ALTER TABLE admin.django_session SET SCHEMA public; ALTER TABLE admin.django_site SET SCHEMA public; ALTER TABLE planet.aggregatorlog SET SCHEMA public; ALTER TABLE planet.feeds SET SCHEMA public; ALTER TABLE planet.posts SET SCHEMA public; ALTER TABLE planet.teams SET SCHEMA public; DROP SCHEMA admin; DROP SCHEMA planet; and if there is a planetadmin user, also run ALTER USER planetadmin RESET search_path;
2012-08-13Synchronize mailinglist subscriptions using https instead of httpMagnus Hagander
2009-05-18Rename planetadmin schema and module to admin, to work with newMagnus Hagander
project name (Selenas fault)
2008-11-17Add code to be able to synchronize a majordomo mailinglistMagnus Hagander
with the owners of the blogs.